Day 73: Sentence Analyzer Using spaCy Natural Language Processing – Part I

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

Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
Copy to Clipboard
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.

By |2021-07-02T00:23:29+00:00June 30th, 2021|Artificial Intelligence, Machine Learning|0 Comments

About the Author:

Leave A Comment