SenticGCNBasePreprocessor

class SenticGCNBasePreprocessor(tokenizer: Union[str, transformers.tokenization_utils.PreTrainedTokenizer, transformers.tokenization_utils_fast.PreTrainedTokenizerFast], embedding_model: Union[str, transformers.modeling_utils.PreTrainedModel], tokenizer_class: transformers.tokenization_utils.PreTrainedTokenizer, embedding_config_class: transformers.configuration_utils.PretrainedConfig, embedding_model_class: transformers.modeling_utils.PreTrainedModel, config_filename: str = 'config.json', model_filename: str = 'pytorch_model.bin', spacy_pipeline: str = 'en_core_web_sm', senticnet: Union[str, Dict[str, float]] = 'https://storage.googleapis.com/sgnlp/models/sentic_gcn/senticnet.pickle', device: str = 'cpu')[source]

Base preprocessor class provides initialization for spacy, senticnet, tokenizer and embedding model. Class is only meant to be inherited by derived preprocessor.