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

running ExperimentRunner problem #6

Closed
dtjayaaa12345 opened this issue Sep 29, 2015 · 2 comments
Closed

running ExperimentRunner problem #6

dtjayaaa12345 opened this issue Sep 29, 2015 · 2 comments

Comments

@dtjayaaa12345
Copy link

Hi Dr.gradner,
I'm recently learning your pra algorthm,and using the code to run some examples in the codebase.
I just do the options like sbt "run ./examples/ final_emnlp2015",and there are many errors like that

mg1@slave2 ~/pra

$ sbt "run ./examples/ final_emnlp2015"
[info] Loading project definition from /home/mg1/pra/project
[info] Set current project to pra (in build file:/home/mg1/pra/)
[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list
Multiple main classes detected, select one to run:
[1] edu.cmu.ml.rtw.pra.experiments.ExperimentRunner
[2] edu.cmu.ml.rtw.pra.experiments.ExperimentScorer
[3] edu.cmu.ml.rtw.users.matt.one_off.neil_experiments
Enter number: 1
[info] Running edu.cmu.ml.rtw.pra.experiments.ExperimentRunner ./examples/ final_emnlp2015
[info] Found 349 experiment specs, and kept 13 of them
[info] Running PRA from spec file ./examples/experiment_specs/nell/final_emnlp2015/sfe_bfs_pra_ one_sided.json
[error] Exception in thread "main" org.json4s.package$MappingException: Did not find value whic h can be converted into java.lang.String
[error] at org.json4s.Extraction$.convert(Extraction.scala:603)
[error] at org.json4s.Extraction$.extract(Extraction.scala:350)
[error] at org.json4s.Extraction$.extract(Extraction.scala:42)
[error] at org.json4s.ExtractableJsonAstNode.extract(ExtractableJsonAstNode.scala:21)
[error] at edu.cmu.ml.rtw.pra.graphs.GraphCreator.createGraphChiRelationGraph(GraphCrea tor.scala:76)
[error] at edu.cmu.ml.rtw.pra.graphs.GraphCreator.createGraphChiRelationGraph(GraphCrea tor.scala:72)
[error] at edu.cmu.ml.rtw.pra.experiments.Driver.createGraphIfNecessary(Driver.scala:26 9)
[error] at edu.cmu.ml.rtw.pra.experiments.Driver.runPra(Driver.scala:46)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner$.runPraFromSpec(ExperimentRu nner.scala:76)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner$$anonfun$runPra$1.apply(Expe rimentRunner.scala:56)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner$$anonfun$runPra$1.apply(Expe rimentRunner.scala:56)
[error] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala: 245)
[error] at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala: 245)
[error] at scala.collection.mutable.ArraySeq.foreach(ArraySeq.scala:74)
[error] at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
[error] at scala.collection.AbstractTraversable.map(Traversable.scala:104)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner$.runPra(ExperimentRunner.sca la:56)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner$.main(ExperimentRunner.scala :26)
[error] at edu.cmu.ml.rtw.pra.experiments.ExperimentRunner.main(ExperimentRunner.scala)
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
error Nonzero exit code returned from runner: 1
[error] Total time: 3 s, completed Sep 29, 2015 3:21:58 PM

because i just started to learn scala ,can you give some advice? Thank you very much!

@matt-gardner
Copy link
Owner

You can see from the line [error] at edu.cmu.ml.rtw.pra.graphs.GraphCreator.createGraphChiRelationGraph(GraphCreator.scala:76) that the code is trying to create a graph. It shouldn't be doing that, because I provided the graph in the data download. It appears that you didn't unpack the graph into the right place. You should have a directory like ./examples/graphs/nell/kb_svo/, with files in it like node_dict.tsv, edge_dict.tsv, and graph_chi/.

Also, I am certain that some of the experiments in final_emnlp2015 will fail, because I didn't provide enough input to reproduce all of the experiments. Try just running sfe_bfs_pra_anyrel first.

@dtjayaaa12345
Copy link
Author

Dr.gardner:
I just run the sfe_bfs_pra_anyrel , it succeed.And i realized the error you said above, thank you!

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

2 participants