Skip to content

Instantly share code, notes, and snippets.

@bguil
Created September 25, 2020 12:22
Show Gist options
  • Save bguil/237776a525331a8bc39caf44c0d6677a to your computer and use it in GitHub Desktop.
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'
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)
)
}
@bguil
Copy link
Author

bguil commented Oct 5, 2020

⚠️ if you usr Grew v1.4, please go to: https://gist.github.com/bguil/b566e405995ca568adb0f659887bb6b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment