Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
float
|
|
|
Given the string representation of a tagged token, return the
corresponding tuple representation. The rightmost occurence of
|
Given the tuple representation of a tagged token, return the corresponding string representation. This representation is formed by concatenating the token's word string, followed by the separator, followed by the token's tag. (If the tag is None, then just return the bare word string.)
|
Given a tagged sentence, return an untagged version of that sentence.
I.e., return a list containing the first element of each tuple in
>>> untag([('John', 'NNP'), ('saw', 'VBD'), ('Mary', 'NNP')] ['John', 'saw', 'mary'] |
Score the accuracy of the tagger against the gold standard. Strip the tags from the gold standard text, retag it using the tagger, then compute the accuracy score.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:51 2008 | http://epydoc.sourceforge.net |