Created
September 25, 2020 12:22
-
-
Save bguil/237776a525331a8bc39caf44c0d6677a to your computer and use it in GitHub Desktop.
Grew GRS for changing old SUD annotation 'EXTPOS + @fixed' into 'ExtPos + InIdiom=Yes'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fixed2idiom { | |
rule _MISC_EXTPOS { | |
pattern { N[_MISC_EXTPOS] } | |
commands { | |
N._MISC_ExtPos = N._MISC_EXTPOS; | |
del_feat N._MISC_EXTPOS; | |
N._MISC_PhraseType = Idiom; | |
} | |
} | |
rule fixed { | |
pattern { | |
e: X -[deep=fixed]-> Y; | |
} | |
commands { | |
del_feat e.deep; | |
Y._MISC_InIdiom = Yes; | |
} | |
} | |
} | |
strat main { | |
Seq ( | |
Onf (fixed2idiom) | |
) | |
} |
Author
bguil
commented
Oct 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment