Skip to content

Instantly share code, notes, and snippets.

@whalebot-helmsman
Created October 21, 2016 09:31
Show Gist options
  • Save whalebot-helmsman/38c09b17f2840bcc31bed13c92e0c570 to your computer and use it in GitHub Desktop.
Save whalebot-helmsman/38c09b17f2840bcc31bed13c92e0c570 to your computer and use it in GitHub Desktop.
encoding "utf-8";
TTextMinerConfig {
Dictionary = "to.gzt";
Articles = [ { Name = "Target_Grammar" } ];
Facts = [ { Name = "FTarget" } ];
}
message FTarget : NFactType.TFact {
optional string Value = 1;
}
#encoding "utf-8"
#GRAMMAR_ROOT S
S -> Target;
Target -> Word<kwtype='target'> interp (FTarget.Value);
encoding "utf-8";
TAuxDicArticle "Target_Grammar" {
key = { "tomita:grammar.cxx" type = CUSTOM }
}
TAuxDicArticle "target" {
key = "один"
| "два"
| "три"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment