roomylee / entity-aware-relation-classification

Tensorflow Implementation of "Semantic Relation Classification via Bidirectional LSTM Networks with Entity-aware Attention using Latent Entity Typing" (arXiv 2019)
https://arxiv.org/abs/1901.08163
108 stars 26 forks source link

Meet some problem in logger.py #6

Open Jerryten opened 5 years ago

Jerryten commented 5 years ago
    str_parse = str(process.communicate()[0]).split("\\n")[-2]

IndexError: list index out of range

W-watermellon commented 5 years ago

Hello, I have encountered the same problem, have you solved it?

Jerryten commented 5 years ago

check the package you have installed could be used.

---Original--- From: "W-watermellon"notifications@github.com Date: Fri, Jul 19, 2019 17:35 PM To: "roomylee/entity-aware-relation-classification"entity-aware-relation-classification@noreply.github.com; Cc: "Jerry"619686657@qq.com;"Author"author@noreply.github.com; Subject: Re: [roomylee/entity-aware-relation-classification] Meet some problem in logger.py (#6)

Hello, I have encountered the same problem, have you solved it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

W-watermellon commented 5 years ago

thank you,i will check it,, I would like to ask if you can send me a copy of the debugged code for this paper.thank you.

Jerryten commented 5 years ago

In fact that the bug do not exist in code. The problem is owing to your package not the code. Pay more time on it.

---Original--- From: "W-watermellon"notifications@github.com Date: Fri, Jul 19, 2019 17:35 PM To: "roomylee/entity-aware-relation-classification"entity-aware-relation-classification@noreply.github.com; Cc: "Jerry"619686657@qq.com;"Author"author@noreply.github.com; Subject: Re: [roomylee/entity-aware-relation-classification] Meet some problem in logger.py (#6)

Hello, I have encountered the same problem, have you solved it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

W-watermellon commented 5 years ago

okey,thank you ,i will check it

------------------ 原始邮件 ------------------ 发件人: "Jerry"notifications@github.com; 发送时间: 2019年7月19日(星期五) 晚上6:08 收件人: "roomylee/entity-aware-relation-classification"entity-aware-relation-classification@noreply.github.com; 抄送: "阳光的快乐生活"137079388@qq.com;"Comment"comment@noreply.github.com; 主题: Re: [roomylee/entity-aware-relation-classification] Meet some problemin logger.py (#6)

In fact that the bug do not exist in code. The problem is owing to your package not the code. Pay more time on it.

---Original--- From: "W-watermellon"notifications@github.com Date: Fri, Jul 19, 2019 17:35 PM To: "roomylee/entity-aware-relation-classification"entity-aware-relation-classification@noreply.github.com; Cc: "Jerry"619686657@qq.com;"Author"author@noreply.github.com; Subject: Re: [roomylee/entity-aware-relation-classification] Meet some problem in logger.py (#6)

Hello, I have encountered the same problem, have you solved it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

W-watermellon commented 5 years ago

I fllow requirement.txt ,use tensorflow==1.8.0,tensorboard==1.8.0,tensorflow-gpu==1.8.0,tensorflow-hub==0.1.1 ,but it still error, str_parse = str(process.communicate()[0]).split("\n")[-2] ValueError: read of closed file.

W-watermellon commented 5 years ago

I run the code in windows .And i change the code there 【process = subprocess.Popen(["perl", perl_path, prediction_path, target_path], stdout=subprocess.PIPE,shell=True)】,i add the last [shell=True],then the error changed ValueError: read of closed file.

jiaweixian commented 5 years ago

@Jerryten Hi Would you like to teach me how to fix this problem? Which package should be checked? Thx

xxxxyan commented 4 years ago

Hello, have you solved this problem? can you tell me how to fix this problem?

Jerryten commented 4 years ago

please install the strawberry and perl

------------------ 原始邮件 ------------------ 发件人: "xxxyy95"<notifications@github.com>; 发送时间: 2019年12月26日(星期四) 下午2:03 收件人: "roomylee/entity-aware-relation-classification"<entity-aware-relation-classification@noreply.github.com>; 抄送: "WU"<619686657@qq.com>; "Mention"<mention@noreply.github.com>; 主题: Re: [roomylee/entity-aware-relation-classification] Meet some problem in logger.py (#6)

Hello, have you solved this problem? can you tell me how to fix this problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

xxxxyan commented 4 years ago

The strawberry and perl are three modules that i need to install ? Like "pip install the&nbsp","pip install strawberry"? i have installed perl.