concise-concepts
concise-concepts copied to clipboard
This repository contains an easy and intuitive approach to few-shot NER using most similar expansion over spaCy embeddings. Now with entity scoring.
Looks like patterns currently prevent verbs? individual_pattern = { "lemma": {"regex": r"(?i)" + word}, "POS": {"NOT_IN": ["VERB"]}, "DEP": {"NOT_IN": ["nsubjpass"]}, }
Raised an issue earlier regarding the same problem and @davidberenstein1957 committed a fix and posted this code block as solution import spacy from spacy import displacy import concise_concepts data =...
Hi Team, I am getting below issue while adding concise_concepts to spacy nlp pipeline in the latest version **nlp.add_pipe("concise_concepts", config={"data" : prints_data})** ``` 2022-10-11 16:25:18.181 ISTextract_expertreports_printsdu74r1dm4mrf ERROR:root:Traceback (most recent call...
We are getting a 500MB array for the JSON output for concise concepts. Is it possible to exclude the results from the JSON from being returned?
Seems like concise concepts, while great, isn't able to assign entities to "multiple words". For instance, it might pick up: Mashed -> ENT Potato -> ENT But not "Mashed Potato"...
I believe you are missing to call the lematization function before you build the conceptual patterns. I saw you already have the function for it but not calling it: I...
Corrected run(), added lemmatization and seperated the expanded data from the original for infer the expanded data, some list results had mixed str/form object, cast to str added
```bash Name a comma-separated list of fruits: banana, apple, orange, ```