• Stars
    star
    470
  • Rank 93,399 (Top 2 %)
  • Language
    Java
  • License
    Other
  • Created about 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CogComp's Natural Language Processing Libraries and Demos: Modules include lemmatizer, ner, pos, prep-srl, quantifier, question type, relation-extraction, similarity, temporal normalizer, tokenizer, transliteration, verb-sense, and more.

CogCompNLP

Build Status Build status

This project collects a number of core libraries for Natural Language Processing (NLP) developed by Cognitive Computation Group.

How to use it?

Depending on what you are after, follow one of the items:

  • To annotate raw text (i.e. no need to open the annotator boxes to retrain them) you should look into the pipeline.
  • To train and test an NLP annotator (i.e. you want to open an annotator box), see the list of components below and choose the desired one. We recommend using JDK8, as no other versions are officially supported and tested.
  • To read a corpus you should look into the corpus-readers module.
  • To do feature-extraction you should look into edison module.

CogComp's main NLP libraries

Each library contains detailed readme and instructions on how to use it. In addition the javadoc of the whole project is available here.

Module Description
nlp-pipeline Provides an end-to-end NLP processing application that runs a variety of NLP tools on input text.
core-utilities Provides a set of NLP-friendly data structures and a number of NLP-related utilities that support writing NLP applications, running experiments, etc.
corpusreaders Provides classes to read documents from corpora into core-utilities data structures.
curator Supports use of CogComp NLP Curator, a tool to run NLP applications as services.
edison A library for feature extraction from core-utilities data structures.
lemmatizer An application that uses WordNet and simple rules to find the root forms of words in plain text.
tokenizer An application that identifies sentence and word boundaries in plain text.
transliteration An application that transliterates names between different scripts.
pos An application that identifies the part of speech (e.g. verb + tense, noun + number) of each word in plain text.
ner An application that identifies named entities in plain text according to two different sets of categories.
md An application that identifies entity mentions in plain text.
relation-extraction An application that identifies entity mentions, then identify relation pairs among the mentions detected.
quantifier This tool detects mentions of quantities in the text, as well as normalizes it to a standard form.
inference A suite of unified wrappers to a set optimization libraries, as well as some basic approximate solvers.
depparse An application that identifies the dependency parse tree of a sentence.
verbsense This system addresses the verb sense disambiguation (VSD) problem for English.
prepsrl An application that identifies semantic relations expressed by prepositions and develops statistical learning models for predicting the relations.
commasrl This software extracts relations that commas participate in.
similarity This software compare objects --especially Strings-- and return a score indicating how similar they are.
temporal-normalizer A temporal extractor and normalizer.
dataless-classifier Classifies text into a user-specified label hierarchy from just the textual label descriptions
external-annotators A collection useful external annotators.
  • Questions? Have a look at our FAQs.

Using each library programmatically

To include one of the modules in your Maven project, add the following snippet with the #modulename# and #version entries replaced with the relevant module name and the version listed in this project's pom.xml file. Note that you also add to need the <repository> element for the CogComp maven repository in the <repositories> element.

    <dependencies>
         ...
        <dependency>
            <groupId>edu.illinois.cs.cogcomp</groupId>
            <artifactId>#modulename#</artifactId>
            <version>#version#</version>
        </dependency>
        ...
    </dependencies>
    ...
    <repositories>
        <repository>
            <id>CogCompSoftware</id>
            <name>CogCompSoftware</name>
            <url>http://cogcomp.org/m2repo/</url>
        </repository>
    </repositories>

Citing

If you are using the framework, please cite our paper:

@inproceedings{2018_lrec_cogcompnlp,
    author = {Daniel Khashabi, Mark Sammons, Ben Zhou, Tom Redman, Christos Christodoulopoulos, Vivek Srikumar, Nicholas Rizzolo, Lev Ratinov, Guanheng Luo, Quang Do, Chen-Tse Tsai, Subhro Roy, Stephen Mayhew, Zhili Feng, John Wieting, Xiaodong Yu, Yangqiu Song, Shashank Gupta, Shyam Upadhyay, Naveen Arivazhagan, Qiang Ning, Shaoshi Ling, Dan Roth},
    title = {CogCompNLP: Your Swiss Army Knife for NLP},
    booktitle = {11th Language Resources and Evaluation Conference},
    year = {2018},
    url = "http://cogcomp.org/papers/2018_lrec_cogcompnlp.pdf",
}

More Repositories

1

cogcomp-nlpy

CogComp's light-weight Python NLP annotators
Python
116
star
2

talen

A way to do annotations for NER. TALEN: Tool for Annotation of Low-resource ENtities
Java
112
star
3

saul

Saul : Declarative Learning-Based Programming
Scala
64
star
4

zoe

Zero-Shot Open Entity Typing as Type-Compatible Grounding, EMNLP'18.
Python
43
star
5

arithmetic

Arithmetic word problem solver
Java
42
star
6

MCTACO

Dataset and code for β€œGoing on a vacation” takes longer than β€œGoing for a walk”: A Study of Temporal Commonsense Understanding, EMNLP 2019.
Python
40
star
7

multirc

Reasoning over Multiple Sentences (Multi-RC)
Perl
30
star
8

perspectrum

Perspectrum: a dataset of claims, perspectives and evidence documents
Jupyter Notebook
30
star
9

JointConstrainedLearning

Joint Constrained Learning for Event-Event Relation Extraction
Jupyter Notebook
26
star
10

illinois-sl

A general-purpose Java library for performing structured learning.
Java
22
star
11

TacoLM

Temporal Common Sense Acquisition with Minimal Supervision, ACL'20
Python
20
star
12

Benchmarking-Zero-shot-Text-Classification

Code for EMNLP2019 paper : "Benchmarking zero-shot text classification: datasets, evaluation and entailment approach"
Python
18
star
13

SRL-English

BERT-based nominal Semantic Role Labeling (SRL), both using the Nombank dataset and the Ontonotes dataset.
Python
16
star
14

faithful_summarization

Python
15
star
15

TAWT

Weighted Training for Cross-Task Learning
Python
15
star
16

lbjava

Learning Based Java (LBJava)
Java
13
star
17

reasoning-eval

13
star
18

APSI

Code for EMNLP 2020 paper: Analogous Process Structure Induction for Sub-event Sequence Prediction
Python
11
star
19

Event_Process_Typing

This is the repository for the resources in CoNLL 2020 Paper "What Are You Trying Todo? Semantic Typing of Event Processes"
Python
10
star
20

MultiOpEd

MULTIOPED: A Corpus of Multi-Perspective News Editorials.
Python
10
star
21

Salient-Event-Detection

The repository for the paper "Is Killed More Significant than Fled? A Contextual Model for Salient Event Detection"
Python
10
star
22

TCR

Temporal and Causal Reasoning (dataset)
10
star
23

CogCompTime

CogCompTime
Java
9
star
24

QuASE

QuASE :This is the code repository for the ACL paper QuASE: Question-Answer Driven Sentence Encoding.
Python
8
star
25

event-linking

Python
8
star
26

learning-to-decompose

Code and Data for Zhou et al. 2022: Learning to Decompose: Hypothetical Question Decomposition Based on Comparable Texts
Python
8
star
27

perspectroscope

A Window to the World of Differing Perspectives
JavaScript
7
star
28

MATRES

Multi-Axis Temporal Relations for Start-points (dataset)
7
star
29

open-eval

An open source evaluation framework for developing NLP systems
Java
7
star
30

Subevent_EventSeg

Python
7
star
31

qaeval-experiments

QAEval Experiments This repository will contain the code to reproduce the experiments from Towards Question-Answering as an Automatic Metric for Evaluating the Content Quality of a Summary.
Python
7
star
32

summary-cloze

Summary Cloze: A New Task for Content Selection in Topic-Focused Summarization
Python
6
star
33

nmn-drop

Code for NMN over DROP -- Neural Module Networks for Reasoning over Text
Python
5
star
34

wikidump-preprocessing

Wikipedia Dump Processing
Python
4
star
35

decomp-el-retriever

4
star
36

CIKQA

Python
4
star
37

time

Understanding time in text
4
star
38

NLP-Event-Extraction-Demo

NLP Event Extraction Demo
Python
3
star
39

Logic2ILP

Java
3
star
40

KAIROS-Event-Extraction

Event Extraction
Python
3
star
41

ZeroShotWiki

Towards Open Domain Topic Classification
Python
3
star
42

