Package nltk :: Module book
[hide private]
[frames] | no frames]

Module book

source code

Functions [hide private]
 
texts() source code
 
sents() source code
Variables [hide private]
  text1 = Text(gutenberg.words('melville-moby_dick.txt'))
  text2 = Text(gutenberg.words('austen-sense.txt'))
  text3 = Text([str(w) for w in genesis.words('english-kjv.txt')...
  text4 = Text(inaugural.words(), name= "Inaugural Address Corpus")
  text5 = Text(nps_chat.words(), name= "Chat Corpus")
  text6 = Text(webtext.words('grail.txt'), name= "Monty Python a...
  text7 = Text(treebank.words(), name= "Wall Street Journal")
  text8 = Text(webtext.words('singles.txt'), name= "Personals Co...
  text9 = Text(gutenberg.words('chesterton-thursday.txt'))
  sent1 = ["Call", "me", "Ishmael", "."]
  sent2 = ["The", "family", "of", "Dashwood", "had", "long", "be...
  sent3 = ["In", "the", "beginning", "God", "created", "the", "h...
  sent4 = ["Fellow", "-", "Citizens", "of", "the", "Senate", "an...
  sent5 = ["I", "have", "a", "problem", "with", "people", "PMing...
  sent6 = ['SCENE', '1', ':', '[', 'wind', ']', '[', 'clop', 'cl...
  sent7 = ["Pierre", "Vinken", ",", "61", "years", "old", ",", "...
  sent8 = ['25', 'SEXY', 'MALE', ',', 'seeks', 'attrac', 'older'...
  sent9 = ["THE", "suburb", "of", "Saffron", "Park", "lay", "on"...
Variables Details [hide private]

text3

Value:
Text([str(w) for w in genesis.words('english-kjv.txt')], name= "The Bo\
ok of Genesis")

text6

Value:
Text(webtext.words('grail.txt'), name= "Monty Python and the Holy Grai\
l")

text8

Value:
Text(webtext.words('singles.txt'), name= "Personals Corpus")

sent2

Value:
["The", "family", "of", "Dashwood", "had", "long", "been", "settled", \
"in", "Sussex", "."]

sent3

Value:
["In", "the", "beginning", "God", "created", "the", "heaven", "and", "\
the", "earth", "."]

sent4

Value:
["Fellow", "-", "Citizens", "of", "the", "Senate", "and", "of", "the",\
 "House", "of", "Representatives", ":"]

sent5

Value:
["I", "have", "a", "problem", "with", "people", "PMing", "me", "to", "\
lol", "JOIN"]

sent6

Value:
['SCENE', '1', ':', '[', 'wind', ']', '[', 'clop', 'clop', 'clop', ']'\
, 'KING', 'ARTHUR', ':', 'Whoa', 'there', '!']

sent7

Value:
["Pierre", "Vinken", ",", "61", "years", "old", ",", "will", "join", "\
the", "board", "as", "a", "nonexecutive", "director", "Nov.", "29", ".\
"]

sent8

Value:
['25', 'SEXY', 'MALE', ',', 'seeks', 'attrac', 'older', 'single', 'lad\
y', ',', 'for', 'discreet', 'encounters', '.']

sent9

Value:
["THE", "suburb", "of", "Saffron", "Park", "lay", "on", "the", "sunset\
", "side", "of", "London", ",", "as", "red", "and", "ragged", "as", "a\
", "cloud", "of", "sunset", "."]