Package opennlp.tools.langdetect
Class LanguageSample
- java.lang.Object
-
- opennlp.tools.langdetect.LanguageSample
-
- All Implemented Interfaces:
Serializable
public class LanguageSample extends Object implements Serializable
Class which holds a classified document and its @Language
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LanguageSample(Language language, CharSequence context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CharSequence
getContext()
Language
getLanguage()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LanguageSample
public LanguageSample(Language language, CharSequence context)
-
-
Method Detail
-
getLanguage
public Language getLanguage()
-
getContext
public CharSequence getContext()
-
-