The textcat package for n-gram based text categorization in R

Kurt Hornik, Patrick Mair, Johannes Rauch, Wilhelm Geiger, Christian Buchta, Ingo Feinerer

Publication: Scientific journalJournal articlepeer-review

67 Downloads (Pure)

Abstract

Identifying the language used will typically be the first step in most natural language
processing tasks. Among the wide variety of language identification methods discussed
in the literature, the ones employing the Cavnar and Trenkle (1994) approach to text
categorization based on character n-gram frequencies have been particularly successful.
This paper presents the R extension package textcat for n-gram based text categorization
which implements both the Cavnar and Trenkle approach as well as a reduced n-gram
approach designed to remove redundancies of the original approach. A multi-lingual
corpus obtained from the Wikipedia pages available on a selection of topics is used to
illustrate the functionality of the package and the performance of the provided language
identification methods. (authors' abstract)
Original languageEnglish
Pages (from-to)1 - 17
JournalJournal of Statistical Software
Volume52
Issue number6
Publication statusPublished - 1 Feb 2013

Cite this