How to transfer custom extension attributes from source entities to merged tokens when using "merge_entities" component? #13235
-
Hi, I'm planning to use the Matcher for rule-based relationship extraction between entities. The entities (Spans) carry custom information in extension attributes ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi! To back up slightly, I'm trying to understand why you need the "merge token" functionality at all. It's true that the Matcher works on Tokens, as you say. But in my view, that doesn't mean that you need to merge all tokens of one entity into one artificial "token". Would the following setup work instead?
If this works, I think it might be a better approach overall, as you don't need these artificially merged "tokens" that could mess up parser/NER/tagger performance if you'd need that in your pipeline... |
Beta Was this translation helpful? Give feedback.
Hi!
To back up slightly, I'm trying to understand why you need the "merge token" functionality at all. It's true that the Matcher works on Tokens, as you say. But in my view, that doesn't mean that you need to merge all tokens of one entity into one artificial "token". Would the following setup work instead?
start
andend
matches the token indexIf this wo…