From 11518fa73f86e69beac5326f2981725cd33a3a27 Mon Sep 17 00:00:00 2001 From: amitl Date: Thu, 17 Mar 2016 18:15:46 +0200 Subject: [PATCH] improved readme and code --- README.md | 9 +++++---- main.go | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff34b4c..dfd592e 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,11 @@ Such fun! Download -------- -[here](https://dl.dropboxusercontent.com/u/20957649/wordnet/wordnet.json.gz). +[Here](https://dl.dropboxusercontent.com/u/20957649/wordnet/wordnet.json.gz). -Run ---- +Documentation +------------- -If you'd like to create you own json file, simply run the go file. +This is a [WordNet](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet#WordNet) +struct. diff --git a/main.go b/main.go index dc3eb7e..39c518b 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func main() { checkError(err) fmt.Println("Writing output...") - f, err := os.Open("wordnet.json.gz") + f, err := os.Create("wordnet.json.gz") checkError(err) z := gzip.NewWriter(f) _, err = z.Write(j)