CoNLL-U format parser for Go language.
For more info, see format specification on Universal Dependencies website
$ go get github.com/bureaucratic-labs/conllu
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]))
}
}