Codebase list golang-github-jdkato-prose / 23cccda6-dedf-4daa-b8c6-1da8517c1de8/main scripts / pipe.py
23cccda6-dedf-4daa-b8c6-1da8517c1de8/main

Tree @23cccda6-dedf-4daa-b8c6-1da8517c1de8/main (Download .tar.gz)

pipe.py @23cccda6-dedf-4daa-b8c6-1da8517c1de8/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))