refactor bleu score feature function. Still segfaults when running mira
refactor bleu score feature function. Still segfaults when running mira