File: pipe.py

package info (click to toggle)
golang-github-jdkato-prose 1.1.0%2Bgit20171031.e27abfd-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,848 kB
  • sloc: python: 115; makefile: 55; sh: 21
file content (8 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (3)
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))