utilsΒΆ
Functions
Helper method to generate an embedding matrix. |
|
Helper method to download files from online storage. |
|
Helper method to download and save url file. |
|
Helper method to generate senticnet depdency adj matrix. |
|
Helper method to load and process senticnet. |
|
Helper method to load word vectors from file (e.g. |
|
Helper method for padding and truncating text and aspect segment. |
|
Get config from config file using argparser |
|
Helper method to set random seeds for python, numpy and torch |
Classes
Iterator class for use with non-bert version of SenticGCN. |
|
Data class for SenticGCN dataset. |
|
Main dataset generator class to preprocess raw dataset file. |