We have seen this in the previous blog What is spaCy, usage, and features?
Today, we will analyze the sentence syntax how many verbs and nouns in a sentence or paragraph.
I am using Google Colab for this simple code to check, and you can find a link here.
Image Source: spaCY
Print list of nouns and verbs from a paragraph
Nouns in a paragraph:
[‘spaCY’, ‘an open-source library’, ‘Natural Language Processing’, ‘dependency parsing’, ‘sentence segmentation’,
‘text classification’, ‘It’, ‘the leading Industrial-Strength Natural Language Processing’, ‘We’,
‘the machine learning framework’, ‘custom components’]
Verbs in a paragraph:
[‘use’, ‘lead’, ‘integrate’, ‘learn’, ‘build’] Natural Language Processing WORK_OF_ART Industrial-Strength Natural Language Processing ORG
We will process more contents and usage in future blogs.
Please comment below which you one you tried and which one you don’t like in spaCy.
Further Reading
Posts on Artificial Intelligence, Deep Learning, Machine Learning, and Design Thinking articles:
Rasa X Open Source Conversational AI UI Walk-through
Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing
Leave A Comment