for v in data_set:
for triplet in v.triplets:
# Example:
# triplet ('TEAM-FT_PCT', 'Cavaliers', '68')
# ('FGA', 'Tyler Zeller', '6')
rt.addword(triplet[0])
re.addword(triplet[1])
rm.addword(triplet[2])
summarize.addword(triplet[2])
for v in data_set:
for word in v.summary:
# summary
summarize.addword(word)
triplet[2] (r.m) shouldn't be added in the language of summarize.
summarize.addword(triplet[2])
https://github.com/gau820827/AI-writer_Data2Doc/blob/master/train/dataprepare.py
triplet[2] (r.m) shouldn't be added in the language of summarize. summarize.addword(triplet[2])