Added word tokenization to word_confidence.py