08.11.2014 Views

On how to write rules in Constraint Grammar (CG-3) - VISL

On how to write rules in Constraint Grammar (CG-3) - VISL

On how to write rules in Constraint Grammar (CG-3) - VISL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Substitutions<br />

➢ Replaces a tag or tag cha<strong>in</strong> with another, useful for:<br />

correct<strong>in</strong>g <strong>in</strong>put from other modules, e.g. probabilistic taggers<br />

SUBSTITUTE (KS) ( INDP) TARGET ("that") (*1C VFIN BARRIER<br />

NON-ADV) (*-1C N BARRIER NON-ADV)<br />

<strong>in</strong>sert<strong>in</strong>g, chang<strong>in</strong>g and remov<strong>in</strong>g secondary tags<br />

SUBSTITUTE (N) ( N) TARGET N IF (c ART-DEF OR DET-DEF)<br />

correct<strong>in</strong>g lower level <strong>CG</strong> once higher lever <strong>in</strong>formation is available<br />

spell or grammar checkers<br />

SUBSTITUTE (UTR) (NEU) TARGET (@ + NEU)<br />

➢ Usually as a special section (CORRECTIONS or BEFORE-<br />

SECTIONS), but <strong>in</strong> cg3 allowed anywhere<br />

➢ Strictly ordered<br />

SUBSTITUTE (X) (Y) TARGET (...) IF (...)<br />

➢ SUBSTITUTE does not "close" a l<strong>in</strong>e for mapp<strong>in</strong>g<br />

➢ SUBSTITUTEd tags can be "seen" by later SUBSTITUTE or<br />

Mapp<strong>in</strong>g <strong>rules</strong>, even <strong>in</strong> the same section

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!