Git Product home page Git Product logo

Comments (5)

taishan1994 avatar taishan1994 commented on June 1, 2024

75f4b83ae597b43d3ad45e8421bb7f5 我是按照您提供的数据格式进行添加,但是在数据预处理的时候遇到了问题,不知道应该怎么修改,希望您能进行解答!万分感谢!

你是运行的raw_data下的process.py么?

from pytorch_bert_bilstm_crf_ner.

aazyk avatar aazyk commented on June 1, 2024

75f4b83ae597b43d3ad45e8421bb7f5我是按照您提供的数据格式添加的,但是在数据发送的时候遇到问题,不应该怎么修改,希望您能知道!万分感谢!

你正在运行的 raw_data 下的 process.py 么?

是的,运行的是这个文件

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 1, 2024

75f4b83ae597b43d3ad45e8421bb7f5我是按照您提供的数据格式添加的,但是在数据发送的时候遇到问题,不应该怎么修改,希望您能知道!万分感谢!

你正在运行的 raw_data 下的 process.py 么?

是的,运行的是这个文件

我刚克隆下来跑了下,没有出现问题额

from pytorch_bert_bilstm_crf_ner.

aazyk avatar aazyk commented on June 1, 2024

75f4b83ae597b43d3ad45e8421bb7f5我是按照您提供的数据格式添加的,但是在数据发送的时候遇到问题,不应该怎么修改,希望您能知道!万分感谢!

你正在运行的 raw_data 下的 process.py 么?

是的,运行的是这个文件

我刚克隆下来跑了下,没有出现问题额

我百度了一下错误的提示原因,说是由于re匹配时在语料中存在特殊字符(由于语料特性,需要保留原语料字符格式)导致的,不知需要怎样修改呢,在re.finditer()时出现错误

from pytorch_bert_bilstm_crf_ner.

taishan1994 avatar taishan1994 commented on June 1, 2024

75f4b83ae597b43d3ad45e8421bb7f5我是按照您提供的数据格式添加的,但是在数据发送的时候遇到问题,不应该怎么修改,希望您能知道!万分感谢!

你正在运行的 raw_data 下的 process.py 么?

是的,运行的是这个文件

我刚克隆下来跑了下,没有出现问题额

我百度了一下错误的提示原因,说是由于re匹配时在语料中存在特殊字符(由于语料特性,需要保留原语料字符格式)导致的,不知需要怎样修改呢,在re.finditer()时出现错误

将文本中的()[].*?都转义再匹配,比如re.sub('(','\(', text)等,也就是在t他们前面添加\,匹配出来后核对一下在原文的索引是不是一致的

from pytorch_bert_bilstm_crf_ner.

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.