fixed problem with punctuation in source/target phrase and double ^ symbol.
if any of the words in the source/target phrases are not found in the word2ids dictionary, it'll
skip filtering.