CogComp / saul

Saul : Declarative Learning-Based Programming
Other
64 stars 18 forks source link

SpRL: bug with testing #476

Closed PattyBG closed 7 years ago

PattyBG commented 7 years ago

Hi :) I am trying to use the Spatial Role Labeling tool. I managed to do the Training Step, but I have the following error with the Testing step:

 

[info] Running edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp 
[info] INFO  [2017-04-21 17:14:22,646] e.i.c.c.s.n.S.SpRLApp$: Loading default configuration parameters
[info] INFO  [2017-04-21 17:14:22,654] e.i.c.c.s.n.S.SpRLApp$: population starts.
[error] Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0,7 sec].
[error] Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [1,7 sec].
[info] INFO  [2017-04-21 17:14:33,286] e.i.c.c.s.n.S.SpRLDataModelReader$: working on SpRL_SemEval2013_gold.xml ...
[info] INFO  [2017-04-21 17:14:50,269] e.i.cs.cogcomp.srl.SRLProperties: ## initializing edu.illinois.cs.cogcomp.srl.SRLProperties.
[info] INFO  [2017-04-21 17:14:50,304] e.i.c.c.e.u.VerbClassDictionary: Reading verb class dictionary. Looking for levin-verbClass.txt in the classpath
[info] INFO  [2017-04-21 17:14:50,311] e.i.c.c.e.u.VerbClassDictionary: Loaded verb class dictionary. Test: classes for 'give' are [2.1, 9.9]
[info] INFO  [2017-04-21 17:14:50,317] e.i.c.c.srl.data.LegalArguments: Loading legal arguments from Verb.legal.arguments
[info] INFO  [2017-04-21 17:14:50,340] e.i.cs.cogcomp.srl.core.SRLManager: 50 Arguments: [, A0, A1, A2, A3, A4, A5, AA, AM-ADV, AM-CAU, AM-DIR, AM-DIS, AM-EXT, AM-LOC, AM-MNR, AM-MOD, AM-NEG, AM-PNC, AM-PRD, AM-REC, AM-TMP, C-A0, C-A1, C-A2, C-A3, C-A4, C-AM-ADV, C-AM-CAU, C-AM-DIR, C-AM-DIS, C-AM-EXT, C-AM-LOC, C-AM-MNR, C-AM-NEG, C-AM-PNC, C-AM-TMP, C-V, R-A0, R-A1, R-A2, R-A3, R-A4, R-AA, R-AM-ADV, R-AM-CAU, R-AM-EXT, R-AM-LOC, R-AM-MNR, R-AM-PNC, R-AM-TMP]
[info] INFO  [2017-04-21 17:14:50,340] e.i.cs.cogcomp.srl.core.SRLManager: 21 senses: [01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
[info] INFO  [2017-04-21 17:14:50,341] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Classifier from features/Verb.Classifier.fex
[info] INFO  [2017-04-21 17:14:50,359] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Identifier from features/Verb.Identifier.fex
[info] INFO  [2017-04-21 17:14:50,363] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Sense from features/Verb.Sense.fex
[error] avr. 21, 2017 5:14:50 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading MapBackedDictionary
[error] avr. 21, 2017 5:14:50 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:57 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Installing dictionary net.didion.jwnl.dictionary.MapBackedDictionary@51972dc7
[info] INFO  [2017-04-21 17:14:58,685] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Predicate from features/Verb.Predicate.fex
[info] INFO  [2017-04-21 17:14:58,690] e.i.cs.cogcomp.srl.core.SRLManager: Adding all constraints specified in constraints/Verb.constraints
[info] INFO  [2017-04-21 17:14:58,697] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noOverlappingArguments
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noDuplicateCore
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint CArgumentConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint RArgumentConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint predicateSense
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint beVerbConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noCrossArgumentExclusiveOverlap
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint crossArgumentRetainedModifiers
[info] INFO  [2017-04-21 17:14:58,699] e.i.c.c.srl.SemanticRoleLabeler: Loading model Classifier
[info] INFO  [2017-04-21 17:14:58,699] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Classifier from models/Verb.Classifier.PARSE_STANFORD.856048471.lc in classpath
[info] INFO  [2017-04-21 17:15:17,312] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Classifier weight vector. Took 18613 ms
[info] INFO  [2017-04-21 17:15:17,313] e.i.c.c.srl.SemanticRoleLabeler: Loading model Identifier
[info] INFO  [2017-04-21 17:15:17,313] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Identifier from models/Verb.Identifier.PARSE_STANFORD.-849723840.lc in classpath
[info] INFO  [2017-04-21 17:15:17,877] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Identifier weight vector. Took 564 ms
[info] INFO  [2017-04-21 17:15:17,877] e.i.c.c.srl.SemanticRoleLabeler: Loading model Sense
[info] INFO  [2017-04-21 17:15:17,877] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Sense from models/Verb.Sense.PARSE_STANFORD.-1137470562.lc in classpath
[info] INFO  [2017-04-21 17:15:18,060] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Sense weight vector. Took 183 ms
[info] INFO  [2017-04-21 17:15:18,060] e.i.c.c.srl.SemanticRoleLabeler: Finished loading all models
[info] INFO  [2017-04-21 17:15:18,065] e.i.cs.cogcomp.srl.core.SRLManager: Loading argument identifier
[info] INFO  [2017-04-21 17:15:18,066] e.i.cs.cogcomp.srl.core.SRLManager: Argument identifier scaler (A,B) = (4.479999999999949,2.6899999999999866)
[info] INFO  [2017-04-21 17:15:18,066] e.i.cs.cogcomp.srl.core.SRLManager: Finished initializing argument identifier
[info] INFO  [2017-04-21 17:15:18,091] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Identifier.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:18,353] e.i.c.c.core.datastructures.Lexicon: Found 725500 features
[info] INFO  [2017-04-21 17:15:18,354] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 262 ms
[info] INFO  [2017-04-21 17:15:18,354] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Identifier lexicon. Took 263 ms
[info] INFO  [2017-04-21 17:15:18,456] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Classifier.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:19,681] e.i.c.c.e.a.BrownClusterViewGenerator: Finished loading 1000 brown clusters from brown-clusters/brown-rcv1.clean.tokenized-CoNLL03.txt-c1000-freq1.txt
[info] INFO  [2017-04-21 17:15:19,849] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Sense.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:19,892] e.i.c.c.core.datastructures.Lexicon: Found 153835 features
[info] INFO  [2017-04-21 17:15:19,892] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 43 ms
[info] INFO  [2017-04-21 17:15:19,892] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Sense lexicon. Took 43 ms
[info] INFO  [2017-04-21 17:15:20,620] e.i.c.c.core.datastructures.Lexicon: Found 4931371 features
[info] INFO  [2017-04-21 17:15:20,620] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 2163 ms
[info] INFO  [2017-04-21 17:15:20,620] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Classifier lexicon. Took 2164 ms
[info] INFO  [2017-04-21 17:15:20,715] e.i.c.c.s.i.c.CrossArgumentRetainedModifiers: Loading allowed cross-argument modifier arguments from Verb.cross-predicate.modifiers
[info] ERROR [2017-04-21 17:15:50,517] e.i.c.c.s.l.SRLPredicateInstance: Unable to extract features for SRLMulticlassInstance [cand=a window with white curtains in the background, predicate=be]
[info] java.lang.NullPointerException: null
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.SymbolTable.getId(SymbolTable.java:44)
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:86)
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:63)
[info]  at edu.illinois.cs.cogcomp.edison.features.ContextFeatureExtractor.getFeatures(ContextFeatureExtractor.java:87)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error] Exception in thread "pool-392-thread-2" java.lang.RuntimeException: java.lang.NullPointerException
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureUtilities$2.getFeatures(FeatureUtilities.java:262)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:153)
[info]  at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:143)
[info]  at edu.illinois.cs.cogcomp.core.utilities.Parallel$2.run(Parallel.java:83)
[info]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[info]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[info]  at java.lang.Thread.run(Thread.java:745)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:158)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:143)
[error]     at edu.illinois.cs.cogcomp.core.utilities.Parallel$2.run(Parallel.java:83)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] Caused by: java.lang.NullPointerException
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.SymbolTable.getId(SymbolTable.java:44)
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:86)
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:63)
[error]     at edu.illinois.cs.cogcomp.edison.features.ContextFeatureExtractor.getFeatures(ContextFeatureExtractor.java:87)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureUtilities$2.getFeatures(FeatureUtilities.java:262)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:153)
[error]     ... 5 more
[error] java.lang.NullPointerException
[error]     at edu.illinois.cs.cogcomp.sl.util.DenseVector.dotProduct(DenseVector.java:115)
[error]     at edu.illinois.cs.cogcomp.srl.core.SRLManager.getScores(SRLManager.java:480)
[error]     at edu.illinois.cs.cogcomp.srl.inference.SRLILPInference.addVariables(SRLILPInference.java:138)
[error]     at edu.illinois.cs.cogcomp.infer.ilp.AbstractILPInference.runInference(AbstractILPInference.java:33)
[error]     at edu.illinois.cs.cogcomp.srl.inference.SRLILPInference.getOutputView(SRLILPInference.java:233)
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.getSRL(SemanticRoleLabeler.java:218)
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.addView(SemanticRoleLabeler.java:235)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.lazyAddView(Annotator.java:176)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.getView(Annotator.java:161)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addView(SimpleCachingPipeline.java:305)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addViewsAndCache(SimpleCachingPipeline.java:352)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:240)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:227)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.TextAnnotationFactory$.createTextAnnotation(TextAnnotationFactory.scala:30)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:41)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:38)
[error]     at scala.collection.immutable.List.map(List.scala:277)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:38)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:34)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.Iterator$class.foreach(Iterator.scala:893)
[error]     at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
[error]     at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[error]     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error]     at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error]     at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$.read(SpRLDataModelReader.scala:34)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.PopulateSpRLDataModel$.apply(PopulateSpRLDataModel.scala:23)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.delayedEndpoint$edu$illinois$cs$cogcomp$saulexamples$nlp$SpatialRoleLabeling$SpRLApp$1(SpRLApp.scala:45)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$delayedInit$body.apply(SpRLApp.scala:24)
[error]     at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error]     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.collection.immutable.List.foreach(List.scala:381)
[error]     at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error]     at scala.App$class.main(App.scala:76)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.main(SpRLApp.scala:24)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp.main(SpRLApp.scala)
[error] Exception in thread "main" edu.illinois.cs.cogcomp.annotation.AnnotatorException
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.addView(SemanticRoleLabeler.java:239)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.lazyAddView(Annotator.java:176)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.getView(Annotator.java:161)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addView(SimpleCachingPipeline.java:305)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addViewsAndCache(SimpleCachingPipeline.java:352)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:240)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:227)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.TextAnnotationFactory$.createTextAnnotation(TextAnnotationFactory.scala:30)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:41)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:38)
[error]     at scala.collection.immutable.List.map(List.scala:277)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:38)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:34)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.Iterator$class.foreach(Iterator.scala:893)
[error]     at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
[error]     at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[error]     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error]     at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error]     at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$.read(SpRLDataModelReader.scala:34)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.PopulateSpRLDataModel$.apply(PopulateSpRLDataModel.scala:23)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.delayedEndpoint$edu$illinois$cs$cogcomp$saulexamples$nlp$SpatialRoleLabeling$SpRLApp$1(SpRLApp.scala:45)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$delayedInit$body.apply(SpRLApp.scala:24)
[error]     at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error]     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.collection.immutable.List.foreach(List.scala:381)
[error]     at 
[info] Running edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp 
[info] INFO  [2017-04-21 17:14:22,646] e.i.c.c.s.n.S.SpRLApp$: Loading default configuration parameters
[info] INFO  [2017-04-21 17:14:22,654] e.i.c.c.s.n.S.SpRLApp$: population starts.
[error] Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0,7 sec].
[error] Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [1,7 sec].
[info] INFO  [2017-04-21 17:14:33,286] e.i.c.c.s.n.S.SpRLDataModelReader$: working on SpRL_SemEval2013_gold.xml ...
[info] INFO  [2017-04-21 17:14:50,269] e.i.cs.cogcomp.srl.SRLProperties: ## initializing edu.illinois.cs.cogcomp.srl.SRLProperties.
[info] INFO  [2017-04-21 17:14:50,304] e.i.c.c.e.u.VerbClassDictionary: Reading verb class dictionary. Looking for levin-verbClass.txt in the classpath
[info] INFO  [2017-04-21 17:14:50,311] e.i.c.c.e.u.VerbClassDictionary: Loaded verb class dictionary. Test: classes for 'give' are [2.1, 9.9]
[info] INFO  [2017-04-21 17:14:50,317] e.i.c.c.srl.data.LegalArguments: Loading legal arguments from Verb.legal.arguments
[info] INFO  [2017-04-21 17:14:50,340] e.i.cs.cogcomp.srl.core.SRLManager: 50 Arguments: [, A0, A1, A2, A3, A4, A5, AA, AM-ADV, AM-CAU, AM-DIR, AM-DIS, AM-EXT, AM-LOC, AM-MNR, AM-MOD, AM-NEG, AM-PNC, AM-PRD, AM-REC, AM-TMP, C-A0, C-A1, C-A2, C-A3, C-A4, C-AM-ADV, C-AM-CAU, C-AM-DIR, C-AM-DIS, C-AM-EXT, C-AM-LOC, C-AM-MNR, C-AM-NEG, C-AM-PNC, C-AM-TMP, C-V, R-A0, R-A1, R-A2, R-A3, R-A4, R-AA, R-AM-ADV, R-AM-CAU, R-AM-EXT, R-AM-LOC, R-AM-MNR, R-AM-PNC, R-AM-TMP]
[info] INFO  [2017-04-21 17:14:50,340] e.i.cs.cogcomp.srl.core.SRLManager: 21 senses: [01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
[info] INFO  [2017-04-21 17:14:50,341] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Classifier from features/Verb.Classifier.fex
[info] INFO  [2017-04-21 17:14:50,359] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Identifier from features/Verb.Identifier.fex
[info] INFO  [2017-04-21 17:14:50,363] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Sense from features/Verb.Sense.fex
[error] avr. 21, 2017 5:14:50 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading MapBackedDictionary
[error] avr. 21, 2017 5:14:50 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: index]
[error] avr. 21, 2017 5:14:55 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:57 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: data]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: noun] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: verb] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adjective] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Loading [POS: adverb] [DictionaryFile: exception]
[error] avr. 21, 2017 5:14:58 PM net.didion.jwnl.util.MessageLog doLog
[error] INFOS: Installing dictionary net.didion.jwnl.dictionary.MapBackedDictionary@51972dc7
[info] INFO  [2017-04-21 17:14:58,685] e.i.cs.cogcomp.srl.core.ModelInfo: Loading feature extractor for Predicate from features/Verb.Predicate.fex
[info] INFO  [2017-04-21 17:14:58,690] e.i.cs.cogcomp.srl.core.SRLManager: Adding all constraints specified in constraints/Verb.constraints
[info] INFO  [2017-04-21 17:14:58,697] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noOverlappingArguments
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noDuplicateCore
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint CArgumentConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint RArgumentConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint predicateSense
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint beVerbConstraint
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint noCrossArgumentExclusiveOverlap
[info] INFO  [2017-04-21 17:14:58,698] e.i.cs.cogcomp.srl.core.SRLManager: Including constraint crossArgumentRetainedModifiers
[info] INFO  [2017-04-21 17:14:58,699] e.i.c.c.srl.SemanticRoleLabeler: Loading model Classifier
[info] INFO  [2017-04-21 17:14:58,699] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Classifier from models/Verb.Classifier.PARSE_STANFORD.856048471.lc in classpath
[info] INFO  [2017-04-21 17:15:17,312] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Classifier weight vector. Took 18613 ms
[info] INFO  [2017-04-21 17:15:17,313] e.i.c.c.srl.SemanticRoleLabeler: Loading model Identifier
[info] INFO  [2017-04-21 17:15:17,313] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Identifier from models/Verb.Identifier.PARSE_STANFORD.-849723840.lc in classpath
[info] INFO  [2017-04-21 17:15:17,877] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Identifier weight vector. Took 564 ms
[info] INFO  [2017-04-21 17:15:17,877] e.i.c.c.srl.SemanticRoleLabeler: Loading model Sense
[info] INFO  [2017-04-21 17:15:17,877] e.i.cs.cogcomp.srl.core.ModelInfo: Loading weight vector for Sense from models/Verb.Sense.PARSE_STANFORD.-1137470562.lc in classpath
[info] INFO  [2017-04-21 17:15:18,060] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Sense weight vector. Took 183 ms
[info] INFO  [2017-04-21 17:15:18,060] e.i.c.c.srl.SemanticRoleLabeler: Finished loading all models
[info] INFO  [2017-04-21 17:15:18,065] e.i.cs.cogcomp.srl.core.SRLManager: Loading argument identifier
[info] INFO  [2017-04-21 17:15:18,066] e.i.cs.cogcomp.srl.core.SRLManager: Argument identifier scaler (A,B) = (4.479999999999949,2.6899999999999866)
[info] INFO  [2017-04-21 17:15:18,066] e.i.cs.cogcomp.srl.core.SRLManager: Finished initializing argument identifier
[info] INFO  [2017-04-21 17:15:18,091] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Identifier.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:18,353] e.i.c.c.core.datastructures.Lexicon: Found 725500 features
[info] INFO  [2017-04-21 17:15:18,354] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 262 ms
[info] INFO  [2017-04-21 17:15:18,354] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Identifier lexicon. Took 263 ms
[info] INFO  [2017-04-21 17:15:18,456] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Classifier.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:19,681] e.i.c.c.e.a.BrownClusterViewGenerator: Finished loading 1000 brown clusters from brown-clusters/brown-rcv1.clean.tokenized-CoNLL03.txt-c1000-freq1.txt
[info] INFO  [2017-04-21 17:15:19,849] e.i.cs.cogcomp.srl.core.ModelInfo: Lexicon file models/Verb.Sense.PARSE_STANFORD.lex found.
[info] INFO  [2017-04-21 17:15:19,892] e.i.c.c.core.datastructures.Lexicon: Found 153835 features
[info] INFO  [2017-04-21 17:15:19,892] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 43 ms
[info] INFO  [2017-04-21 17:15:19,892] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Sense lexicon. Took 43 ms
[info] INFO  [2017-04-21 17:15:20,620] e.i.c.c.core.datastructures.Lexicon: Found 4931371 features
[info] INFO  [2017-04-21 17:15:20,620] e.i.c.c.core.datastructures.Lexicon: Loading lexicon took 2163 ms
[info] INFO  [2017-04-21 17:15:20,620] e.i.cs.cogcomp.srl.core.ModelInfo: Finished loading Classifier lexicon. Took 2164 ms
[info] INFO  [2017-04-21 17:15:20,715] e.i.c.c.s.i.c.CrossArgumentRetainedModifiers: Loading allowed cross-argument modifier arguments from Verb.cross-predicate.modifiers
[info] ERROR [2017-04-21 17:15:50,517] e.i.c.c.s.l.SRLPredicateInstance: Unable to extract features for SRLMulticlassInstance [cand=a window with white curtains in the background, predicate=be]
[info] java.lang.NullPointerException: null
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.SymbolTable.getId(SymbolTable.java:44)
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:86)
[info]  at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:63)
[info]  at edu.illinois.cs.cogcomp.edison.features.ContextFeatureExtractor.getFeatures(ContextFeatureExtractor.java:87)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error] Exception in thread "pool-392-thread-2" java.lang.RuntimeException: java.lang.NullPointerException
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureUtilities$2.getFeatures(FeatureUtilities.java:262)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[info]  at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[info]  at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:153)
[info]  at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:143)
[info]  at edu.illinois.cs.cogcomp.core.utilities.Parallel$2.run(Parallel.java:83)
[info]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[info]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[info]  at java.lang.Thread.run(Thread.java:745)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:158)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:143)
[error]     at edu.illinois.cs.cogcomp.core.utilities.Parallel$2.run(Parallel.java:83)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] Caused by: java.lang.NullPointerException
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.SymbolTable.getId(SymbolTable.java:44)
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:86)
[error]     at edu.illinois.cs.cogcomp.core.datastructures.textannotation.Constituent.(Constituent.java:63)
[error]     at edu.illinois.cs.cogcomp.edison.features.ContextFeatureExtractor.getFeatures(ContextFeatureExtractor.java:87)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureUtilities$2.getFeatures(FeatureUtilities.java:262)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.edison.features.CachedFeatureCollection.getFeatures(CachedFeatureCollection.java:42)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:93)
[error]     at edu.illinois.cs.cogcomp.edison.features.FeatureCollection.getFeatures(FeatureCollection.java:70)
[error]     at edu.illinois.cs.cogcomp.srl.learn.SRLPredicateInstance$1.run(SRLPredicateInstance.java:153)
[error]     ... 5 more
[error] java.lang.NullPointerException
[error]     at edu.illinois.cs.cogcomp.sl.util.DenseVector.dotProduct(DenseVector.java:115)
[error]     at edu.illinois.cs.cogcomp.srl.core.SRLManager.getScores(SRLManager.java:480)
[error]     at edu.illinois.cs.cogcomp.srl.inference.SRLILPInference.addVariables(SRLILPInference.java:138)
[error]     at edu.illinois.cs.cogcomp.infer.ilp.AbstractILPInference.runInference(AbstractILPInference.java:33)
[error]     at edu.illinois.cs.cogcomp.srl.inference.SRLILPInference.getOutputView(SRLILPInference.java:233)
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.getSRL(SemanticRoleLabeler.java:218)
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.addView(SemanticRoleLabeler.java:235)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.lazyAddView(Annotator.java:176)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.getView(Annotator.java:161)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addView(SimpleCachingPipeline.java:305)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addViewsAndCache(SimpleCachingPipeline.java:352)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:240)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:227)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.TextAnnotationFactory$.createTextAnnotation(TextAnnotationFactory.scala:30)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:41)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:38)
[error]     at scala.collection.immutable.List.map(List.scala:277)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:38)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:34)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.Iterator$class.foreach(Iterator.scala:893)
[error]     at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
[error]     at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[error]     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error]     at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error]     at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$.read(SpRLDataModelReader.scala:34)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.PopulateSpRLDataModel$.apply(PopulateSpRLDataModel.scala:23)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.delayedEndpoint$edu$illinois$cs$cogcomp$saulexamples$nlp$SpatialRoleLabeling$SpRLApp$1(SpRLApp.scala:45)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$delayedInit$body.apply(SpRLApp.scala:24)
[error]     at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error]     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.collection.immutable.List.foreach(List.scala:381)
[error]     at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error]     at scala.App$class.main(App.scala:76)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.main(SpRLApp.scala:24)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp.main(SpRLApp.scala)
[error] Exception in thread "main" edu.illinois.cs.cogcomp.annotation.AnnotatorException
[error]     at edu.illinois.cs.cogcomp.srl.SemanticRoleLabeler.addView(SemanticRoleLabeler.java:239)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.lazyAddView(Annotator.java:176)
[error]     at edu.illinois.cs.cogcomp.annotation.Annotator.getView(Annotator.java:161)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addView(SimpleCachingPipeline.java:305)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.addViewsAndCache(SimpleCachingPipeline.java:352)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:240)
[error]     at edu.illinois.cs.cogcomp.nlp.util.SimpleCachingPipeline.createAnnotatedTextAnnotation(SimpleCachingPipeline.java:227)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.TextAnnotationFactory$.createTextAnnotation(TextAnnotationFactory.scala:30)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:41)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1$$anonfun$apply$2.apply(SpRLDataModelReader.scala:38)
[error]     at scala.collection.immutable.List.map(List.scala:277)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:38)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$$anonfun$read$1.apply(SpRLDataModelReader.scala:34)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
[error]     at scala.collection.Iterator$class.foreach(Iterator.scala:893)
[error]     at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
[error]     at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[error]     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error]     at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
[error]     at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLDataModelReader$.read(SpRLDataModelReader.scala:34)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.PopulateSpRLDataModel$.apply(PopulateSpRLDataModel.scala:23)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.delayedEndpoint$edu$illinois$cs$cogcomp$saulexamples$nlp$SpatialRoleLabeling$SpRLApp$1(SpRLApp.scala:45)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$delayedInit$body.apply(SpRLApp.scala:24)
[error]     at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error]     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.App$$anonfun$main$1.apply(App.scala:76)
[error]     at scala.collection.immutable.List.foreach(List.scala:381)
[error]     at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error]     at scala.App$class.main(App.scala:76)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.main(SpRLApp.scala:24)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp.main(SpRLApp.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 saulExamples/compile:run for the full output.
[error] (saulExamples/compile:run) Nonzero exit code returned from runner: 1
[error] Total time: 116 s, completed 21 avr. 2017 17:15:51
scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error]     at scala.App$class.main(App.scala:76)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp$.main(SpRLApp.scala:24)
[error]     at edu.illinois.cs.cogcomp.saulexamples.nlp.SpatialRoleLabeling.SpRLApp.main(SpRLApp.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 saulExamples/compile:run for the full output.
[error] (saulExamples/compile:run) Nonzero exit code returned from runner: 1
[error] Total time: 116 s, completed 21 avr. 2017 17:15:51

The error seems to come from

ERROR [2017-04-21 17:15:50,517] e.i.c.c.s.l.SRLPredicateInstance: Unable to extract features for SRLMulticlassInstance [cand=a window with white curtains in the background, predicate=be]

What does that mean?

Thanks a lot for your help

kordjamshidi commented 7 years ago

@Rahgooy : any guess about what is this error? @bhargav : is it relevant for the SRL in the pipeline and TextAnnotation?

bhargav commented 7 years ago

The failure happens in the SRL annotator in the pipeline. But I couldn't find the exact reason for the error. Does this happen on all test sentences or any specific sentence?

PattyBG commented 7 years ago

In "saul-example", I already had to create a folder "models/sprl/2012/Relation" to make the training work ... Whithout the creation of this folder, it didn't work. Are you sure there is everything needed for Spatial Role Labeling on GitHub ?

Rahgooy commented 7 years ago

Please train/test without SRL feature(actually the results reported are without this feature):

  1. change this to :
    val JF2_12 = property(relations) {
    x: SpRelation =>""
    }
  2. change this to
    TextAnnotationFactory.disableSettings(settings, USE_SRL_NOM, USE_NER_ONTONOTES, USE_SRL_VERB)

@PattyBG Please let us know if the problem is just from SRL feature or not.

PattyBG commented 7 years ago

I manage to run the testing part on the 2013 dataset provided here : http://www.cs.tulane.edu/~pkordjam/SpRL.htm. (to switch from training to testing, i put public static final Property IS_TRAINING = new Property("isTraining", Configurator.FALSE, is it a good way to procede?)

However, I would like to test with my own sentences. How should I do that ? I tried to change the SpRL_SemEval2013_test.xml file by :

<SpRL>
<TEXT>A man with sunglasses sits on a chair .</TEXT>
<TAGS></TAGS>
</SpRL>

But it doesn't work.

Thanks for your time :)

Rahgooy commented 7 years ago

Your xml file is right, but you need to print the results instead of evaluation(classifier.test()). You can use something like this here :

      //classifier.test()
      SpRLDataModel.relations().filter(r => classifier(r).equalsIgnoreCase("Gold"))
        .foreach(r => {
          println(r.getSentence.getText)
          println(s"tr:${r.getTrajector.getText}")
          println(s"sp:${r.getSpatialIndicator.getText}")

          if (r.landmarkIsDefined())
            println(s"Lm:${r.getLandmark.getText}")
          else
            println("lm: None")

        })
PattyBG commented 7 years ago

Thanks for your quick answer :) I changed the code and it works fine with the "SpRL_SemEval2013_test.xml" file provided here : http://www.cs.tulane.edu/~pkordjam/SpRL.htm. However I still don't understand how to get (Trajector, Indicator, etc..) for my own sentences I want to annotate.

I am a bit lost ... I don't understand what is this "SpRL_SemEval2013_gold.xml" file ... In it, we have the sentences of your "SpRL_SemEval2013_test.xml" and the relations (Trajector, Indicator, etc..) at the end. Why ? Should I change the "SpRL_SemEval2013_gold.xml" file in order to test with my own sentences ?? Or just the SpRL_SemEval2013_test.xml" ?

Rahgooy commented 7 years ago

The test SpRL_SemEval2013_test.xml includes sentences that are not annotated, so in the 2013 shared task those plain sentences were given to the participants such that their systems ran on that and generated the annotations. The generated annotations then compared to the SpRL_SemEval2013_gold.xml which contains ground truth annotations for the same sentences. By comparing the gold against the predictions of task participants we could report the precision/recall/f1 of their models. Does this make sense?

If you want to annotate your own sentences, you can put them in a file similar to the test xml file and change the path in the configuration here. Note that the xml reader uses a path, so put your file in a folder and point to that folder. you can see the output annotations in the console using the code I posted before. But if you want xml output you should write some code...