Closed Jaxonwht closed 6 years ago
I figured this is due to the fact that there is an empty line in the intermediate French file.
Hi, we're getting the same issue, but I'm not sure whether that's due to an empty line, since the error is occurring in the middle of the data file being translated. What's more, when we ran the code with a reduced file of 10,000 lines, it finished the whole thing without an error. And even that file ended with an empty line. How had you resolved your issue?
Hi, we're getting the same issue, but I'm not sure whether that's due to an empty line, since the error is occurring in the middle of the data file being translated. What's more, when we ran the code with a reduced file of 10,000 lines, it finished the whole thing without an error. And even that file ended with an empty line. How had you resolved your issue?
There was an empty line in the intermediate French text, not the original English text. You may want to check that instead.
So, yes, I do mean the intermediate French text. There was no blank line there. It translated 27,180 lines of the republican set and gave this error. For the democratic French set, it did around 11,000 lines. There was no blank line here, I've checked multiple times. :/
So, yes, I do mean the intermediate French text. There was no blank line there. It translated 27,180 lines of the republican set and gave this error. For the democratic French set, it did around 11,000 lines. There was no blank line here, I've checked multiple times. :/
you can print the line that gives you the error and see which line it is exactly. You may want to change this list comprehension to a for loop and add print statements in the loop lengths = [x.size(0) for x in data]
.
Hi,
I ran into an issue in the final translation with style step. I added "-with_style" flag to indicate onmt.Translator_style is used instead of onmt.Translator. Encoder models and decoder models were both downloaded from the websites mentioned in Readme. Currently running python 3.6.6, pytorch 0.3.0. Translation of texts from English to French, proprocessing and train_decoder all worked fine.