CRAN Task View: Natural Language Processing
|Maintainer:||Fridolin Wild, Knowledge Media Institute (KMi), The Open University, UK|
|Contact:||fridolin.wild at open.ac.uk|
Natural language processing has come a long way since its foundations were laid in the 1940s and 50s (for an introduction see, e.g., Jurafsky and Martin (2008): Speech and Language Processing, Pearson Prentice Hall). This CRAN task view collects relevant R packages that support computational linguists in conducting analysis of speech and language on a variety of levels - setting focus on words, syntax, semantics, and pragmatics.
In recent years, we have elaborated a framework to be used in
packages dealing with the processing of written material: the package
Extension packages in this area are highly recommended to interface with tm's basic routines
and useRs are cordially invited to join in the discussion on further developments of this
framework package. To get into natural language processing, the
may be helpful.
provides a comprehensive text mining framework for R. The
Journal of Statistical Software
Text Mining Infrastructure in R
gives a detailed overview and presents techniques for count-based analysis methods, text clustering, text classification and string kernels.
allows for distributing corpora across storage devices (local files or Hadoop Distributed File System).
helps with importing mail messages from archive files such as used in Thunderbird (mbox, eml).
allows importing text corpora written in a file in the Alceste format.
allow importing press and Web corpora from (respectively) Dow Jones Factiva, LexisNexis, and Europresse.
is an Rcommander plug-in providing an integrated solution to perform a series of text mining tasks such as importing and cleaning a corpus, and analyses like terms and documents counts, vocabulary tables, terms co-occurrences and documents similarity measures, time series analysis, correspondence analysis and hierarchical clustering.
provides an R interface to
, a collection of natural language processing tools including a sentence detector, tokenizer, pos-tagger, shallow and full syntactic parser, and named-entity detector, using the Maxent Java package for training and using maximum entropy models.
Trained models for English and Spanish to be used with
are available from
as packages openNLPmodels.en and openNLPmodels.es, respectively.
is a interface to
which is a collection of machine learning algorithms for data mining tasks written in Java. Especially useful in the context of natural language processing is its functionality for tokenization and stemming.
Words (lexical DBs, keyword extraction, string manipulation, stemming)
provides an R interface to
, a large lexical database of English.
R's base package already provides a rich set of character manipulation routines. See
help.search(keyword = "character", package = "base")
for more information on these capabilities.
provides an R interface to
(Version 5.0). KEA (for Keyphrase Extraction Algorithm) allows for extracting keyphrases from text documents. It can be either used for free indexing or for indexing with a controlled vocabulary.
can be used for certain parsing tasks such as extracting words from strings by content rather than by delimiters.
shows an example of this in a natural language processing context.
contains basic string manipulation and analysis routines needed in text processing such as dealing with character encoding, language, pattern counting, and tokenization.
provides exactly the same API as Rstem, but uses a slightly different design of the C libstemmer library from the Snowball project. It also supports two more languages.
(available from Omegahat) is an alternative interface to a C version of Porter's word stemming algorithm.
provides a collection of conversion routines (e.g. Hangul to Jamos), stemming, and part of speech tagging through interfacing with the Lucene's HanNanum analyzer. In version 0.0-8.0, the documentation is sparse and still needs some help.
is a diverse collection of functions for automatic language detection, hyphenation, several indices of lexical diversity (e.g., type token ratio, HD-D/vocd-D, MTLD) and readability (e.g., Flesch, SMOG, LIX, Dale-Chall). See the
for more information.
offers some statistical models for word frequency distributions. The utilities include functions for loading, manipulating and visualizing word frequency data and vocabulary growth curves. The package also implements several statistical models for the distribution of word frequencies in a population. (The name of this library derives from the most famous word frequency distribution, Zipf's law.)
is an implementation of maxinum entropy minimising memory consumption of very large data-sets.
provides a visualisation similar to the famous wordle ones: it horizontally and vertically distributes features in a pleasing visualisation with the font size scaled by frequency.
provides an interface to the C code for Latent Dirichlet Allocation (LDA) models and Correlated Topics Models (CTM) by David M. Blei and co-authors and the C++ code for fitting LDA models using Gibbs sampling by Xuan-Hieu Phan and co-authors.
implements Latent Dirichlet Allocation and related models similar to LSA and topicmodels.
allows to create and compute with string kernels, like full string, spectrum, or bounded range string kernels. It can directly use the document format used by
helps with clustering providing several algorithms for spherical k-means partitioning.
provides another clustering alternative (approximations are fitted with von Mises-Fisher distributions of the unit length vectors).
is a suite of tools for text and sentiment mining.
provides support for n-gram based text categorization.
offers utility functions for the statistical analysis of corpus frequency data.
helps with quantitative discourse analysis of transcripts.