https://github.com/bureaucratic-labs/conllu
CoNLL-U format parser
https://github.com/bureaucratic-labs/conllu
corpus-tools natural-language-processing universal-dependencies
Last synced: 2 months ago
JSON representation
CoNLL-U format parser
- Host: GitHub
- URL: https://github.com/bureaucratic-labs/conllu
- Owner: bureaucratic-labs
- License: mit
- Created: 2017-07-07T19:07:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-08T13:33:35.000Z (over 8 years ago)
- Last Synced: 2025-06-21T03:37:55.893Z (4 months ago)
- Topics: corpus-tools, natural-language-processing, universal-dependencies
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoNLL-U [](https://godoc.org/github.com/bureaucratic-labs/conllu) [](https://travis-ci.org/bureaucratic-labs/conllu) [](https://goreportcard.com/report/github.com/bureaucratic-labs/conllu)
CoNLL-U format parser for Go language.
For more info, see [format specification on Universal Dependencies website](http://universaldependencies.org/format.html)
# Installation
```bash
$ go get github.com/bureaucratic-labs/conllu
```
# Usage
```go
package main
import (
"os"
"fmt"
"bufio"
"github.com/bureaucratic-labs/conllu"
)
func main() {
fd, _ := os.Open('path/to/corpora.conllu')
rd := bufio.NewReader(fd)
sentences, _ := conllu.Parse(rd)
for i := 0; i < count; i++ {
fmt.Println(fmt.Sprintf("%+v", sentences[i]))
}
}
```