Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Can not find the path to the Model file #20

Closed
Sergey80 opened this issue Dec 29, 2014 · 8 comments
Closed

Can not find the path to the Model file #20

Sergey80 opened this issue Dec 29, 2014 · 8 comments

Comments

@Sergey80
Copy link

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

@Sergey80 Sergey80 changed the title Can not find path Can not find the path to Model Dec 29, 2014
@Sergey80 Sergey80 changed the title Can not find the path to Model Can not find the path to the Model file Dec 29, 2014
@Sergey80
Copy link
Author

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.

@reactormonk
Copy link
Collaborator

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?

@Sergey80
Copy link
Author

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

@reactormonk
Copy link
Collaborator

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

@dlwh
Copy link
Owner

dlwh commented Jan 12, 2015

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

@enragedginger
Copy link

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.

@dlwh
Copy link
Owner

dlwh commented Jan 22, 2015

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).

@dlwh
Copy link
Owner

dlwh commented Jan 26, 2015

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

@dlwh dlwh closed this as completed Jan 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants