Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
J38 authored and Stanford NLP committed Nov 1, 2017
1 parent 5906430 commit 1ce3a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edu/stanford/nlp/neural/rnn/RNNCoreAnnotations.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static int getPredictedClass(Label label) {
*/
public static double getPredictedClassProb(Label label) {
if (!(label instanceof CoreLabel)) {
throw new IllegalArgumentException("CoreLabels required to get the attached predicted class");
throw new IllegalArgumentException("CoreLabels required to get the attached predicted class probability");
}
Integer val = ((CoreLabel) label).get(PredictedClass.class);
SimpleMatrix predictions = ((CoreLabel) label).get(Predictions.class);
Expand Down

0 comments on commit 1ce3a3f

Please sign in to comment.