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
The nerds.core.model.ner.dictionary.ExactMatchDictionaryNER class allows tagging against a single class. The constructor forces us to specify a path to the dictionary file and a class label. This is most likely driven by the misconception that the pyahocorasick module can only support a single class at a time, which is incorrect.
Proposal here is to build an additional nerds.core.model.ner.dictionary.ExactMatchMultiClassDictionaryNER implementation that can handle dictionary lookup against multiple entity classes.
The text was updated successfully, but these errors were encountered:
Also added a pseudo fit method that allows the ExactMatchMultiClassDictionaryNER to be used similar to other NER models (i.e., fit with Xtrain, transform with Xtest, rather than load automaton from provided dictionary during construction and then calling transform thereafter.
The
nerds.core.model.ner.dictionary.ExactMatchDictionaryNER
class allows tagging against a single class. The constructor forces us to specify a path to the dictionary file and a class label. This is most likely driven by the misconception that thepyahocorasick
module can only support a single class at a time, which is incorrect.Proposal here is to build an additional
nerds.core.model.ner.dictionary.ExactMatchMultiClassDictionaryNER
implementation that can handle dictionary lookup against multiple entity classes.The text was updated successfully, but these errors were encountered: