public class LanguageCategorizer extends Object implements Categorizer
Constructor and Description |
---|
LanguageCategorizer(String modelFile) |
Modifier and Type | Method and Description |
---|---|
List<String> |
guessCategories(String textContent,
int maxSuggestions)
Compute a list of suggested categories, sorted by decreasing confidence
based on the textual content of the document.
|
List<String> |
guessCategories(String textContent,
int maxSuggestions,
Double precisionTreshold)
Compute a list of suggested categories, sorted by decreasing confidence
based on the textual content of the document.
|
public LanguageCategorizer(String modelFile)
public List<String> guessCategories(String textContent, int maxSuggestions)
Categorizer
guessCategories
in interface Categorizer
public List<String> guessCategories(String textContent, int maxSuggestions, Double precisionTreshold)
Categorizer
guessCategories
in interface Categorizer
precisionTreshold
- or null to use the default threshold of the
implementation.Copyright © 2013 Nuxeo SA. All Rights Reserved.