info.aduna.language.identification.ngram
Class LanguageProfileMatcher
java.lang.Object
info.aduna.language.identification.ngram.LanguageProfileMatcher
public class LanguageProfileMatcher
- extends Object
A LanguageProfileMatcher is capable of matching a TextProfile against a
collection of LanguageProfiles, seeking out the one LanguageProfile with the
smallest distance to the supplied TextProfile.
|
Method Summary |
LanguageProfile |
match(TextProfile textProfile)
Matches the given TextProfile against the LanguageProfiles maintained by
this LanguageProfileMatcher. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LanguageProfileMatcher
public LanguageProfileMatcher(Set<LanguageProfile> profiles)
- Create a new LanguageProfileMatcher that will match a given TextProfile
against the specified Set of LanguageProfiles.
match
public LanguageProfile match(TextProfile textProfile)
- Matches the given TextProfile against the LanguageProfiles maintained by
this LanguageProfileMatcher. The LanguageProfile with the smallest
distance to the specified TextProfile is returned.
Copyright © 1997-2008 Aduna. All Rights Reserved.