How to restore case during translation when using case_feature?

(shahbazsyed) #1


I used case_feature during preprocessing as suggested to optimize the vocabulary. The translated sentences have the cases specified alongside them for each word. Is it possible to directly restore the correct casing during translation ? I now have something like this

a | c dog | l is | l

I would like to get

A dog is

as the final output

(Guillaume Klein) #2


You need to run the detokenization script with -case_feature flag.