changed NamedEntity to LabeledWord, it now tracks the position of each subword in the text