Identifying parts of speech handling n-grams and recognizing named entities