Comments (5)
你的示例数据example中不包含"output"字段
from deepke.
你的示例数据example中不包含"output"字段
你好,十分感谢及时回复!示例中不包含output但是通过了preprocess.py处理过后转换成了识别示例中的data字段,这个data字段在英文示例中存在,运行没有报错;但同样格式的中文示例虽然存在该字段,却无法识别该字段并且报错。
from deepke.
看看你转换后的数据。example中需要包含"output"字段。
from deepke.
你好,转换的结果如下:Error executing job with overrides: []
[{'output': [{'E': 'ORG', 'W': '国务院'}, {'E': 'PER', 'W': '秦始皇'}, {'E': 'LOC', 'W': '陕西省'}, {'E': 'LOC', 'W': '西安市'}, {'E': 'TIME', 'W': '1961年'}]}]
Traceback (most recent call last):
File "D:\PycharmProjects\KGdemo\DeepKE-main\example\llm\LLMICL\run.py", line 47, in main
ie_prompter.build_prompt(
File "D:\anaconda3\envs\deepke-llm\lib\site-packages\easyinstruct\prompts\ie_prompt.py", line 123, in build_prompt
examples = self._get_incontext_examples(examples)
File "D:\anaconda3\envs\deepke-llm\lib\site-packages\easyinstruct\prompts\ie_prompt.py", line 272, in _get_incontext_examples
self.examples.append({"输出": str(example["output"])})
KeyError: 'output'
from deepke.
已经解决,原因是easyinstruct包下的ie_prompt文件第263行 for example in self.examples ,需要将self删去,感谢大家帮助,😄
from deepke.
Related Issues (20)
- inference很慢 HOT 6
- NER任务执行run_bert.py报错 HOT 2
- NER任务执行bert结果全是0 HOT 11
- run_bert.py的在训练集、验证集、测试集上的预测结果标签类型都是“O” HOT 11
- 大模型LLMICL知识抽取 HOT 6
- 训练step数和样本量的关系对不上 HOT 7
- triple似乎没有一个能用的 HOT 10
- vllm推理bug HOT 1
- 请问LightNER需要多大的显存来运行 HOT 5
- 训练过程中epoch训练一半终止(ner standrd) HOT 4
- 代码运行 HOT 5
- DeepKE/example/ee/standard 多网卡训练错误 HOT 2
- MAC环境torch libshm.dylib缺失问题 HOT 3
- How to solve the problem that the modle file in re cann't be decoded to utf-8? HOT 41
- 想了解下,为什么python run.py时需要设置W&B账号,系统内是否有自带了模型工具?运行run,就会报错。 HOT 3
- Dependency issue HOT 2
- LightNER 在 cluener数据集下F1 Score 74% HOT 1
- 这个问题该如何解决? HOT 9
- 无法安装,有没有大佬救救,错误的地方用**标注出来了 HOT 16
- 求大佬救 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepke.