Codebase list golang-github-jdkato-prose / 0fb10c71-84fc-4fcd-8912-12a2734a47e5/main scripts / pipe.py
0fb10c71-84fc-4fcd-8912-12a2734a47e5/main

Tree @0fb10c71-84fc-4fcd-8912-12a2734a47e5/main (Download .tar.gz)

pipe.py @0fb10c71-84fc-4fcd-8912-12a2734a47e5/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))