Natural Language Processing Libraries (in Python)
Picture from Pixabay (https://www.pexels.com/@pixabay/) I was trying out 3 Natural Language Processing ( NLP ) Python Libraries. Mainly to see if they can extract nouns from sentences; and their execution time. nltk==3.7 spacy==3.4.1 textblob==0.17.1 import nltk nltk.download("punkt") nltk.download("averaged_perceptron_tagger") import spacy from spacy.cli.download import download download(model="en_core_web_sm") spacy_nlp = spacy.load("en_core_web_sm") from textblob import TextBlob import ssl import time try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context txt = """The Natural Language Processing group focuses on developing efficient algorithms to process text and to make their information accessible to computer applications.""" def time_taken(func): def wrapper():