Skip to content

Instantly share code, notes, and snippets.

@bguil
Created October 5, 2020 13:58
Show Gist options
  • Save bguil/b566e405995ca568adb0f659887bb6b9 to your computer and use it in GitHub Desktop.
Save bguil/b566e405995ca568adb0f659887bb6b9 to your computer and use it in GitHub Desktop.
Grew GRS (Version 1.4) for changing old SUD annotation 'EXTPOS + @fixed' into 'ExtPos + InIdiom=Yes'
package fixed2idiom {
rule EXTPOS {
pattern { N[EXTPOS] }
commands {
N.ExtPos = N.EXTPOS;
del_feat N.EXTPOS;
N.PhraseType = Idiom;
}
}
rule fixed {
pattern {
e: X -[deep=fixed]-> Y;
}
commands {
del_feat e.deep;
Y.InIdiom = Yes;
}
}
}
strat main {
Seq (
Onf (fixed2idiom)
)
}
@bguil
Copy link
Author

bguil commented Oct 9, 2020

⚠️ the option -config sud is required with the grew command in order to apply the GSD

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