python and trigram ???
John Machin
sjmachin at lexicon.net
Fri Jan 17 18:43:47 EST 2003
yanarkana at yahoo.fr (Arkana) wrote in message news:<199f365a.0301170801.7cb44da0 at posting.google.com>...
> does anyone here know what are trigram ?
Yes; while trigrams are evidently of sublime relevance to martial
artists of the Baguazhang (eight-trigrams palm) school (see below), I
guess you are probably more interested in length-3 substrings of a
string, used in indexing and approximate matching ...
I presume that you *don't* mean ANSI C's "trigraph sequences" [bletch]
...
> and if there is any project
> or stuff in python using them ?
You will find lots of stuff if you google(trigram python), most of it
more relevant than this extract from
http://www.cs-online.com.cn/enews/wushu/grand/7424.shtm
Tian has undertaken to write a book entitled "Yin-Yang Baguazhang."
[...]according to ancient Chinese philosophy underlying the theory of
eight trigrams. The book will be published in eight volumes named
after eight animals in association with their typical movements - the
python crawling through a bush, [...]
> or where i can learn more on this
> subject ?
Google. Note that trigrams are merely a special case of n-grams (n ==
3) and much of the literature just talks about n-grams or N-grams or
ngrams. You'll need to google with ngram and ngrams and "n-gram" and
"n-grams" separately.
Here's what promises to be a good starting point (found via "n-gram"):
http://web.umr.edu/~tauritzd/ngram/index.html
Please in future do web searches *before* you ask questions. Otherwise
people may give no answer, or a short literal logical but sarcastic &
useless answer -- (Q: does anyone here know X and Y or Z? A: Yes)
Hope this helps,
John
More information about the Python-list
mailing list