class documentation

class NEChunkParser(ChunkParserI): (source)

Constructor: NEChunkParser(train)

View In Hierarchy

Expected input: list of pos-tagged words

Method __init__ Undocumented
Method parse Each token should be a pos-tagged word
Static Method _parse_to_tagged Convert a chunk-parse tree to a list of tagged tokens.
Method _tagged_to_parse Convert a list of tagged tokens to a chunk-parse tree.
Method _train Undocumented
Instance Variable _tagger Undocumented

Inherited from ChunkParserI:

Method evaluate Score the accuracy of the chunker against the gold standard. Remove the chunking the gold standard text, rechunk it using the chunker, and return a ChunkScore object reflecting the performance of this chunk peraser.
def __init__(self, train): (source)

Undocumented

def parse(self, tokens): (source)

Each token should be a pos-tagged word

@staticmethod
def _parse_to_tagged(sent): (source)

Convert a chunk-parse tree to a list of tagged tokens.

def _tagged_to_parse(self, tagged_tokens): (source)

Convert a list of tagged tokens to a chunk-parse tree.

def _train(self, corpus): (source)

Undocumented

Undocumented