TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

Пронајдени 1 слични објави

Пребарај: #copyrightlaws

当前筛选 #copyrightlaws清除筛选
AI & Law

@ai_and_law · Post #203 · 29.12.2023 г., 08:04

NY Times Takes On OpenAI and Microsoft Over Copyright Infringement Hello everybody! The New York Times has filed a lawsuit against OpenAI and Microsoft for alleged copyright infringement. This marks the first time a major American media organization has taken legal action against creators of prominent AI platforms, including ChatGPT. The lawsuit, filed in Federal District Court in Manhattan, claims that millions of articles from The Times were used without authorization to train automated chatbots, putting the media giant in direct competition with AI systems. The heart of the matter lies in the contention that the intellectual property of The New York Times was utilized to train AI models, specifically chatbots, that now serve as alternative sources of information. The lawsuit does not specify a monetary demand but emphasizes the responsibility of the defendants to be held accountable for "billions of dollars in statutory and actual damages." The legal action calls for the destruction of any chatbot models and training data incorporating copyrighted material from The Times. The lawsuit reveals that The Times initiated discussions with Microsoft and OpenAI in April to address concerns about the unauthorized use of its intellectual property. These talks, aimed at finding an amicable resolution, including a potential commercial agreement, did not result in a resolution. The legal battle could set a precedent for the legal boundaries surrounding generative AI technologies, particularly regarding the use of copyrighted materials. As concerns about the unlicensed use of intellectual property by AI systems grow, this case joins a series of legal actions within the tech industry. The outcome of such lawsuits may have far-reaching implications, not only for The New York Times but for the broader media landscape. #AILaw#NYTimes#OpenAI#Microsoft#ChatGPT#CopyrightLaws#AIEthics