You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the TrainAmazonReviewRanking example and tried to run it on IDEA. The training process was normal, but the total return was always the same when making inference. Here is the code:
PyTorch
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Loading: 100% |========================================|
[
{"class": "5", "probability": 0.42310}
{"class": "1", "probability": 0.23243}
{"class": "4", "probability": 0.16888}
{"class": "3", "probability": 0.09549}
{"class": "2", "probability": 0.08007}
]
change review String:
Stringreview = "It works great, but it takes too long to update itself and slows the system";
Predictor<String, Classifications> predictor = model.newPredictor(newMyTranslator(tokenizer));
Classificationspredict = predictor.predict(review);
System.out.println(predict);
the result:
PyTorch
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Loading: 100% |========================================|
[
{"class": "5", "probability": 0.42310}
{"class": "1", "probability": 0.23243}
{"class": "4", "probability": 0.16888}
{"class": "3", "probability": 0.09549}
{"class": "2", "probability": 0.08007}
]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I copied the TrainAmazonReviewRanking example and tried to run it on IDEA. The training process was normal, but the total return was always the same when making inference. Here is the code:
the result:
change review String:
the result:
Do you have any idea what the problem could be ?
Thank yu very much !
Beta Was this translation helpful? Give feedback.
All reactions