This repository implements a contrastive learning model for hierarchical text classification. This work has been accepted as the long paper "Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classification" in ACL 2022.
TypeError: 'NoneType' object is not subscriptable appears when I try to run the script train.py. can you suggest me possible reasons for this issue. The error is inside the first line of the function getitem(self, item) of the class BertDataset(Dataset)
TypeError: 'NoneType' object is not subscriptable appears when I try to run the script train.py. can you suggest me possible reasons for this issue. The error is inside the first line of the function getitem(self, item) of the class BertDataset(Dataset)