Git Product home page Git Product logo

opennre_for_chinese's Introduction

Hi 👋 I'm KuyiKing

I am now interested in Information Extraction, Machine Reading Comprehension, and Knowledge Graph.

Visit counter

opennre_for_chinese's People

Contributors

schlampig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opennre_for_chinese's Issues

运行learn.py出错

您好,我使用了自己的中文数据集,运行learn.py出现了如下错误:
Calculated padded input size per channel: (122 x 110). Kernel size: (3 x 210). Kernel size can't be greater than actual input size
请问这个问题怎么解决呢?

数据准备的bug?

运行gen_embed_mat.py脚本生成的与训练数据有关的词向量(word_dictionary_nre.json)只能生成英文和数字的,中文的词一个都没有。还有一个问题就是生成json数据时,中文总是乱码。

train error

Traceback (most recent call last):
File "./learn.py", line 42, in
is_training=True)
File "./learn.py", line 29, in learn
con.train()
File "/home/xiachao/workspace/OpenNRE_for_Chinese-master/config.py", line 251, in train
loss = self.train_one_step()
File "/home/xiachao/workspace/OpenNRE_for_Chinese-master/config.py", line 224, in train_one_step
self.acc_not_NA.add(prediction == self.batch_label[i])
TypeError: eq() received an invalid combination of arguments - got (numpy.int64), but expected one of:

  • (Tensor other)
    didn't match because some of the arguments have invalid types: (numpy.int64)
  • (Number other)
    didn't match because some of the arguments have invalid types: (numpy.int64)

How to solve this problem?

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.