CogComp / cogcomp-nlp

CogComp's Natural Language Processing Libraries and Demos: Modules include lemmatizer, ner, pos, prep-srl, quantifier, question type, relation-extraction, similarity, temporal normalizer, tokenizer, transliteration, verb-sense, and more.
http://nlp.cogcomp.org/
Other
471 stars 144 forks source link

Which model files for MentionAnnotator #745

Open chrisoutwright opened 3 years ago

chrisoutwright commented 3 years ago

I am trying to build illinois-md, but due to the link being down for automatic download of models, I have to do it manually.

I found the following files in\illinois-coref-ace-model-1.5.jar\edu\illinois\cs\cogcomp\lbj\coref\learned\ in the repo:

EmnlpBasicCoref.lex
Introduction.lex
aceCorefSPLearner.lc
MDExtendHeads.lc
MTypePredictor.lex
Emnlp8.lex
MDExtendHeads.lex
Introduction.lc
Emnlp8.lc
MTypePredictor.lc
aceCorefSPLearner.lex
MentionDetectorMyBIOHead.lc
EmnlpBasicCoref.lc
MentionDetectorMyBIOHead.lex

When trying to compile I had to adjust paths (in my case I the subdirs like this: C:\Users\chris\.cogcomp-datastore\readonly.org.cogcomp.mention\1.0\ACE_HEAD_NONTYPE\ACE_HEAD_NONTYPE), also the file name needs to be adjusted (e.g. for one it is ACE_NAM). It seems that this file corresponds to org.cogcomp.md.LbjGen.bio_classifier_nam, as I tried loading any of the files above with renaming. This was the error message:

Error reading model from 'file:C:/Users/chris/.cogcomp-datastore/readonly.org.cogcomp.mention/1.0/ACE_HEAD_NONTYPE/ACE_HEAD_NONTYPE/ACE_NAM.lc':
  Expected 'org.cogcomp.md.LbjGen.bio_classifier_nam' but received 'edu.illinois.cs.cogcomp.lbj.coref.learned.MentionDetectorMyBIOHead'

So where can I find the correct files in the repo? It was absurdly hard to find the names of the correct files, as I needed to follow the steps above. Model loading errors just be much more informative when they are missing!