Email Extractor

class etk.extractors.email_extractor.EmailExtractor(nlp, tokenizer, extractor_name: str)[source]

Bases: etk.extractor.Extractor

Description
This class uses spaCy Matcher and takes spaCy predefined ‘LIKE_EMAIL’ pattern to extract email address. More information: https://spacy.io/api/matcher#add

Examples

email_extractor = EmailExtractor(...)
email_extractor.extract(text=input_doc,...)
extract(text: str) → List[etk.extraction.Extraction][source]
Parameters:text (str) – The input source to be processed
Returns:The list of extractions returned by EmailExtractor
Return type:List[Extraction]