dlwh / epic

**Archived** Epic is a high performance statistical parser written in Scala, along with a framework for building complex structured prediction models.

Home Page:http://scalanlp.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not find the path to the Model file

Sergey80 opened this issue · comments

Got the model (from here: http://www.scalanlp.org/models/ ) and put it into the project home

Then:
val tagger = epic.models.deserialize[CRF[AnnotatedLabel, String]]("model.ser.gz") {code}

But still have exception:
Exception in thread "main" java.lang.RuntimeException: Could not find model model.ser.gz in path /home/myuser/projects/nlp/epic-mast

But the model file is definitely there

nope. not working. whether I use model.ser.gz or file-name.jar. And there is no test about this also that would prove that it woks.

The corresponding code is in https://github.com/dlwh/epic/blob/master/src/main/scala/epic/models/package.scala#L36-L82. From what I see, you are using a jar, so use val tagger = epic.models.deserialize[CRF[AnnotatedLabel, String]]("model.ser.gz", new File("<path to jar")) Also, the line number of the error message would be interesting because there's two code paths with that exception message.

On another note, why not include the file as dependency?

then: sbt.ResolveException: unresolved dependency: org.scalanlp#epic-pos-en_2.11;2014.9.15-SNAPSHOT: not found

That's only been compiled for 2.10. Pokes @dlwh

Sorry, yeah, I only built POS models for 2.10. I'll try to get to it this week.

Yeah, if you could release the latests builds of the en POS artifact to the repos, that'd be great. If there's any way that I can assist, just let me know.

Sorry, building en POS artifacts today. Will deploy tonight.

On Tue, Jan 13, 2015 at 9:17 PM, Stephen Hopper notifications@github.com
wrote:

Yeah, if you could release the latests builds of the en POS artifact to
the repos, that'd be great. If there's any way that I can assist, just let
me know.


Reply to this email directly or view it on GitHub
#20 (comment).

ok, new release. depends on epic 0.3, and has version number 2015.1.25