TextCat n-gram byte and character profile dbs for language identification.
TextCat (http://odur.let.rug.nl/~vannoord/TextCat/) is a Perl
implementation of the Cavnar and Trenkle “N-Gram-Based
Text Categorization” technique by Gertjan van Noord which was
subsequently integrated into SpamAssassin. It provides byte
n-gram profiles for 74 “languages” (more precisely,
language/encoding combinations). The C library reimplementation
adds one more non-empty profile.
TC_byte_profiles provides these byte profiles.
TC_char_profiles provides a subset of 56 character profiles
obtained by converting the byte sequences to UTF-8 strings where
The category ids are unchanged from the original, and give the full (English) name of the language, optionally combined the name of the encoding script. Note that ‘scots’ indicates Scots, the Germanic language variety historically spoken in Lowland Scotland and parts of Ulster, to be distinguished from Scottish Gaelic (named ‘scots_gaelic’ in the profiles), the Celtic language variety spoken in most of the western Highlands and in the Hebrides (see http://en.wikipedia.org/wiki/Scots_language).
1 2 3 4 5 6 7
## Languages in the TC byte profiles: names(TC_byte_profiles) ## Languages only in the TC byte profiles: setdiff(names(TC_byte_profiles), names(TC_char_profiles)) ## Key options used for the profiles: attr(TC_byte_profiles, "options")[c("n", "size", "reduce", "useBytes")] attr(TC_char_profiles, "options")[c("n", "size", "reduce", "useBytes")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.