Giter VIP home page Giter VIP logo

fet-data's Introduction

Fine-grained Entity Typing without Knowledge Base

This project releases a pseudo dataset for fine-grained entity typing, which is obtained from unstructured data without any knowledge bases. For more details about this project, please see our paper EMNLP 2021.

Data Description

Format

The data format is as follows.

{
    "tokens":["Apple", "is", "company", "."],
    "mentions":[
        {"start":0, "end":1, "labels":["org.generic", "org.company"]},
        ...
    ],
    ... ...
}

key-"tokens" represents the input tokens of the data, and the original sentence can be obtained by splicing with spaces; key-"mentions" stores each mention and its label in the sentence, and each record contains the start and end position of the mention, and the corresponding label.

Ontology

The type ontology in the pseudo data is from the TexSmart system and its definition can be found from the file texsmart-ont-0.3.5.tar.gz in the repo.

Usage

To use the pseudo data for a specific typing task such as FIGER or OntoNotes, one has to map the types in the pseudo data to the types from the specific ontology. This can be achieved by the command as follows:

python data_mapping.py --inp file1 --out file2 --mapping file3

  • file1: the path of input file, i.e., the file of the pseudo data

  • file2: the path of output file

  • file3: mapping file. For the FIGER task, the mapping file is mapping_figer.csv and it is mapping_onto.csv for the OntoNotes task. For other tasks, one needs to manually define a similar csv file for ontology mapping.

About Test Sets

The test datasets (for FIGER and OntoNotes) are not provided in this repo but available at data.

Citation

If you use the data for research, please cite the following paper:

@article{jing2021fine,
  title={Fine-grained Entity Typing without Knowledge Base},
  author={Qian, Jing and Liu, Yibin and Liu, Lemao and Li, Yangming and Jiang, Haiyun and Zhang, Haisong and Shi, Shuming},
  journal={Proceedings of EMNLP},
  year={2021}
}

Contact

If you have any questions, please contact lemaoliu@GMAIL DOT COM

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.