Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgajda/syntaxnet-haskell
SyntaxNet API in Haskell
https://github.com/mgajda/syntaxnet-haskell
google-syntaxnet haskell pos syntaxnet syntaxnet-api
Last synced: 3 months ago
JSON representation
SyntaxNet API in Haskell
- Host: GitHub
- URL: https://github.com/mgajda/syntaxnet-haskell
- Owner: mgajda
- License: other
- Created: 2017-07-08T19:15:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-04T08:49:15.000Z (over 7 years ago)
- Last Synced: 2024-09-25T21:29:16.205Z (4 months ago)
- Topics: google-syntaxnet, haskell, pos, syntaxnet, syntaxnet-api
- Language: Haskell
- Size: 49.8 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google's SyntaxNet API in Haskell
[![Build Status](https://travis-ci.com/mgajda/syntaxnet-haskell.svg?token=DtSUtnf37TUDy1p4x6fT&branch=master)](https://travis-ci.com/mgajda/syntaxnet-haskell)
Haskell library for using [Google's SyntaxNet](https://github.com/tensorflow/models/tree/master/syntaxnet).
SyntaxNet is natural language parser including:
* Part of Speech tagger,
* syntax tree generator,
* recognition of referential expressions.This API allows:
1. Reading saved SyntaxNet parse tree, POS, or reference assignment from file.
2. Easy manipulation of the parse trees with extra information (given by POS and/or reference assignment.)# Documentation
Documentation will put into [docs](docs/) folder.# Tests
Examples of parsed [SyntaxNet inputs](test/examples/) are attached.There are following files there for each test:
* `.txt` file contains the input
* `.cnll` file contains the SyntaxNet output from `run.sh` script (parsed by the library)
* `.tree` file contains the SyntaxNet output from `demo.sh` script (if present)# Usage
```
1) stack repl
2) :load src/NLP/SyntaxNet/SyntaxNet.hs
3) > tr <- readParseTree "test/examples/test1.tree"
4) > drawTree' $ fromJust $ tr
for Testing.
```# Acknowledgements
- [Michał J. Gajda](https://github.com/mgajda)
- [Sergey Bushnyak](https://github.com/sigrlami)