Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant