On Sat, Jun 21, 2008 at 8:52 AM, wael gomaa <[EMAIL PROTECTED]> wrote:
> can i use NSP with a simple term frequency not ngram?
> 
>

Yes! Be default NSP provides information about bigrams (2 word
sequences), but you
can change that via the --ngram command line option. To get unigram
(term) counts,
you would simply use --ngram 1, as in :

count.pl --ngram 1 myoutput.txt myinput.txt

Please note that statistic.pl is intended for measuring the
association between pairs
or trios of words (--ngram 2 or --ngram 3), so you would not be able
to use statistic.pl
with unigrams, but you can surely get frequency counts from count.pl.

Good luck!
Ted

-- 
Ted Pedersen
http://www.d.umn.edu/~tpederse

Reply via email to