info.aduna.language.identification.ngram
Class TextProfile

java.lang.Object
  extended by info.aduna.language.identification.ngram.TextProfile

public class TextProfile
extends Object

A TextProfile represents an ordered set of NGrams generated from a single piece of text.


Constructor Summary
TextProfile(Reader reader, int maxNGrams)
           
TextProfile(String text)
           
 
Method Summary
 double getRank(NGram ngram)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextProfile

public TextProfile(String text)

TextProfile

public TextProfile(Reader reader,
                   int maxNGrams)
            throws IOException
Throws:
IOException
Method Detail

getRank

public double getRank(NGram ngram)


Copyright © 1997-2008 Aduna. All Rights Reserved.