I am trying to use the Python wrapper for TreeTagger
, a Part-of-Speech Tagger. The code I use for importing and invoking the wrapper is:
import TreeTaggerWrapper
tagger = TreeTaggerWrapper.TreeTagger(TAGLANG='en',TAGDIR='D:/Programme/TreeTagger')
tags = tagger.TagText("This is a very short text to tag.")
print tags
the error is: 'AttributeError: 'module' object has no attribute 'TreeTagger''
The init.py exists in the TreeTaggerWrapper directory and is empty.
How would I go about systematically resolving the issue?