Description
Working with Google's SyntaxNet output files - CoNLL, Tree.
Description
Allows to parse SyntaxNet output files in CoNLL or Syntax Tree formats.
README.md
Google's SyntaxNet API in Haskell
Haskell library for using Google's SyntaxNet. SyntaxNet is natural language parser including:
- Part of Speech tagger,
- syntax tree generator,
- recognition of referential expressions.
This API allows:
- Reading saved SyntaxNet parse tree, POS, or reference assignment from file.
- Easy manipulation of the parse trees with extra information (given by POS and/or reference assignment.)
Documentation
Documentation will put into docs folder.
Tests
Examples of parsed SyntaxNet inputs are attached.
There are following files there for each test:
- .txtfile contains the input
- .cnllfile contains the SyntaxNet output from- run.shscript (parsed by the library)
- .treefile contains the SyntaxNet output from- demo.shscript (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.