Skip to content

Commit

Permalink
formatting fix, plus updated output for doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbird committed Feb 27, 2016
1 parent a5b3e76 commit 43696a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nltk/corpus/reader/sentiwordnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
>>> print(swn.senti_synset('breakdown.n.03'))
<breakdown.n.03: PosScore=0.0 NegScore=0.25>
>>> list(swn.senti_synsets('slow'))
[SentiSynset('decelerate.v.01'), SentiSynset('slow.v.02'),\
SentiSynset('slow.v.03'), SentiSynset('slow.a.01'),\
SentiSynset('slow.a.02'), SentiSynset('slow.a.04'),\
SentiSynset('slowly.r.01'), SentiSynset('behind.r.03')]
[SentiSynset('decelerate.v.01'), SentiSynset('slow.v.02'),
SentiSynset('slow.v.03'), SentiSynset('slow.a.01'),
SentiSynset('slow.a.02'), SentiSynset('dense.s.04'),
SentiSynset('slow.a.04'), SentiSynset('boring.s.01'),
SentiSynset('dull.s.08'), SentiSynset('slowly.r.01'),
SentiSynset('behind.r.03')]
>>> happy = swn.senti_synsets('happy', 'a')
>>> happy0 = list(happy)[0]
>>> happy0.pos_score()
Expand Down

0 comments on commit 43696a1

Please sign in to comment.