Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/google/sling
SLING - A natural language frame semantics parser
https://github.com/google/sling
frame-semantic-parsing jit-compiler machine-learning natural-language-processing natural-language-understanding neural-network nlp
Last synced: 3 days ago
JSON representation
SLING - A natural language frame semantics parser
- Host: GitHub
- URL: https://github.com/google/sling
- Owner: google
- License: apache-2.0
- Archived: true
- Created: 2017-04-25T10:47:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T21:43:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-07T16:09:04.981Z (15 days ago)
- Topics: frame-semantic-parsing, jit-compiler, machine-learning, natural-language-processing, natural-language-understanding, neural-network, nlp
- Language: C++
- Homepage:
- Size: 5.17 MB
- Stars: 1,930
- Watchers: 112
- Forks: 266
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# SLING - A natural language frame semantics parser
## The SLING Project has moved
The SLING project has moved to https://github.com/ringgaard/sling.
Please refer to the above repo for the latest developments on SLING.
## Background
The aim of the SLING project is to learn to read and understand Wikipedia
articles in many languages for the purpose of knowledge base completion, e.g.
adding facts mentioned in Wikipedia (and other sources) to the
[Wikidata](https://www.wikidata.org) knowledge base.
We use [frame semantics](doc/guide/frames.md) as a common representation for
both knowledge representation and document annotation. The SLING parser can
be trained to produce frame semantic representations of text directly without
any explicit intervening linguistic representation.The SLING project is still work in progress. We do not yet have a full system
that can extract facts from arbitrary text, but we have built a number of the
subsystems needed for such a system.
The SLING frame store is our basic framework for building and manipulating frame
semantic graph structures.
The [Wiki flow pipeline](doc/guide/wikiflow.md) can take a raw dump of Wikidata
and [convert](doc/guide/wikiflow.md#wikidata-import) this into one big frame
graph.
This can be loaded into memory so we can do fast graph traversal for inference
and reasoning over the knowledge base.
The Wiki flow pipeline can also take raw Wikipedia dumps and
[convert](doc/guide/wikiflow.md#wikipedia-import-and-parsing) these into a set
of documents with structured annotations extracted from the Wiki markup. This
also produces [phrase tables](doc/guide/wikiflow.md#name-and-phrase-tables) that
are used for mapping names to entities.
There is a [SLING Python API](doc/guide/pyapi.md) for accessing all this
information and we also have a [bot](python/wikibot) for uploading extracted
facts to Wikidata.## The SLING Parser
The SLING parser is used for annotating text with frame semantic annotations.
It is a general transition-based frame semantic parser using bi-directional
LSTMs for input encoding and a Transition Based Recurrent Unit (TBRU) for output
decoding.
It is a jointly trained model using only the text tokens as input and the
transition system has been designed to output frame graphs directly without any
intervening symbolic representation.![SLING neural network architecture.](./doc/report/network.svg)
The SLING framework includes an efficient and scalable
[frame store](doc/guide/frames.md) implementation as well as a
[neural network JIT compiler](doc/guide/myelin.md) for fast training and
parsing.A more detailed description of the SLING parser can be found in this paper:
* Michael Ringgaard, Rahul Gupta, and Fernando C. N. Pereira. 2017.
*SLING: A framework for frame semantic parsing*. http://arxiv.org/abs/1710.07032.## More information ...
* [Installation and building](doc/guide/install.md)
* [CASPAR frame semantics parser](doc/guide/caspar.md)
* [Semantic frames](doc/guide/frames.md)
* [SLING Python API](doc/guide/pyapi.md)
* [Myelin neural network JIT compiler](doc/guide/myelin.md)
* [Wikipedia and Wikidata processing](doc/guide/wikiflow.md)## Credits
Original authors of the code in this package include:
* Michael Ringgaard
* Rahul Gupta
* Anders Sandholm