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

What can I do to train a model? #30

Open
ZhixiuYe opened this issue Mar 7, 2017 · 0 comments
Open

What can I do to train a model? #30

ZhixiuYe opened this issue Mar 7, 2017 · 0 comments

Comments

@ZhixiuYe
Copy link

ZhixiuYe commented Mar 7, 2017

Hello,I want to train a model and I run
java -cp ollie-app-latest.jar edu.knowitall.openparse.BuildPatterns data/lemmagrep.txt data/patterns.txt
lemmagrep.txt is downloaded from http://knowitall.cs.washington.edu/ollie/data/lemmagrep.txt.bz2

but I get an error:

15:20:08.685 [main] INFO e.knowitall.openparse.BuildPatterns$ - chunk size: 100000
15:20:08.689 [main] INFO e.knowitall.openparse.BuildPatterns$ - pattern length: None
15:20:08.832 [main] ERROR e.knowitall.openparse.BuildPatterns$ - could not deserialize graph: 1
edu.knowitall.tool.parse.graph.DependencyGraph$SerializationException: Could not deserialize graph: 1
at edu.knowitall.tool.parse.graph.DependencyGraph$.deserialize(DependencyGraph.scala:606) ~[ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1$$anonfun$3$$anonfun$apply$mcV$sp$1.apply(BuildPatterns.scala:79) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1$$anonfun$3$$anonfun$apply$mcV$sp$1.apply(BuildPatterns.scala:73) [ollie-app-latest.jar:na]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) [ollie-app-latest.jar:na]
at scala.collection.immutable.List.foreach(List.scala:76) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1$$anonfun$3.apply$mcV$sp(BuildPatterns.scala:73) [ollie-app-latest.jar:na]
at edu.knowitall.common.Timing$.time(Timing.scala:59) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1.apply(BuildPatterns.scala:73) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1.apply(BuildPatterns.scala:68) [ollie-app-latest.jar:na]
at scala.collection.Iterator$class.foreach(Iterator.scala:772) [ollie-app-latest.jar:na]
at scala.collection.Iterator$GroupedIterator.foreach(Iterator.scala:907) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$.main(BuildPatterns.scala:68) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$.main(BuildPatterns.scala:50) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns.main(BuildPatterns.scala) [ollie-app-latest.jar:na]
Caused by: edu.knowitall.tool.parse.graph.Dependency$SerializationException: could not deserialize dependency: 1
at edu.knowitall.tool.parse.graph.Dependency$.deserialize(Dependency.scala:62) ~[ollie-app-latest.jar:na]
at edu.knowitall.tool.parse.graph.Dependencies$$anonfun$deserialize$1.apply(Dependency.scala:74) ~[ollie-app-latest.jar:na]
at edu.knowitall.tool.parse.graph.Dependencies$$anonfun$deserialize$1.apply(Dependency.scala:74) ~[ollie-app-latest.jar:na]
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233) ~[ollie-app-latest.jar:na]
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233) ~[ollie-app-latest.jar:na]
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34) ~[ollie-app-latest.jar:na]
at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:38) ~[ollie-app-latest.jar:na]
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233) ~[ollie-app-latest.jar:na]
at scala.collection.mutable.ArrayOps.map(ArrayOps.scala:38) ~[ollie-app-latest.jar:na]
at edu.knowitall.tool.parse.graph.Dependencies$.deserialize(Dependency.scala:74) ~[ollie-app-latest.jar:na]
at edu.knowitall.tool.parse.graph.DependencyGraph$.rec$1(DependencyGraph.scala:596) ~[ollie-app-latest.jar:na]
at edu.knowitall.tool.parse.graph.DependencyGraph$.deserialize(DependencyGraph.scala:601) ~[ollie-app-latest.jar:na]
... 13 common frames omitted
Caused by: scala.MatchError: 1 (of class java.lang.String)
at edu.knowitall.tool.parse.graph.Dependency$.deserialize(Dependency.scala:55) ~[ollie-app-latest.jar:na]
... 24 common frames omitted
15:20:08.859 [main] ERROR e.knowitall.openparse.BuildPatterns$ - could not deserialize graph: 1
edu.knowitall.tool.parse.graph.DependencyGraph$SerializationException: Could not deserialize graph: 1
at edu.knowitall.tool.parse.graph.DependencyGraph$.deserialize(DependencyGraph.scala:606) ~[ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1$$anonfun$3$$anonfun$apply$mcV$sp$1.apply(BuildPatterns.scala:79) [ollie-app-latest.jar:na]
at edu.knowitall.openparse.BuildPatterns$$anonfun$main$1$$anonfun$3$$anonfun$apply$mcV$sp$1.apply(BuildPatterns.scala:73) [ollie-app-latest.jar:na]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) [ollie-app-latest.jar:na]
at scala.collection.immutable.List.foreach(List.scala:76) [ollie-app-latest.jar:na]
......

Could you tell me what I can do to fix it? thanks!

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