<s> import os , sys ; sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT:..>" , "<STR_LIT:..>" ) ) <EOL> from pattern . en import parse , Text <EOL> s = "<STR_LIT>" <EOL> s = parse ( s ) <EOL> s = Text ( s ) <EOL> print s [ <NUM_LIT:0> ] . words <EOL> print s [ <NUM_LIT:0> ] . chunks <EOL> print s [ <NUM_LIT:0> ] . chunks [ - <NUM_LIT:1> ] . words <EOL> print <EOL> for sentence in s : <EOL> for word in sentence : <EOL> print word . string , word . type , word . chunk , word . pnp <EOL> print <EOL> print s . xml </s>
