• This repository has been archived on 15/Feb/2024
  • Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    Scala
  • Created over 12 years ago
  • Updated about 7 years ago

Reviews

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

Repository Details

A toolkit that wraps various natural language processing implementations behind a common interface.

** DEPRECATED! ** Please see https://github.com/dair-iitd/OpenIE-standalone, which has combined multiple projects into a single project and maintains the latest version of Open IE (Open IE 5). It is based on another repository https://github.com/allenai/openie-standalone, which has an older version of Open IE.

UW NLPTools

This is a collection of natural language processing tools wrapped behind common interfaces. The client can easily use the wrapped libraries through elegant scala interfaces. It's also simple to switch implementations of a particular tool since all implementations of a particular tool extend a common interface.

This toolkit also aims to minimize the size of transitive dependencies. Each tool is broken into its own component so you can choose what you want to use through dependency management. Each component contains the requisite modules but no more, saving you from needing to search for models while also protecting you from a dependencies that are hundreds of megabytes in order to contain every possible model. If you want to avoid the default models, that's OK too. They are a transitive dependency of the tool so you can exclude them within your dependency manager.

Licensing can be a nightmare. Each tool is split into its own component with the most permissive license allowable by the dependencies. Licenses are all clearly stated in the LICENSE file of the subcomponent.

The largest NLP components are OpenNLP toolkit (Apache 2.0) and Stanford CoreNLP (GPL 2.0).

The interfaces are defined in the core component.

Usage

Each component is usable through a java interface as well as on the command line. Here are some examples:

echo 'The quick brown fox jumps over the lazy dog.' | sbt 'project nlptools-parse-stanford' 'run-main edu.knowitall.tool.parse.StanfordParserMain' echo 'The quick brown fox jumps over the lazy dog.' | sbt 'project nlptools-chunk-opennlp' 'run-main edu.knowitall.tool.chunk.OpenNlpChunkerMain'

HTTP

You can also spin each tool up as an HTTP server.

sbt 'project nlptools-parse-stanford' 'run-main edu.knowitall.tool.parse.StanfordParserMain --server'

It's also possible to spin up all nlptools components as HTTP servers.

$ scala scripts/assignports.scala > servers.config
$ scala scripts/runservers.scala servers.config

Inconveniently, this spins up many programs on different ports that can receive POST and GET requests. Remembering which port corresponds to which tool is confusing at best. There is a simple scala application in /server that runs yet another server to unify the tools. Once you run the nlptools server you can post to the subpath corresponding to your tool.

sbt 'run ../servers.config --port 12000'

Now you can POST to a convenient URL.

$ curl localhost:12000
/postag/clear/
/postag/opennlp/
/postag/stanford/
/tokenize/clear/
/tokenize/breeze/
/tokenize/opennlp/
/tokenize/stanford/
$ curl localhost:12000/postag/opennlp/ --data-binary 'Let us postag this text.'
Let 0 VB
us 4 PRP
postag 7 VB
this 14 DT
text 19 NN
. 23 .

Or from stdin:

echo "Let us postag this text." | curl -X POST --data-binary @- localhost:12000/postag/opennlp/
Let 0 VB
us 4 PRP
postag 7 VB
this 14 DT
text 19 NN
. 23 .

Components

Stemmers

  • Morpha
  • Snowball
    • Porter
    • Porter2
    • Lovins

Tokenizers

  • OpenNLP
  • Penn Treebank
  • Stanford

Part-of-Speech (POS) Taggers

  • Clear
  • OpenNLP
  • Stanford

Chunkers

  • OpenNLP

Constituency Parsers

  • OpenNLP
  • Stanford

Dependency Parsers

  • MaltParser
  • Stanford
  • ClearParser

Coreference

  • Stanford

Sentence Segmentation (sentencer)

  • OpenNLP
  • Piao

Contributors

More Repositories

1

reverb

Web-Scale Open Information Extraction
Java
541
star
2

openie

Quality information extraction at web scale.
Scala
454
star
3

ollie

Ollie is a open information extractor that uses bootstrapped dependency paths.
Scala
242
star
4

openregex

An efficient and flexible token-based regular expression language and engine.
Java
74
star
5

yelp-dataset-challenge

Information extraction over restaurant reviews for the Yelp Dataset Challenge
Python
28
star
6

chunkedextractor

Extractors whose input is a chunked sentence. Includes Relnoun, Nesty, and a scala interface for ReVerb.
Scala
28
star
7

implie

Implicit relation extractor using a natural language model.
Scala
25
star
8

morpha

Morpha lex stemmer converted using jflex.
Java
22
star
9

srlie

The SRL-based Open IE extractor. A principal component of Open IE 4.0.
Scala
19
star
10

common-scala

The UW's library for common routines in scala.
Scala
13
star
11

taggers

Easily identify and label sentence intervals using various taggers.
Scala
11
star
12

DocOpenIE

Document-level information extraction.
Scala
7
star
13

triplestore-qa

Question answering over a triplestore
Scala
7
star
14

openie-demo

The main Open IE demo.
CSS
6
star
15

MultirFramework

Java
5
star
16

Tac2013EntityLinking

Scala
4
star
17

nlpweb

A demonstration of various NLP tools.
CSS
4
star
18

documentextractor

A web application to process documents into extractions and annotate those extractions.
CSS
4
star
19

common-java

Java
3
star
20

hadoop-clueweb

A collection of Hadoop jobs to process ClueWeb into sentences.
Scala
3
star
21

openregex-scala

A scala wrapper for OpenRegex.
Scala
2
star
22

relgrams

Relgrams -- Tool for computing relational co-occurrences.
Scala
2
star
23

openie-backend

Backend code for the Open IE demo (largely deprecated after Rob's efforts to move Open IE to Paralex).
Scala
2
star
24

UIUCWikifier2013Wrapper

Java
2
star
25

extraction-demo

A project for creating extractions from a list of sentences and providing a demo for exploring Open IE extractions. The primary purpose for this project is for exploration of Open IE in the IARPA project.
CSS
2
star
26

MultirExtractor

Java
1
star
27

clueweb-hadoop

1
star
28

kbp-MultiR

Java
1
star
29

KBP2014-Slotfilling-Multir

Scala
1
star
30

tac2013

locationHelper
Scala
1
star