Coder Social home page Coder Social logo

amn_srl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amn_srl's Issues

IndexError: list index out of range

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.