Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 571 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 571 Bytes

serpentPOS

serpentPOS is a python port of jspos and is not my work. I needed it so I figured I'd share the code.

Usage:

    from serpentPOS import lexer, postagger
    string = 'This is some text to be tagged by the tagger'
  
    words = lexer.Lexer().lex(string)
    print postagger.POSTagger().tag(words)
    #output: [('This', u'DT'), ('is', u'VBZ'), ('some', u'DT'), ('text', u'NN'), ('to', u'TO'), ('be', u'VB'), ('tagged', u'VBN'),
    ('by', u'IN'), ('the', u'DT'), ('tagger', u'NN')]