frozenmad / amn_srl Goto Github PK
View Code? Open in Web Editor NEWCode implementation of paper Semantic Role Labeling with Associated Memory Network (NAACL 2019)
Code implementation of paper Semantic Role Labeling with Associated Memory Network (NAACL 2019)
def _get_actual_sentence_from_train(self,id):
return ' '.join(list(map(lambda x:x[5],self.old_train[id])))这个函数运行结果报错说超出范围是怎么回事
Traceback (most recent call last):
File "/home/zutnlp/zhangzhiyi/AMN_SRL/main.py", line 45, in
all_data = final_dataset(train_input_file,dev_input_file,test_input_file,aug_num,'temp/train_train.bin','temp/train_dev.bin','temp/train_test.bin')
File "/home/zutnlp/zhangzhiyi/AMN_SRL/final_inter_helper.py", line 56, in init
self._load_new()
File "/home/zutnlp/zhangzhiyi/AMN_SRL/final_inter_helper.py", line 71, in _load_new
if self._get_actual_sentence_from_train(sort_sentence_id) != self._get_actual_sentence_from_train(i):
File "/home/zutnlp/zhangzhiyi/AMN_SRL/final_inter_helper.py", line 96, in _get_actual_sentence_from_train
return ' '.join(list(map(lambda x:x[0],self.old_train[id])))
IndexError: list index out of range
请问训练,测试,验证需要什么样的数据形式
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.