Codebase list golang-github-jdkato-prose / lintian-fixes/main scripts / pipe.py
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

pipe.py @lintian-fixes/mainraw · history · blame

1
2
3
4
5
6
7
8
from nltk.corpus import treebank
from nltk.tag.util import untag

sentences = treebank.tagged_sents()
text = []
for s in sentences:
    text.append(' '.join(untag(s)))
print(' '.join(text))