syntaxnet-haskell: Working with Google's SyntaxNet output files - CoNLL, Tree

[ library, mit, nlp ] [ Propose Tags ]

Allows to parse SyntaxNet output files in CoNLL or Syntax Tree formats.

[Skip to Readme]




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Dependencies aeson, base (>=4.7 && <5), bytestring, cassava, containers, data-default, haskell-conll, lens, protolude, safe, split, text, text-format, vector [details]
License MIT
Copyright Copyright: (c) 2017 Michal Gajda, Sergey Bushnyak
Author Sergey Bushnyak, Michal Gajda
Category NLP
Home page
Source repo head: git clone
Uploaded by sigrlami at 2017-07-28T18:12:52Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 889 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-07-28 [all 1 reports]

Readme for syntaxnet-haskell-

[back to package description]

Google's SyntaxNet API in Haskell

Build Status

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:

  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 will put into docs folder.


Examples of parsed SyntaxNet inputs are attached.

There are following files there for each test:

  • .txt file contains the input
  • .cnll file contains the SyntaxNet output from script (parsed by the library)
  • .tree file contains the SyntaxNet output from script (if present)


1) stack repl
2) :load src/NLP/SyntaxNet/SyntaxNet.hs 
3) > tr <- readParseTree "test/examples/test1.tree"
4) > drawTree' $ fromJust $ tr
for Testing.