Skip to content

Commit

Permalink
Update data_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
itscrimsonaut committed Feb 10, 2022
1 parent c735316 commit 653adf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,11 +743,11 @@ def _collate_fn(self, batch):
#####
class AspectBasedSentimentAnalysisAiryDataset(Dataset):
# Static constant variable
ASPECT_DOMAIN = ['service', 'kebersihan', 'ruangan', 'makanan', 'fasilitas']
ASPECT_DOMAIN = ['service', 'kebersihan']
LABEL2INDEX = {'negative': 0, 'positive': 1}
INDEX2LABEL = {0: 'negative', 1: 'positive'}
NUM_LABELS = [2, 2, 2, 2, 2]
NUM_ASPECTS = 5
NUM_LABELS = [2, 2]
NUM_ASPECTS = 2

def load_dataset(self, path):
df = pd.read_csv(path)
Expand Down

0 comments on commit 653adf5

Please sign in to comment.