Giter Club home page Giter Club logo

nfetc's Introduction

NFETC

Neural Fine-grained Entity Type Classification with Hierarchy-Aware Loss

Paper Published in NAACL 2018: NFETC

Prerequisites

  • tensorflow >= r1.2
  • hyperopt
  • gensim
  • sklearn
  • pandas

Dataset

Run ./download.sh to download the corpus and the pre-trained word embeddings

Preprocessing

Run python preprocess.py -d <data_name> [ -c ] to preprocess the data.

Available Dataset Name:

  • wiki: Wiki/FIGER(GOLD) with original freebase-based hierarchy
  • ontonotes: ONTONOTES
  • wikim: Wiki/FIGER(GOLD) with improved hierarchy

Use -c to control if filter the data or not

Note about wikim

Before preprocessing, you need to:

  1. Create a folder data/wikim to store data for Wiki with the improved hierarchy
  2. Run python transform.py

Hyperparameter Tuning

Run python task.py -m <model_name> -d <data_name> -e <max_evals> -c <cv_runs>

See model_param_space.py for available model name

The searching procedurce is recorded in one log file stored in folder log

Evaluation

Run python eval.py -m <model_name> -d <data_name> -r <runs>

The scores for each run and the average scores are also recorded in one log file stored in folder log

Cite

If you found this codebase or our work useful, please cite:

@InProceddings{xu2018neural,
  author = {Xu, Peng and Barbosa, Denilson},
  title = {Neural Fine-Grained Entity Type Classification with Hierarchy-Aware Loss},
  booktitle = {The 16th Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL 2018)},
  month = {June},
  year = {2018},
  publisher = {ACL}
}

nfetc's People

Contributors

billy-inn 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.