info.aduna.language.identification.ngram
Class LanguageProfile

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

public class LanguageProfile
extends Object

A LanguageProfile represents the characteristics of a language.


Field Summary
static int PROFILE_SIZE
           
 
Constructor Summary
LanguageProfile(String code, Reader reader)
          Create a LanguageProfile with the specified language code that will read its NGrams from the provided stream.
 
Method Summary
 String getCode()
           
 NGram[] getNGrams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_SIZE

public static final int PROFILE_SIZE
See Also:
Constant Field Values
Constructor Detail

LanguageProfile

public LanguageProfile(String code,
                       Reader reader)
                throws IOException
Create a LanguageProfile with the specified language code that will read its NGrams from the provided stream.

Throws:
IOException
Method Detail

getCode

public String getCode()

getNGrams

public NGram[] getNGrams()


Copyright © 1997-2008 Aduna. All Rights Reserved.