Skip to content

Commit 871834f

Browse files
committed
Trans-E2E-ABSA
1 parent d81e063 commit 871834f

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

.DS_Store

0 Bytes
Binary file not shown.

utils.py

-3
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ def set_lm_labels(dataset, vocab, stm_lex, stm_win=3):
660660
return dataset
661661

662662

663-
# New add by Zheng Li
664663
def set_padding(dataset, max_len):
665664

666665
n_records = len(dataset)
@@ -701,7 +700,6 @@ def build_dataset(source_domain, target_domain, input_win=1, tagging_schema='BIO
701700

702701
vocab, char_vocab, max_len = get_vocab(train_set+val_set+tar_un_set+test_set)
703702

704-
# New add by Zheng Li
705703
train_set = set_padding(dataset=train_set, max_len=max_len)
706704
val_set = set_padding(dataset=val_set, max_len=max_len)
707705
tar_un_set = set_padding(dataset=tar_un_set, max_len=max_len)
@@ -1006,7 +1004,6 @@ def batch_generator(dataset, batch_size, shuffle=True):
10061004
batch_count += 1
10071005
yield [d[start:end] for d in data]
10081006

1009-
# Add by ZhengLi
10101007
def transform_data_format(data):
10111008

10121009
words = []

0 commit comments

Comments
 (0)