TemProb-NAACL18

Improving Temporal Relation Extraction with a Globally Acquired Statistical Resource
Java
3
star
43

Complex_Event_Identification

Complex Event Identification - This repository contains the code for the paper Capturing the Content of a Document through Complex Event Identification
Python
3
star
44

illinois-sl-examples

Implementing simple learning problems using Illinois-SL
Java
3
star
45

transformer-lm-demo

A simple demo of transformer language models, mostly for our internal use: http://dickens.seas.upenn.edu:4001
Python
3
star
46

ccr_rock

ROCK: Causal Inference Principles for Reasoning about Commonsense Causality
Jupyter Notebook
2
star
47

content-analysis-experiments

Python
2
star
48

Yes-No-or-IDK

Yes, No or IDK: The Challenge of Unanswerable Yes/No Questions
Python
2
star
49

ZEC

Zero-shot event trigger and argument classification
Python
2
star
50

ner-with-partial-annotations

Python
2
star
51

today

Jupyter Notebook
2
star
52

RESIN-11

RESIN-11: Schema-guided Event Prediction for 11 Newsworthy Scenarios
Shell
2
star
53

JEANS

JEANS : This repo contains code for Cross-lingual Entity Alignment for Knowledge Graphs with Incidental Supervision from Free Text
Python
2
star
54

IDK-beyond-SQuAD2.0

Do we Know What We Don't Know? Studying Unanswerable Questions beyond SQuAD 2.0
2
star
55

Essential-Step-Detection

HTML
2
star
56

multilingual-ner

Multilingual NER and XEL demo
Python
2
star
57

apelles

CogComp-nlp demo
HTML
2
star
58

mcqa-expectations

mcqa-expectations
Python
2
star
59

re-examining-correlations

Re-Examining System-Level Correlations of Automatic Summarization Evaluation Metrics - This repository contains the code for the NAACL 2022 paper "Re-Examining System-Level Correlations of Automatic Summarization Evaluation Metrics."
Python
2
star
60

stat-analysis-experiments

Python
2
star
61

jwnl-prime

Modified version of the JWNL (http://sourceforge.net/projects/jwordnet/)
Java
2
star
62

Event_Process_Typing_Demo

Python
1
star
63

ccg-bibfiles

Repository to store cogcomp's bib and cited bib files
TeX
1
star
64

NER-Multilanguage-Demo

NER-Multilanguage-Demo
Python
1
star
65

reference-free-limitations

Python
1
star
66

Zero_Shot_Schema_Induction

Python
1
star
67

NLP-Multipackage-Demo

NLP-Multipackage-Demo
Python
1
star
68

PairedRL

PairedRL-coref
1
star
69

cogcomp-datastore

A convenient wrapper for interfacing minio java api
Java
1
star
70

KAIROS2020

KAIROS 2020 backend services
Python
1
star
71

zeroshot-classification-demo

Python
1
star
72

PABI

Python
1
star
73

NER-English-Demo

This repo is the frontend of NER Demo for English
Python
1
star
74

KAIROS-Temporal-Extraction

Extracts the temporal information and normalizes it.
Smalltalk
1
star
75

mbert-study

CROSS-LINGUAL ABILITY OF MULTILINGUAL BERT: AN EMPIRICAL STUDY
Python
1
star
76

NeuralTemporalRelation-EMNLP19

CogCompTime 2.0
Python
1
star
77

multi-persp-search-engine

Code for the prototype multi-perspective search engine from Findings of NAACL'21 paper - "Design Challenges for a Multi-Perspective Search Engine"
Python
1
star
78

NLP-SRL-English-Demo

NLP-SRL-English-Demo
Python
1
star
79

QA-idk-demo

Python
1
star
80

Event_Semantic_Classification

Repository for "Event Semantic Classification in Context" published in EACL 2024 Findings
1
star
81

ReEval-LLM-Hallucination

GitHub Repo for "ReEval: Automatic Hallucination Evaluation for Retrieval-Augmented Large Language Models via Transferable Adversarial Attacks""
Python
1
star
82

Zeroshot-Event-Extraction

Zero-shot Event Extraction - This is the code repository for ACL2021 paper: Zero-shot Event Extraction via Transfer Learning: Challenges and Insights.
Python
1
star