PunctuationNormalizer

class squirro.lib.nlp.steps.normalizers.PunctuationNormalizer(config)

Bases: squirro.lib.nlp.steps.normalizers.Normalizer

Punctuation normalizer strips punctuation

Parameters

type (str) – punctuation

Methods Summary

process_doc(doc)

Process a document

Methods Documentation

process_doc(doc)

Process a document

Parameters

doc (Document) – Document

Returns

Processed document

Return type

Document