5 ngram-statistics - Statistical functions for n-gram models
Copyright 2005, 2006, 2007, 2008, 2009, 2010 by Damir Ćavar, Petar Garžina, Larisa Grčić, Tanja Gulan, Damir Kero, Robert Paleka, Franjo Pehar, Pavle Valerjev
(require nltk/ngram-statistics) |
The nltk/ngram-statistics module provides procedures for statistical analyses on the basis of n-gram models.
An explanation of n-grams and various statistical analyses used in Computational Linguistics and Natural Language Processing can be found in the following resources:
!!! TODO !!!
(chi2-score ngrams unigrams gram) → hashtable? |
ngrams : hashtable? |
unigrams : hashtable? |
gram : (or/c list? vector? string?) |
Returns the chi2 score for a gram, using the n-gram models provided by the parameters ngrams and unigrams.