Skip to content

Commit

Permalink
test loading as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Eisele committed Jan 29, 2010
1 parent c0c0273 commit d57ab13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testImport.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


from wpTextExtractor import wiki2sentences
import wikipydia
import nltk

sent_detector = nltk.data.load('tokenizers/punkt/english.pickle')

t=wikipydia.query_text_raw('Barack Obama')['text']
sents= wiki2sentences(t,sent_detector)

for s,t in zip(*sents):
print t,s

0 comments on commit d57ab13

Please sign in to comment.