org.apache.tika.language
Class LanguageIdentifier

java.lang.Object
  extended by org.apache.tika.language.LanguageIdentifier

public class LanguageIdentifier
extends Object

Identifier of the language that best matches a given content profile. The content profile is compared to generic language profiles based on material from various sources.

Since:
Apache Tika 0.5
See Also:
Europarl: A Parallel Corpus for Statistical Machine Translation, ISO 639 Language Codes

Constructor Summary
LanguageIdentifier(LanguageProfile profile)
           
LanguageIdentifier(String content)
           
 
Method Summary
 String getLanguage()
           
 boolean isReasonablyCertain()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LanguageIdentifier

public LanguageIdentifier(LanguageProfile profile)

LanguageIdentifier

public LanguageIdentifier(String content)
Method Detail

getLanguage

public String getLanguage()

isReasonablyCertain

public boolean isReasonablyCertain()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.