java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 jft.predict
dutyhong opened this issue · comments
洪汉梯 commented
hello , when i use the predict function to predict my label , it except the java.lang.IndexOutOfBoundsException error , how can i solve it ? thank you
Vinh Khuc commented
Instead of calling predict(text), can you call predict(text, 1) and check its output? I guess the output would be an empty list.
If so, probably your training data doesn't have correct format. Here is an example of how it should look like.
洪汉梯 commented
thank you for your suggestion, my problem has been solved
Vinh Khuc commented
No problem. Glad that it helps.