Not getting entity #11109
-
I am using google colab !python -m spacy download en_core_web_lg smol_nlp = spacy.load('en_core_web_sm') nlp = spacy.load('en_core_web_lg') |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I also tried text = 'KAPS PARKING' |
Beta Was this translation helpful? Give feedback.
-
changing the values to lowercase helped!. It is labelling the value(which is now "kaps parking" instead of "KAPS PARKING") and an ORG(which it is) I first changed all values in the column to lowercase train[columns_name] = train[column_name].apply(str.lower) for words in nlp(train[column_name][0]).ents: |
Beta Was this translation helpful? Give feedback.
changing the values to lowercase helped!. It is labelling the value(which is now "kaps parking" instead of "KAPS PARKING") and an ORG(which it is)
I first changed all values in the column to lowercase
then tried to get the entity value
train[columns_name] = train[column_name].apply(str.lower)
for words in nlp(train[column_name][0]).ents:
print(words, words.label_)