NLP Relation extraction

Hi @vlad28,

As far as I know, Spacy does not support an out-of-the-box Relation Extraction component. It looks like you have to manually define some rules to extract dependencies (I’m sure there are some blog posts out there) or implement your own relation extraction component (check the linked blog post by Spacy). Hence, a corresponding Spacy node in KNIME doesn’t exist either. Basically, this portion of the analysis, requires you to use Python.

A possible alternative for English (for which we do have a node) is the
StanfordNLP Relation Extractor – KNIME Community Hub.
This nodes supports a limited number of entities and relation types (check the node docs for the full list).

If you’re interested in other languages and don’t want to get caught up in complex coding, I’d suggest using LLMs (even local ones which have improved significantly lately). Check my previous answer in a similar forum thread: NLP questions - #2 by roberto_cadili

Hope it helps!
Roberto

1 Like