Skip to content
Discussion options

You must be logged in to vote

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_)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@polm
Comment options

@wuuthraad-x
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by polm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer perf / accuracy Performance: accuracy
2 participants
Converted from issue

This discussion was converted from issue #11105 on July 11, 2022 03:31.