The problem of part-of-speech tagging seems fairly straight-forward.
For a given sentence, identify the part of speech of the various sentences.
Sentence: She loves small animals.
Tags: She(pronoun) loves(noun) small(adjective) animals(noun).
In some other cases, this may be difficult.
Sentence: This can is difficult to open.
While can is usually (auxiliary) verb but here it refers to can( a container) and is thus a noun.
How can we achieve this in part of speech tagging?