Skip to content

Commit

Permalink
[#41] add missing tokenizer args
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondng76 committed Dec 15, 2021
1 parent 50ae2f0 commit 21098dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sgnlp/models/sentic_asgcn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ def __init__(
config.save_embedding_matrix,
config.saved_embedding_matrix_file_path,
)
self.train_data = ABSADataset(ABSADatasetReader.__read_data__(self.cfg.dataset_train))
self.train_data = ABSADataset(ABSADatasetReader.__read_data__(self.cfg.dataset_train, tokenizer))
self.test_data = ABSADataset(ABSADatasetReader.__read_data__(self.cfg.dataset_test, tokenizer))

@staticmethod
def __read_data__(datasets: Dict[str, str], tokenizer: PreTrainedTokenizer):
Expand Down

0 comments on commit 21098dd

Please sign in to comment.