correct NgramExtractor

null pointer expection appeard after the second setContent
add word reinit