Skip navigation.
Home
Semantic Software Lab
Concordia University
Montréal, Canada

NoSuchElementException when running OWLExporterDemo

Printer-friendly versionPrinter-friendly versionPDF versionPDF version

Hi,

when I run the OWLExporterDemo with the demo.txt it runs fine, but if I add my own text to the demo.txt document I am seeing the following exception in the mention_map_domain_nlp_relation JAPE grammer. I have not changed any of the demo JAPE files.

HAs anybody seen/experienced this problem?

Thanks

Paul

java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1431)
at java.util.HashMap$ValueIterator.next(HashMap.java:1458)
at gate.annotation.AnnotationSetImpl$AnnotationSetIterator.next(AnnotationSetImpl.java:213)
at gate.annotation.AnnotationSetImpl$AnnotationSetIterator.next(AnnotationSetImpl.java:198)
at mention_map_domain_nlp_relation.Domain_appearsIn_Sentence(file:/home/developer/GATE/gate/plugins/OwlExporter/gate/application-resources/grammars/mention_map_domain_nlp_relation.jape:38)
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:238)
at gate.creole.SerialAnalyserController.execute(SerialAnalyserController.java:129)
at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)
at gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1706)
at java.lang.Thread.run(Thread.java:745)

rene's picture

Example text?

Hi Paul,

Could you send us an example text that causes the exception for you?

Cheers, René

Hi René, I simply expanded

Hi René,

I simply expanded the demo.txt as below.

Thanks

Paul

Nick lives in Toronto. Toronto is a six hour drive from Montreal.
Nick is a software engineer and is responsible for the development, maintenance and operation of computer software to enable businesses and organisations to function as efficiently as possible.

Software engineers work in a range of industries, from offices to manufacturing companies developing, operating and maintaining specific software to allow the company’s work to be carried out with as few disruptions as possible. Typically, a software engineer works with a business analyst or computer programmer to identify the needs of a company and to develop the specifications of the engineering project. Working with a small team of IT professionals, the software engineer completes the project following a particular development plan which covers each stage of the project, including testing, software analysis and the installation of completed IT systems.

rene's picture

Demo pipeline

Hi Paul,

Yes, I get the same exception on this text.

I didn't have a chance to look into the grammar with the error yet, but basically 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.

Having said that, we'll look into changing the demo grammars to at least provide some useful diagnostics, instead of simply throwing an exception. Thanks for reporting this!

Cheers, René

Hi René, thanks for replying

Hi René,

thanks for replying and clarifying the problem.

Cheers

Paul