I see apple is classfied as ORG and fruit is classfied as ORG too. Here is the code i am trying
import spacy
nlp = spacy.load('en_core_web_lg')
doc = nlp(u'Apple is a Fruit')
for ent in doc.ents:
print(ent.text, ent.start_char, ent.end_char, ent.label_)
OUTPUT
Apple 0 5 ORG
Fruit 11 16 ORG
Your Environment
- Operating System:
- Python Version Used:
- spaCy Version Used:
- Environment Information:
I see apple is classfied as ORG and fruit is classfied as ORG too. Here is the code i am trying
import spacy
nlp = spacy.load('en_core_web_lg')
doc = nlp(u'Apple is a Fruit')
for ent in doc.ents:
print(ent.text, ent.start_char, ent.end_char, ent.label_)
OUTPUT
Apple 0 5 ORG
Fruit 11 16 ORG
Your Environment