Top "Nlp" questions

Natural language processing (NLP) is a subfield of artificial intelligence that involves transforming or extracting useful information from natural language data.

What does Keras Tokenizer method exactly do?

On occasion, circumstances require us to do the following: from keras.preprocessing.text import Tokenizer tokenizer = Tokenizer(num_words=my_…

python keras nlp
Add/remove custom stop words with spacy

What is the best way to add/remove stop words with spacy? I am using token.is_stop function and …

python nlp stop-words spacy
NLTK WordNet Lemmatizer: Shouldn't it lemmatize all inflections of a word?

I'm using the NLTK WordNet Lemmatizer for a Part-of-Speech tagging project by first modifying each word in the training corpus …

python nlp nltk
Is there an algorithm that tells the semantic similarity of two phrases

input: phrase 1, phrase 2 output: semantic similarity value (between 0 and 1), or the probability these two phrases are talking about the same …

algorithm nlp semantics
What is NLTK POS tagger asking me to download?

I just started using a part-of-speech tagger, and I am facing many problems. I started POS tagging with the following: …

python nlp nltk pos-tagger
How do I do dependency parsing in NLTK?

Going through the NLTK book, it's not clear how to generate a dependency tree from a given sentence. The relevant …

python nlp grammar nltk
NLTK and language detection

How do I detect what language a text is written in using NLTK? The examples I've seen use nltk.detect, …

python nlp nltk detection
Training data for sentiment analysis

Where can I get a corpus of documents that have already been classified as positive/negative for sentiment in the …

nlp machine-learning text-analysis sentiment-analysis training-data
English grammar for parsing in NLTK

Is there a ready-to-use English grammar that I can just load it and use in NLTK? I've searched around examples …

python nlp grammar nltk
How to interpret scikit's learn confusion matrix and classification report?

I have a sentiment analysis task, for this Im using this corpus the opinions have 5 classes (very neg, neg, neu, …

machine-learning nlp scikit-learn svm confusion-matrix