-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prediction with only one input sentence fails #6
Comments
For some reason, thre's an if statment in Here's the revised function....
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the prediction step, if the input file contains only one sentence, it results in an error. For example, after all the preprocess was applied to the AMR 2.0 (LDC2017T10) data (following the steps in README.md), there will be a preprocessed test data file
test.preproc
indata/AMR/amr_2.0/
directory. However, if I removed all the "paragraphs" (that is, a pair of "comments" (including id, snt, and tags etc.) and AMR graph) except for the first paragraph from the file, and then apply the "6. Prediction" phase, the program shows the following error:This error occurs whenever input file with only one AMR paragraph was given to
--input-file
option ofstog.commands.predict
module. Also, if the input file contains more than two paragraphs, this error doesn't seem to be happening.The text was updated successfully, but these errors were encountered: