public int getIndex(String category) { return model.getMaxentModel().getIndex(category); }
public String getAllResults(double[] results) { return model.getMaxentModel().getAllOutcomes(results); }
public String getBestCategory(double[] outcome) { return model.getMaxentModel().getBestOutcome(outcome); }
public String getCategory(int index) { return model.getMaxentModel().getOutcome(index); }
public int getNumberOfCategories() { return model.getMaxentModel().getNumOutcomes(); }
/** * Categorize the given text provided as tokens along with * the provided extra information * * @param text text tokens to categorize * @param extraInformation additional information */ @Override public double[] categorize(String[] text, Map<String, Object> extraInformation) { return model.getMaxentModel().eval( mContextGenerator.getContext(text, extraInformation)); }
public int getIndex(String category) { return model.getMaxentModel().getIndex(category); }
public String getBestCategory(double[] outcome) { return model.getMaxentModel().getBestOutcome(outcome); }
public String getAllResults(double[] results) { return model.getMaxentModel().getAllOutcomes(results); }
public String getBestCategory(double[] outcome) { return model.getMaxentModel().getBestOutcome(outcome); }
public int getIndex(String category) { return model.getMaxentModel().getIndex(category); }
public String getCategory(int index) { return model.getMaxentModel().getOutcome(index); }
public String getCategory(int index) { return model.getMaxentModel().getOutcome(index); }
public int getNumberOfCategories() { return model.getMaxentModel().getNumOutcomes(); }
public int getNumberOfCategories() { return model.getMaxentModel().getNumOutcomes(); }
public String getAllResults(double[] results) { return model.getMaxentModel().getAllOutcomes(results); }
/** * Categorize the given text provided as tokens along with * the provided extra information * * @param text text tokens to categorize * @param extraInformation additional information */ @Override public double[] categorize(String[] text, Map<String, Object> extraInformation) { return model.getMaxentModel().eval( mContextGenerator.getContext(text, extraInformation)); }
/** * Categorize the given text provided as tokens along with * the provided extra information * * @param text text tokens to categorize * @param extraInformation additional information */ @Override public double[] categorize(String[] text, Map<String, Object> extraInformation) { return model.getMaxentModel().eval( mContextGenerator.getContext(text, extraInformation)); }