Code Monkey home page Code Monkey logo

chempatentembeddings's Introduction

ChemPatentEmbeddings

This repository contains an ELMo and a word2vec model pre-trained on a 1 Billion word chemical patent corpus.

Dataset

The dataset we used for training consists of 84,076 patent documents from 7 different patent authorities. The dataset will NOT be made publicly available.

PO # of Document # of Sentences # of Tokens
AU 7,743 4,662,375 156,137,670
CA 1,962 463,123 16,109,776
EP 19,274 3,478,258 117,992,191
GB 918 182,627 6,038,837
IN 1,913 261,260 9,015,238
US 41,131 19,800,123 628,256,609
WO 11,135 4,830,708 159,286,325
Total 84,076 33,687,474 1,092,836,646

Word2Vec

We trained the word2vec model with same hyper-parameters in Pyysalo et al., (2013) for 10 iterations. The word vectors file (.txt) can be directly loaded into your neural network framework. Note that words shorter than 25 characters in length were replaced by long_token during training.

Please click here to download the pre-trained word vectors.

ELMo

Default hyper-parameters in Peters et al., (2018) were used. Note that words shorter than 25 characters in length were replaced by long_token during training (cf. max. character length is 50 under default setting).

Please click here to download ELMo model.

  • Fine Tuning: Load weights.hdf5 and options.json into the original ELMo implementation and train it further on your own datasets.

  • Representation: You can also use contextualized word representations generated by ELMo for downstream tasks by load weights.hdf5 and options.json into AllenNLP framework.

Reference

If you find the word representations useful, please cite the following paper: Improving Chemical Named Entity Recognition in Patents with Contextualized Word Embeddings

@inproceedings{zhai2019improving,
  author    = {Zhai, Zenan and Nguyen, Dat Quoc and A. Akhondi, Saber and Thorne, Camilo and Druckenbrodt,
               Christian and Cohn, Trevor and Gregory, Michelle and Verspoor, Karin},
  title     = {{Improving Chemical Named Entity Recognition in Patents with Contextualized Word Embeddings}},
  booktitle = {{Proceedings of the BioNLP 2019 workshop}},
  pages     = {To appear},
  year      = {2019},
}

chempatentembeddings's People

Contributors

zenanz avatar

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.