November 2024
Intermediate to advanced
336 pages
10h 2m
French
Cet ouvrage a été traduit à l'aide de l'IA. Tes réactions et tes commentaires sont les bienvenus : translation-feedback@oreilly.com
Que penses-tu que ton ordinateur puisse faire ? Te montrer des courriels ? Modifier des fichiers ? Faire tourner une feuille Excel, peut-être ?
Mais si nous te disions que ton ordinateur peut lire ?
fromtransformersimportpipelineclassifier=pipeline('sentiment-analysis')classifier('I am reading the greatest NLP book ever!')
[{'label': 'POSITIVE', 'score': 0.9996862411499023}]
Et écris :
text_generator=pipeline("text-generation")text_generator("Welcome to the ",max_length=5,do_sample=False)
Et le plus impressionnant, c'est que comprend :
nlp=pipeline("question-answering")context="""Natural language processing (NLP) is a subfield of linguistics,computer science, and artificial intelligence concerned with theinteractions between computers and human language, in particularhow to program computers to process and analyze large amounts ofnatural language data. The result is a computer capable of"understanding" the contents of documents, including the contextualnuances of the language within them. The technology can then accuratelyextract information and insights contained in the documents as wellas categorize and organize the documents themselves."""nlp(question="What is NLP?",context=context)
{'score': 0.9869255423545837,
'start': 1,
'end': 28,
'answer': 'Natural language processing'}
Ce qui ...
Read now
Unlock full access