Converts a Parole tag to a Penn Treebank II tag. For example: importantísimo/AQ => importantísimo/ADJ
(token, tag)
| 132 | } |
| 133 | |
| 134 | def parole2penntreebank(token, tag): |
| 135 | """ Converts a Parole tag to a Penn Treebank II tag. |
| 136 | For example: importantísimo/AQ => importantísimo/ADJ |
| 137 | """ |
| 138 | return (token, parole.get(tag, tag)) |
| 139 | |
| 140 | def parole2universal(token, tag): |
| 141 | """ Converts a Parole tag to a universal tag. |
no test coverage detected
searching dependent graphs…