Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which model files for MentionAnnotator #745

Open
chrisoutwright opened this issue Dec 27, 2020 · 0 comments
Open

Which model files for MentionAnnotator #745

chrisoutwright opened this issue Dec 27, 2020 · 0 comments

Comments

@chrisoutwright
Copy link

chrisoutwright commented Dec 27, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant