All Projects → INK-USC → Clustype

INK-USC / Clustype

Licence: gpl-3.0
Automatic Entity Recognition and Typing for Domain-Specific Corpora (KDD'15)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Clustype

Multiple Relations Extraction Only Look Once
Multiple-Relations-Extraction-Only-Look-Once. Just look at the sentence once and extract the multiple pairs of entities and their corresponding relations. 端到端联合多关系抽取模型,可用于 http://lic2019.ccf.org.cn/kg 信息抽取。
Stars: ✭ 269 (+171.72%)
Mutual labels:  information-extraction, entity-extraction
Open Semantic Entity Search Api
Open Source REST API for named entity extraction, named entity linking, named entity disambiguation, recommendation & reconciliation of entities like persons, organizations and places for (semi)automatic semantic tagging & analysis of documents by linked data knowledge graph like SKOS thesaurus, RDF ontology, database(s) or list(s) of names
Stars: ✭ 98 (-1.01%)
Mutual labels:  natural-language-processing, entity-extraction
Tacred Relation
PyTorch implementation of the position-aware attention model for relation extraction
Stars: ✭ 271 (+173.74%)
Mutual labels:  natural-language-processing, information-extraction
lima
The Libre Multilingual Analyzer, a Natural Language Processing (NLP) C++ toolkit.
Stars: ✭ 75 (-24.24%)
Mutual labels:  information-extraction, entity-extraction
Entity Recognition Datasets
A collection of corpora for named entity recognition (NER) and entity recognition tasks. These annotated datasets cover a variety of languages, domains and entity types.
Stars: ✭ 891 (+800%)
Mutual labels:  natural-language-processing, entity-extraction
alter-nlu
Natural language understanding library for chatbots with intent recognition and entity extraction.
Stars: ✭ 45 (-54.55%)
Mutual labels:  information-extraction, entity-extraction
Medacy
🏥 Medical Text Mining and Information Extraction with spaCy
Stars: ✭ 287 (+189.9%)
Mutual labels:  natural-language-processing, information-extraction
Chemdataextractor
Automatically extract chemical information from scientific documents
Stars: ✭ 152 (+53.54%)
Mutual labels:  natural-language-processing, information-extraction
Nlp.js
An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more
Stars: ✭ 4,670 (+4617.17%)
Mutual labels:  natural-language-processing, entity-extraction
Usc Ds Relationextraction
Distantly Supervised Relation Extraction
Stars: ✭ 378 (+281.82%)
Mutual labels:  natural-language-processing, information-extraction
Mitie
MITIE: library and tools for information extraction
Stars: ✭ 2,693 (+2620.2%)
Mutual labels:  natural-language-processing, information-extraction
Nested Ner Tacl2020 Transformers
Implementation of Nested Named Entity Recognition using BERT
Stars: ✭ 76 (-23.23%)
Mutual labels:  natural-language-processing, information-extraction
Nel
Entity linking framework
Stars: ✭ 176 (+77.78%)
Mutual labels:  natural-language-processing, information-extraction
InformationExtractionSystem
Information Extraction System can perform NLP tasks like Named Entity Recognition, Sentence Simplification, Relation Extraction etc.
Stars: ✭ 27 (-72.73%)
Mutual labels:  information-extraction, entity-extraction
Spark Nlp
State of the Art Natural Language Processing
Stars: ✭ 2,518 (+2443.43%)
Mutual labels:  natural-language-processing, entity-extraction
Oie Resources
A curated list of Open Information Extraction (OIE) resources: papers, code, data, etc.
Stars: ✭ 283 (+185.86%)
Mutual labels:  natural-language-processing, information-extraction
Nl2sql
阿里天池首届中文NL2SQL挑战赛top6
Stars: ✭ 146 (+47.47%)
Mutual labels:  natural-language-processing, information-extraction
Fxdesktopsearch
A JavaFX based desktop search application.
Stars: ✭ 147 (+48.48%)
Mutual labels:  natural-language-processing, entity-extraction
Gcn Over Pruned Trees
Graph Convolution over Pruned Dependency Trees Improves Relation Extraction (authors' PyTorch implementation)
Stars: ✭ 312 (+215.15%)
Mutual labels:  natural-language-processing, information-extraction
Understanding Financial Reports Using Natural Language Processing
Investigate how mutual funds leverage credit derivatives by studying their routine filings to the SEC using NLP techniques 📈🤑
Stars: ✭ 36 (-63.64%)
Mutual labels:  natural-language-processing, information-extraction

ClusType

Source code for SIGKDD'15 paper ClusType: Effective Entity Recognition and Typing by Relation Phrase-Based Clustering (Slides).

Given a text corpus (e.g., a collection of news articles), it performs automatically entity extraction and typing using distant supervision (i.e., examples from external knowledge bases like Freebase). For example, from the sentence "The best BBQ I’ve tasted in Phoenix" the system will recognize BBQ as food and phoenix as location. More background can be found in our WWW'16 tutorial.

ClusType works on coarse-grained entity types (e.g., Person, Location, Organization); for more fine-grained entity typing, please use AFET (Ren et al., EMNLP'16).

Data

  • NYT:
    • Corpus: 110k New York Times news articles (download)
    • Seed entities: entity linking result by DBpediaSpotlight (download)
  • Yelp:
  • Tweet:
    • Corpus: 302k tweets from May 2011 (download)
    • Seed entities: entity linking result by DBpediaSpotlight (download)

System Output & Evaluation

The system output on NYT dataset can be downloaded from here. We evaluated the result over ~1k (20,874 annotated entity mentions) gold standard set. Sample output on 50k Yelp reviews can be download from here.

Evaluate the result:

python src/evaluation.py -ResultPath -GroundTruthPath

Dependencies

  • python 2.7
  • numpy, scipy, scikit-learn, lxml, TextBlob and related corpora
$ sudo pip install numpy scipy sklearn lxml textblob
$ sudo python -m textblob.download_corpora

Default Run

$ ./run.sh  

Run.sh - File path setup

We take Yelp dataset as an example.

Input: text corpus path.

RawText='data/yelp/yelp_230k.txt'
  • format: "docId \TAB document \n"

Input: type mapping file path.

TypeFile='data/yelp/type_tid.txt'
  • format: "type name \TAB typeId \n". "NIL" means "Not-of-Interest"

Input: mapping between Freebase and DBpedia entities.

FreebaseMap='data/freebase_links.nt'

Output: output file from candidate generation (format: "docId \TAB segmented sentence \n").

SegmentOutFile='result/segment.txt'
  • Segments are separated by ",". Entity mention candidates are marked with ":EP". Relation phrases are marked with ":RP".

Output: entity linking result (please download the corresponding seed entity files).

SeedFile='data/yelp/seed_yelp.txt'
  • Format: "docId \TAB entity name \TAB Original Freebase Type \TAB Refined Type \TAB Freebase EntityID \TAB Similarity Score \TAB Relative Rank \n".
  • NOTE: Our entity linking module calls DBpediaSpotLight Web service, which has limited querying speed. This process can be largely accelarated by installing the tool on your local machine Link.

Output: entity mentions found in each document.

ResultFile='result/yelp/results.txt'
  • Format: "docId \TAB entity mention \TAB entity type \n".

Output: In-text annotation of entity mentions.

ResultFileInText='result/yelp/resultsInText.txt'

Run.sh - Model parameters

Threshold on significance score for candidate generation.

significance="2"

Switch on capitalization feature for candidate generation.

capitalize="1"

Maximal phrase length for candidate generation.

maxLength='4'

Minimal support of phrases for candidate generation.

minSup='30'

Number of relation phrase clusters.

NumRelationPhraseClusters='500'

Reference

@inproceedings{ren2015clustype,
  title={Clustype: Effective entity recognition and typing by relation phrase-based clustering},
  author={Ren, Xiang and El-Kishky, Ahmed and Wang, Chi and Tao, Fangbo and Voss, Clare R and Han, Jiawei},
  booktitle={Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
  pages={995--1004},
  year={2015},
  organization={ACM}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].