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

unable to test rules with unification #22

Open
milekpl opened this issue Apr 15, 2016 · 0 comments
Open

unable to test rules with unification #22

milekpl opened this issue Apr 15, 2016 · 0 comments
Labels

Comments

@milekpl
Copy link
Member

milekpl commented Apr 15, 2016

The online editor does not offer unification checks at all. If you have a rule for language with standard unification defined in the grammar.xml, for example for Polish:


<rule id="TEST" name="unification test">
    <pattern>
        <unify><feature id="gender"/><feature id="number"/>
        <token skip="-1" postag="(?:subst|ger):.*" postag_regexp="yes"/>
        <marker>
          <token inflected='yes' regexp='yes'>który|jaki</token>
        </marker>
        </unify>
    </pattern>
    <message><suggestion>test</suggestion>?</message>
    <example correction="test">To były rozmowy, <marker>które</marker> nie miały sensu.</example>
</rule>

You get the following error message:

Error: XML validation failed: org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 20; cvc-id.1: There is no ID/IDREF binding for IDREF 'gender'.

@milekpl milekpl added the bug label Apr 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant