OWLExporterDemo
Hello,
I am facing problem working with the tool. I tried replacing the text in demo.txt and got the below error. Please advise on this.
Regards,
Mysran
java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.util.HashMap$ValueIterator.next(Unknown Source)
at gate.annotation.AnnotationSetImpl$AnnotationSetIterator.next(AnnotationSetImpl.java:220)
at gate.annotation.AnnotationSetImpl$AnnotationSetIterator.next(AnnotationSetImpl.java:205)
at mention_map_domain_nlp_relation.Domain_appearsIn_Sentence(file:/D:/Research/KM/Concept_Maps/Ontology/Software/gate-8.1-build5169-BIN/plugins/OwlExporter/gate/application-resources/grammars/mention_map_domain_nlp_relation.jape:37)
at gate.jape.RightHandSide.transduce(RightHandSide.java:344)
at gate.jape.SinglePhaseTransducer.fireRule(SinglePhaseTransducer.java:690)
at gate.jape.SinglePhaseTransducer.transduce(SinglePhaseTransducer.java:354)
at gate.jape.MultiPhaseTransducer.transduce(MultiPhaseTransducer.java:188)
at gate.jape.Batch.transduce(Batch.java:204)
at gate.creole.Transducer.execute(Transducer.java:166)
at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)
at gate.creole.SerialController.runComponent(SerialController.java:225)
at gate.creole.SerialController.executeImpl(SerialController.java:157)
at gate.creole.SerialAnalyserController.executeImpl(SerialAnalyserController.java:223)
at gate.creole.SerialAnalyserController.execute(SerialAnalyserController.java:126)
at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)
at gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1728)
at java.lang.Thread.run(Unknown Source)
- Login to post comments



Please see existing answer
Hi,
This is the same issue as discussed in this question: http://www.semanticsoftware.info/forum/nosuchelementexception-when-runni...
Best, René
OWLExporterDemo
Hello,
Thanks for the reply. I have few queries on the comment made in the provided thread. I am copying that below...
"the reason is that the demo pipeline is *very* minimal, we only included resources and (hard-coded) rules to handle the short demo text. It shows you how the annotations need to be set up for OWL export, but for a real application pipeline, you'd need more sophisticated PRs (e.g., a parser for relation detection) or JAPE grammars."
Q1. By meaning "demo pipeline is *very* minimal", do you mean domain.owl which defines about a particular domain(like person, organisation and location)? If yes, what I am using as text in demo.txt is also similar, but still gets the error.
Q2. Please advise on the hard-coded rules. Where are these rules defined? I searched the folder OwlExporter\gate\application-resources\grammars for "Nick", "Montreal" but didn't find anything.
Q3. Please advice how to accomplish this(you'd need more sophisticated PRs).
Thank you once again for the reply.
Regards,
Mysran
Please check the GATE User's Guide and Training Material
Hello,
Your questions are mostly about how to use GATE, which is out of the scope of this forum. I recommend you check out the GATE User's Guide and Training Course material.
Specifically,
Regards, René