just for fun - grammar for trigram models in GF

This commit is contained in:
krasimir
2009-10-08 13:13:48 +00:00
parent 30638abe98
commit d920a0c53d
4 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
concrete TrigramCnc of Trigram = {
lincat
Word,Seq = Str;
Unigram, Bigram, Trigram, Prob = {} ;
lin
nil a b c _ = a ++ b ++ c ;
cons _ _ l c _ = l ++ c ;
}