org.apache.tika.language
Class LanguageIdentifier

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

public class LanguageIdentifier
extends java.lang.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(java.lang.String content)
           
 
Method Summary
 java.lang.String getLanguage()
           
 boolean isReasonablyCertain()
           
 java.lang.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(java.lang.String content)
Method Detail

getLanguage

public java.lang.String getLanguage()

isReasonablyCertain

public boolean isReasonablyCertain()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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