GithubHelp home page GithubHelp logo

zhpmatrix / bertem Goto Github PK

View Code? Open in Web Editor NEW
153.0 153.0 26.0 325 KB

论文实现(ACL2019):《Matching the Blanks: Distributional Similarity for Relation Learning》

License: Apache License 2.0

Dockerfile 0.02% Python 47.36% Jupyter Notebook 52.62%
acl2019 bert-pytorch fewrel matching-the-blanks nlp relation-extraction

bertem's Introduction

Introduction

  • SHOW ME YOUR CODE!
  • email:[email protected]
  • 微信公众号《KBQA沉思录》主理人
  • 个人博客:zhpmatrix.github.io
  • 🎓 Master of Computer Science
  • 养了好几盆绿植🌳,还有一只巴西龟和台湾花龟,还有一只精力无限的猫🐱,想养一只柴犬
  • 写码,看书,写文章,打篮球,吹牛
  • 年少时想成为一个作家,很酷的工作

Visitor count

bertem's People

Contributors

zhpmatrix 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  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  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  avatar  avatar  avatar  avatar

bertem's Issues

"Entity start state"相关代码

entity_emb_output = batch_entity_emb.sum(dim=1)

这个与paper中所采用的concat方式不一样呢,有什么特殊的考虑么?

SemEval dataset question

How is the SemEval data set handled as input? Is it convenient to provide the input sample data?

token error

I use SemEval Task8 data.
Arguments: (['[CLS]', 'the', 'system', 'as', 'described', 'above', 'has', 'its', 'greatest', 'application', 'in', 'an', 'array', '##ed', '<s1>', 'configuration', '<e1>', 'of', 'antenna', '<s2>', 'elements', '<e2>', '.', '[SEP]'],)
but there is no '<s1>' '<e1>' in vocab!

Could you please give a sample of TACRED dataset format for your code?

Thank you for your kind open sourcing. I have tried to run your code about tacred_run_classifier.py on TACRED dataset. It seems that your input dataset is different from the original dataset.
According to the original dataset format, I changed the input entity_pos as "entity_pos = [[line['subj_start'],line['subj_end']+1],[line['obj_start'],line['obj_end']+1]]". Is it right?

Even so, when running the code, some errors about GPU or Cuda happened. Is this the problem of input data format? Or are there any other parameters should I change?

The errors are like:“RuntimeError: cublas runtime error : resource allocation****aten/src/THC/THCGeneral.cpp:250" etc.

Where is the model/ folder

On your train script you specified a model folder that is not in the repository, from where should I download?

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.