Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6c83faf16 | ||
|
|
2a81851fce | ||
|
|
9751fae875 | ||
|
|
b7f8af8217 | ||
|
|
dca700b619 | ||
|
|
4815e5b9ad | ||
|
|
b7cc2953b7 | ||
|
|
49a83bba10 | ||
|
|
b63ef7f3ea | ||
|
|
fd9b9664c5 |
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
Copyright (c) 2015-2016 Amit Lavon
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -1,12 +1,27 @@
|
|||||||
WordNet in JSON Format
|
WordNet in JSON Format
|
||||||
======================
|
======================
|
||||||
|
|
||||||
Such fun!
|
The [WordNet](http://wordnet.princeton.edu) dataset is provided in a format that requires dedicated parsing routines. [JSON](https://en.wikipedia.org/wiki/JSON#Example) is a universal data format, that is supported across various programming languages.
|
||||||
|
|
||||||
|
**Using JSON, anyone can import and use WordNet dataset with ease.**
|
||||||
|
|
||||||
|
Version
|
||||||
|
-------
|
||||||
|
|
||||||
|
This dataset was built from version 3.1 of the [WordNet data files](https://wordnet.princeton.edu/download/current-version).
|
||||||
|
|
||||||
|
Citation
|
||||||
|
--------
|
||||||
|
|
||||||
|
This dataset is based on: Princeton University "About WordNet." WordNet.
|
||||||
|
Princeton University. 2010. http://wordnet.princeton.edu
|
||||||
|
|
||||||
|
Please cite them if you use this dataset.
|
||||||
|
|
||||||
Download
|
Download
|
||||||
--------
|
--------
|
||||||
|
|
||||||
[Here](https://dl.dropboxusercontent.com/u/20957649/data/wordnet.json.gz).
|
See [releases](https://github.com/fluhus/wordnet-to-json/releases).
|
||||||
|
|
||||||
File Structure
|
File Structure
|
||||||
--------------
|
--------------
|
||||||
@@ -17,10 +32,13 @@ An entire WordNet database.
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|
|
||||||
* **Synset** (map to [Synset](#synset)) from synset ID to synset object.
|
* **synset** (map to [Synset](#synset)) from synset ID to synset object.
|
||||||
* **Lemma** (map to string array) from pos.lemma to synset IDs that contain it.
|
* **lemma** (map to string array) from pos.lemma to synset IDs that contain it.
|
||||||
* **Exception** (map to string array) from exceptional word to its forms.
|
* **lemmaRanked** (map to string array) like Lemma but synsets are ordered from the
|
||||||
* **Example** (map to string) from example ID to sentence template.
|
most frequently used to the least. Only a subset of the synsets are ranked, so
|
||||||
|
LemmaRanked has less synsets.
|
||||||
|
* **exception** (map to string array) from exceptional word to its forms.
|
||||||
|
* **example** (map to string) from example ID to sentence template.
|
||||||
|
|
||||||
#### Synset
|
#### Synset
|
||||||
|
|
||||||
@@ -28,12 +46,18 @@ A set of synonymous words.
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|
|
||||||
* **Pos** (string) part of speech - a, n, r, s, v.
|
* **offset** (int) synset offset in the raw data file, also used as an identifier.
|
||||||
* **Word** (string array) words in this synset
|
* **pos** (string) part of speech:
|
||||||
* **Pointer** ([Pointer](#pointer) array) pointers to other synsets.
|
* a: adjective
|
||||||
* **Frame** ([Frame](#frame) array) sentence frames for verbs.
|
* n: noun
|
||||||
* **Gloss** (string) lexical definition.
|
* r: adverb
|
||||||
* **Example** ([Example](#example) array) usage examples for words in this synset. Verbs only.
|
* s: satellite
|
||||||
|
* v: verb
|
||||||
|
* **word** (string array) words in this synset.
|
||||||
|
* **pointer** ([Pointer](#pointer) array) pointers to other synsets.
|
||||||
|
* **frame** ([Frame](#frame) array) sentence frames for verbs.
|
||||||
|
* **gloss** (string) lexical definition.
|
||||||
|
* **example** ([Example](#example) array) usage examples for words in this synset. Verbs only.
|
||||||
|
|
||||||
#### Pointer
|
#### Pointer
|
||||||
|
|
||||||
@@ -41,11 +65,11 @@ Denotes a semantic relation between one synset/word to another.
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|
|
||||||
* **Symbol** (string) relation between the 2 words. Target is \<symbol\> to source. See their meanings
|
* **symbol** (string) relation between the 2 words. Target is \<symbol\> to source. See their meanings
|
||||||
[here](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet#pkg-constants).
|
[here](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet#pkg-constants).
|
||||||
* **Synset** (string) target synset ID.
|
* **synset** (string) target synset ID.
|
||||||
* **Source** (int) index of word in source synset, -1 for entire synset.
|
* **source** (int) index of word in source synset, -1 for entire synset.
|
||||||
* **Target** (int) index of word in target synset, -1 for entire synset.
|
* **target** (int) index of word in target synset, -1 for entire synset.
|
||||||
|
|
||||||
#### Frame
|
#### Frame
|
||||||
|
|
||||||
@@ -53,8 +77,8 @@ Links a synset word to a generic phrase that illustrates how to use it. Applies
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|
|
||||||
* **WordNumber** (int) index of word in the containing synset, -1 for entire synset.
|
* **wordNumber** (int) index of word in the containing synset, -1 for entire synset.
|
||||||
* **FrameNumber** (int) frame number on the WordNet site.
|
* **frameNumber** (int) frame number on the WordNet site.
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
@@ -62,22 +86,20 @@ Links a synset word to an example sentence. Applies to verbs only.
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|
|
||||||
* **WordNumber** (int) index of word in the containing synset, -1 for entire synset.
|
* **wordNumber** (int) index of word in the containing synset, -1 for entire synset.
|
||||||
* **TemplateNumber** (int) tumber of template in the [WordNet](#wordnet).Example field.
|
* **templateNumber** (int) tumber of template in the [WordNet](#wordnet).Example field.
|
||||||
|
|
||||||
Go API
|
Go API
|
||||||
------
|
------
|
||||||
|
|
||||||
If you are working with Go, I encourage you to skip this JSON file and work
|
If you are working with Go, I encourage you to skip this JSON file and work
|
||||||
directly with the [Go API](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet).
|
directly with the [Go API](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet).
|
||||||
This JSON dump is simply a serialized
|
This JSON dump is simply a marshaled
|
||||||
[WordNet](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet#WordNet)
|
[WordNet](https://godoc.org/github.com/fluhus/gostuff/nlp/wordnet#WordNet)
|
||||||
struct.
|
struct.
|
||||||
|
|
||||||
Citation
|
Having Trouble?
|
||||||
--------
|
---------------
|
||||||
|
|
||||||
This dataset is based on: Princeton University "About WordNet." WordNet.
|
If you have any issues, questions, or comments - feel free to share them on the
|
||||||
Princeton University. 2010. http://wordnet.princeton.edu
|
[issues](https://github.com/fluhus/wordnet-to-json/issues) section.
|
||||||
|
|
||||||
Please cite them if you use this dataset.
|
|
||||||
Reference in new issue
Block a user