-
Notifications
You must be signed in to change notification settings - Fork 1
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
Usage grammar rules in NooJ CMD #2
Comments
Hi Daria, It's been quite a while, so I need to look into that in more detail. I just pushed a newer version that has some additional usage information in the README, eventually that could help. The first thing that comes to my mind when looking at the exception is that your files are eventually not the right version? The tool is still on a quite old version of Nooj4j (3.1 from 2014). Best, |
As for me, I'm working with the latest version of NooJ I have found it on their site: http://www.nooj-association.org/index.php?option=com_k2&view=item&layout=item&id=4&Itemid=615. Unfortunately, Maven repository doesn't contain any NooJ version. The first comment in your grammar file is: Maybe, are these comments valuable for grammar parsing? Best, |
Hey, I strongly suspect that it is because of the version, as you mentioned our grammar has version #OpenNooJ 1.0 while yours mentions #NooJ V5. One way you could test that is by replacing these headers and see if the error message changes, either in our test or in your grammar. In case you need the latest version we could try to upgrade this tool to a newer Nooj version, for this we would need to update the Nooj Jar file it uses and the pom.xml for the updated jar to satisfy maven. I don't know, however, if it it requires further changes to get it to work. Best, |
Dear colleagues,
I'm exploring NooJ tool for information extraction from Java code directly. There is an example of syntax analysis in tests folder where you check graphical grammars. Could I test the same code with grammar rules, not graphs?
After new grammar inserting (rules set) I caught an exception such as:
`net.nooj4nlp.cmd.io.LinguisticResources$LinguisticResourceException: Invalid statements:
Header not compatible
Could you tell me what's wrong in my actions? Does your CLI support rules work?
Sincerely yours,
Daria
The text was updated successfully, but these errors were encountered: