/** * returns the log probability for the given labels, where the last label * corresponds to the label at the specified position. For instance if you * called logProb(5, {"O", "PER", "ORG"}) it will return the marginal log prob * that the label at position 3 is "O", the label at position 4 is "PER" and * the label at position 5 is "ORG". */ public double logProb(int position, E[] labels) { return logProb(position, objectArrayToIntArray(labels)); }
public double condLogProbGivenNext(int position, E label, E[] nextLabels) { return condLogProbGivenNext(position, classIndex.indexOf(label), objectArrayToIntArray(nextLabels)); }
public double condLogProbGivenPrevious(int position, E label, E[] prevLabels) { return condLogProbGivenPrevious(position, classIndex.indexOf(label), objectArrayToIntArray(prevLabels)); }
/** * returns the log probability for the given labels, where the * last label corresponds to the label at the specified position. For instance if you called * logProb(5, {"O", "PER", "ORG"}) it will return the marginal log prob that the label at position * 3 is "O", the label at position 4 is "PER" and the label at position 5 is "ORG". */ public double logProb(int position, Object[] labels) { return logProb(position, objectArrayToIntArray(labels)); }
/** * returns the log probability for the given labels, where the last label * corresponds to the label at the specified position. For instance if you * called logProb(5, {"O", "PER", "ORG"}) it will return the marginal log prob * that the label at position 3 is "O", the label at position 4 is "PER" and * the label at position 5 is "ORG". */ public double logProb(int position, E[] labels) { return logProb(position, objectArrayToIntArray(labels)); }
/** * returns the log probability for the given labels, where the last label * corresponds to the label at the specified position. For instance if you * called logProb(5, {"O", "PER", "ORG"}) it will return the marginal log prob * that the label at position 3 is "O", the label at position 4 is "PER" and * the label at position 5 is "ORG". */ public double logProb(int position, E[] labels) { return logProb(position, objectArrayToIntArray(labels)); }
public double condLogProbGivenNext(int position, E label, E[] nextLabels) { return condLogProbGivenNext(position, classIndex.indexOf(label), objectArrayToIntArray(nextLabels)); }
public double condLogProbGivenPrevious(int position, E label, E[] prevLabels) { return condLogProbGivenPrevious(position, classIndex.indexOf(label), objectArrayToIntArray(prevLabels)); }
public double condLogProbGivenNext(int position, E label, E[] nextLabels) { return condLogProbGivenNext(position, classIndex.indexOf(label), objectArrayToIntArray(nextLabels)); }
public double condLogProbGivenPrevious(int position, E label, E[] prevLabels) { return condLogProbGivenPrevious(position, classIndex.indexOf(label), objectArrayToIntArray(prevLabels)); }
public double condLogProbGivenPrevious(int position, Object label, Object[] prevLabels) { return condLogProbGivenPrevious(position, classIndex.indexOf(label), objectArrayToIntArray(prevLabels)); }
public double condLogProbGivenNext(int position, Object label, Object[] nextLabels) { return condLogProbGivenNext(position, classIndex.indexOf(label), objectArrayToIntArray(nextLabels)); }