Open xusong123 opened 6 years ago
I also cannot get text classification work on my own inputs. I tried the poem line generation from the tutorial, this works fine. I then modified it to be Text2Class instead of Text2Text, predicting the length of the line as the "class". The training works fine, but when I try to use it on a text file, it dies. Only in my case, the errors are something like:
INFO:tensorflow:Cannot use 'while/Pad' as input to 'Identity_49' because 'while/Pad' is in a while loop.
Identity_49 while context: None while/Pad while context: while/while_context
Traceback for Identity_49:
File "/lnet/spec/tmp/rosa/t2t/venv/bin/t2t-decoder", line 17, in
I wonder if we should use t2t-decode in classification problem like sentiment_imdb:
When I try to decode to get the classification label, it raises an exception:
AttributeError: 'HParams' object has no attribute 'problem_hparams'
my script is like this:
aftern training done, it raises an AttributeError in t2t-decoder: