Hi,
I was testing the relation through sie with haystack following https://superlinked.com/docs/integrations/haystack
Relation Extraction
Extract relationships between entities using GLiREL:
from haystack_integrations.components.extractors.sie import SIEExtractor
extractor = SIEExtractor(
base_url="http://localhost:8080",
model="jackboyla/glirel-large-v0",
labels=["works_for", "ceo_of", "founded"]
)
result = extractor.run(text="Tim Cook is the CEO of Apple Inc.")
for relation in result["relations"]:
print(f"{relation.head} --{relation.relation}--> {relation.tail}")
# Tim Cook --ceo_of--> Apple Inc.
print(result)
I obtain no output:
{'entities': [], 'relations': [], 'classifications': [], 'objects': []}
The others extractions like Text Classification and Entity Extraction, work fine.
Is it a model issue?
Thanks a lot
Mario
Hi,
I was testing the relation through sie with haystack following https://superlinked.com/docs/integrations/haystack
Relation Extraction
Extract relationships between entities using GLiREL:
I obtain no output:
{'entities': [], 'relations': [], 'classifications': [], 'objects': []}The others extractions like Text Classification and Entity Extraction, work fine.
Is it a model issue?
Thanks a lot
Mario