GithubHelp home page GithubHelp logo

example中NER任务 about deepke HOT 10 CLOSED

dcosmice avatar dcosmice commented on June 28, 2024
example中NER任务

from deepke.

Comments (10)

xxupiano avatar xxupiano commented on June 28, 2024

请问您是自动下载BERT还是BERT下载到本地后手动填写模型路径?

from deepke.

dcosmice avatar dcosmice commented on June 28, 2024

请问您是自动下载BERT还是BERT下载到本地后手动填写模型路径?

手动填写路径
您提到的,模型路径修改是在哪个文件夹里?目前已经跑通RE,但是到了NER任务时出现问题

from deepke.

xxupiano avatar xxupiano commented on June 28, 2024

https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/conf/hydra/model/bert.yaml#L2 WIN的路径中请使用\

from deepke.

dcosmice avatar dcosmice commented on June 28, 2024

https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/conf/hydra/model/bert.yaml#L2 WIN的路径中请使用\

好的,谢谢,已改正

from deepke.

zxlzr avatar zxlzr commented on June 28, 2024

请问您的问题是否已解决?

from deepke.

dcosmice avatar dcosmice commented on June 28, 2024

请问您的问题是否已解决?

暂未
您好,运行predict.py后,仅出现如下结果:
屏幕截图 2024-05-10 091355
那么请教问题:
1、这些标签分别是什么意思,在哪个文件可以看到这些标签的注释(如,已知per为人物,B-per、I-PER等等分别指什么)
2、这个任务的输出和RE任务的输出貌似不一样,那么如何继续实现ner任务:当输入一个样本句子,出来人物,地点和机构(如输入:本报北京9月4日讯记者杨涌报道:部分省区人民日报宣传发行工作座谈会9月3日在4日在京举行,输出:Person-杨勇等类似您展示的案例),期待您的回复!

from deepke.

xxupiano avatar xxupiano commented on June 28, 2024
  1. 这是NER的BIO标签,B-表示entity mention的开始token,I-表示entity mention的后续token;
  2. 修改https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/conf/predict.yaml#L1,即可指定想要实现NER的上下文。

from deepke.

dcosmice avatar dcosmice commented on June 28, 2024

请问您的问题是否已解决?

  1. 这是NER的BIO标签,B-表示entity mention的开始token,I-表示entity mention的后续token;
  2. 修改https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/conf/predict.yaml#L1,即可指定想要实现NER的上下文。

好的,谢谢,还有一个问题,是否有改良版本的代码,直接输出:( person:杨涌),而非一个一个字;
试了下被注释掉的代码,貌似不太行:
image

from deepke.

xxupiano avatar xxupiano commented on June 28, 2024

https://github.com/zjunlp/DeepKE/blob/main/src/deepke/name_entity_re/standard/models/InferBert.py#L167-L189 这里有参考的代码,可以自行按需修改

from deepke.

dcosmice avatar dcosmice commented on June 28, 2024

https://github.com/zjunlp/DeepKE/blob/main/src/deepke/name_entity_re/standard/models/InferBert.py#L167-L189 这里有参考的代码,可以自行按需修改

谢谢,发现问了很多stupid问题,再问一个:
如果想要修改数据集重新训练任务,标注文本和设置新标签,请问有什么建议,有哪些基本步骤或者行动框架,(除了三个数据集需要替换,还有需要替换的文本或者词典吗,暂不考虑bug问题)

from deepke.

Related Issues (20)

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.