prevent the parser to produce an EOS at one point when segmentation is given in input and there is no segmentation at this point