event_extraction icon indicating copy to clipboard operation
event_extraction copied to clipboard

关于数据预处理:vocab_all_event_type_label_map.txt

Open bultiful opened this issue 4 years ago • 13 comments

No such file or directory: 'data/slot_pattern/vocab_all_event_type_label_map.txt' 你好,我想问下这份文件是一开始就有的,还是在代码中生成的呢,如果是代码生成的,具体预处理数据的过程能否告知一下。readME介绍的信息量有点少。

bultiful avatar Aug 24 '20 02:08 bultiful

No such file or directory: 'data/slot_pattern/vocab_all_event_type_label_map.txt' 你好,我想问下这份文件是一开始就有的,还是在代码中生成的呢,如果是代码生成的,具体预处理数据的过程能否告知一下。readME介绍的信息量有点少。

抱歉,已经把缺失的文件补上了,实际上这个文件存放的是所有事件类型标签的label与id的映射关系。

qiufengyuyi avatar Aug 25 '20 01:08 qiufengyuyi

谢谢你。后面我自己生成了一份,但顺序和你的不一致,问题应该不大吧? 还有在运行bash run_event_role.sh,会有以下问题。但是我找不到在哪“换成加载预测起始位置的数据”。可否再帮我解答以下? TypeError: Tensor objects are only iterable when eager execution is enabled. To iterate over this tensor use tf.map_fn

bultiful avatar Aug 25 '20 01:08 bultiful

你好啊,感谢你的回复,但是我还有一个问题一直想不明白该怎么该?在运行bash run_event_role.sh,会有以下问题。但是我找不到在哪“换成加载预测起始位置的数据”。可否再帮我解答以下? TypeError: Tensor objects are only iterable when eager execution is enabled. To iterate over this tensor use tf.map_fn。

【这个我看了你博客上的回复,但是不是很明白具体该怎么“换成加载预测起始位置的数据”】

------------------ 原始邮件 ------------------ 发件人: "qiufengyuyi/event_extraction" <[email protected]>; 发送时间: 2020年8月25日(星期二) 上午9:09 收件人: "qiufengyuyi/event_extraction"<[email protected]>; 抄送: "rfpan"<[email protected]>;"Author"<[email protected]>; 主题: Re: [qiufengyuyi/event_extraction] 关于数据预处理:vocab_all_event_type_label_map.txt (#5)

No such file or directory: 'data/slot_pattern/vocab_all_event_type_label_map.txt' 你好,我想问下这份文件是一开始就有的,还是在代码中生成的呢,如果是代码生成的,具体预处理数据的过程能否告知一下。readME介绍的信息量有点少。

抱歉,已经把缺失的文件补上了,实际上这个文件存放的是所有事件类型标签的label与id的映射关系。

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

bultiful avatar Aug 25 '20 02:08 bultiful

你好啊,感谢你的回复,但是我还有一个问题一直想不明白该怎么该?在运行bash run_event_role.sh,会有以下问题。但是我找不到在哪“换成加载预测起始位置的数据”。可否再帮我解答以下? TypeError: Tensor objects are only iterable when eager execution is enabled. To iterate over this tensor use tf.map_fn。 【这个我看了你博客上的回复,但是不是很明白具体该怎么“换成加载预测起始位置的数据”】 ------------------ 原始邮件 ------------------ 发件人: "qiufengyuyi/event_extraction" <[email protected]>; 发送时间: 2020年8月25日(星期二) 上午9:09 收件人: "qiufengyuyi/event_extraction"<[email protected]>; 抄送: "rfpan"<[email protected]>;"Author"<[email protected]>; 主题: Re: [qiufengyuyi/event_extraction] 关于数据预处理:vocab_all_event_type_label_map.txt (#5) No such file or directory: 'data/slot_pattern/vocab_all_event_type_label_map.txt' 你好,我想问下这份文件是一开始就有的,还是在代码中生成的呢,如果是代码生成的,具体预处理数据的过程能否告知一下。readME介绍的信息量有点少。 抱歉,已经把缺失的文件补上了,实际上这个文件存放的是所有事件类型标签的label与id的映射关系。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

event_input_bert_mrc_mul_fn换成event_input_bert_mrc_fn

qiufengyuyi avatar Aug 25 '20 03:08 qiufengyuyi

好的。谢谢你。

bultiful avatar Aug 25 '20 06:08 bultiful

你好啊,感谢你的回复,但是我还有一个问题一直想不明白该怎么该?在运行bash run_event_role.sh,会有以下问题。但是我找不到在哪“换成加载预测起始位置的数据”。可否再帮我解答以下? TypeError: Tensor objects are only iterable when eager execution is enabled. To iterate over this tensor use tf.map_fn。 【这个我看了你博客上的回复,但是不是很明白具体该怎么“换成加载预测起始位置的数据”】 ------------------ 原始邮件 ------------------ 发件人: "qiufengyuyi/event_extraction" <[email protected]>; 发送时间: 2020年8月25日(星期二) 上午9:09 收件人: "qiufengyuyi/event_extraction"<[email protected]>; 抄送: "rfpan"<[email protected]>;"Author"<[email protected]>; 主题: Re: [qiufengyuyi/event_extraction] 关于数据预处理:vocab_all_event_type_label_map.txt (#5) No such file or directory: 'data/slot_pattern/vocab_all_event_type_label_map.txt' 你好,我想问下这份文件是一开始就有的,还是在代码中生成的呢,如果是代码生成的,具体预处理数据的过程能否告知一下。readME介绍的信息量有点少。 抱歉,已经把缺失的文件补上了,实际上这个文件存放的是所有事件类型标签的label与id的映射关系。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

这个起始位置的label数据怎么写呢?已经解决了吗?

hungita avatar Sep 17 '20 03:09 hungita

event_input_bert_mrc_fn

你好你好,我也遇到这个报错,按照”event_input_bert_mrc_mul_fn换成event_input_bert_mrc_fn“改了以后,仍然有问题: TypeError: event_input_bert_mrc_fn() missing 1 required positional argument: 'query_lens'

谢谢!

amelieyu1989 avatar Jan 13 '21 09:01 amelieyu1989

相对应的改了是没有问题了

hungita avatar Jan 13 '21 09:01 hungita

好的。谢谢你。

请问你这个问题解决了么

amelieyu1989 avatar Jan 13 '21 10:01 amelieyu1989

是的

hungita avatar Jan 13 '21 10:01 hungita

是的

是吧train_helper.py里面”event_input_bert_mrc_mul_fn换成event_input_bert_mrc_fn“么?但是有报错TypeError: event_input_bert_mrc_fn() missing 1 required positional argument: 'query_lens' 这两个函数参数不一样,需要输入数据的start_Ys, end_Ys 呢,请问这个怎么获得的?

amelieyu1989 avatar Jan 13 '21 10:01 amelieyu1989

方便分享一下你改后的代码么? 我这边还是有报错

hungita [email protected] 于2021年1月13日周三 下午6:01写道:

是的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qiufengyuyi/event_extraction/issues/5#issuecomment-759341602, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDUSIFVW5WQZCD6K44VLZLSZVVQ5ANCNFSM4QI7WSJQ .

amelieyu1989 avatar Jan 14 '21 07:01 amelieyu1989

遇到同样的问题。 里面”event_input_bert_mrc_mul_fn换成event_input_bert_mrc_fn“么?但是有报错TypeError: event_input_bert_mrc_fn() missing 1 required positional argument: 'query_lens' 这两个函数参数不一样,需要输入数据的start_Ys, end_Ys 呢,请问这个怎么获得的?

Jorigorn avatar Mar 18 '21 03:03 Jorigorn