May 2021
Beginner to intermediate
333 pages
8h 45m
English
What do you think your computer can do? Show you emails? Edit some files? Spin up an Excel sheet maybe?
But what if we told you your computer could read?
fromtransformersimportpipelineclassifier=pipeline('sentiment-analysis')classifier('I am reading the greatest NLP book ever!')
[{'label': 'POSITIVE', 'score': 0.9996862411499023}]
And write:
text_generator=pipeline("text-generation")text_generator("Welcome to the ",max_length=5,do_sample=False)
And, most impressively, understand:
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'}
What was once the fantasy of a distant future is not only here but is accessible to anyone with a computer and an internet connection. The ability to understand and communicate in natural language, one ...
Read now
Unlock full access