You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- text: Jack and Jill went up the hill.
spans:
- text: Jack
is_entity: true
label: PERSON
reason: is the name of a person
- text: Jill
is_entity: true
label: PERSON
reason: is the name of a person
- text: went up
is_entity: false
label: ==NONE==
reason: is a verb
- text: hill
is_entity: true
label: LOCATION
reason: is a location
from spacy_llm.util import assemble
nlp = assemble(
"fewshot.cfg"
)
doc = nlp("Jack and Jill went up the hill.")
print(f"Text: {doc.text}")
print(doc.ents)
print(f"Entities: {[(ent.text, ent.label_) for ent in doc.ents]}")
There are inconsistencies in output, and how do i resolve it?
python spacyllmtry.py
Text: Jack and Jill went up the hill.
(Jack, Jill, hill)
Entities: [('Jack', 'PERSON'), ('Jill', 'PERSON'), ('hill', 'LOCATION')]
python spacyllmtry.py
Text: Jack and Jill went up the hill.
()
Entities: []
The text was updated successfully, but these errors were encountered:
Here is a block of example.yml:
Block of fewshot.cfg
Block of pipeline run:
There are inconsistencies in output, and how do i resolve it?
The text was updated successfully, but these errors were encountered: