capreolus.tokenizer.punkt

Module Contents

Classes

PunktTokenizer

Base class for Tokenizer modules. The purpose of a Tokenizer is to tokenize strings of text (e.g., as required by an Extractor).

class capreolus.tokenizer.punkt.PunktTokenizer(config=None, provide=None, share_dependency_objects=False, build=True)[source]

Bases: capreolus.tokenizer.Tokenizer

Base class for Tokenizer modules. The purpose of a Tokenizer is to tokenize strings of text (e.g., as required by an Extractor).

Modules should provide:
  • a tokenize(strings) method that takes a list of strings and returns tokenized versions

module_name = punkt[source]
tokenize(txt)[source]