# wordnet

<br />

- **Description**:

WordNet is a large lexical database of English. Nouns, verbs, adjectives and
adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a
distinct concept. Synsets are interlinked by means of conceptual-semantic and
lexical relations.

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/wn18)

- **Homepage** :
  <https://wordnet.princeton.edu/>

- **Source code** :
  [`tfds.text.Wordnet`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/text/wordnet.py)

- **Versions**:

  - **`0.1.0`** (default): No release notes.
- **Download size** : `3.99 MiB`

- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  Yes

- **Feature structure**:

    FeaturesDict({
        'lhs': Text(shape=(), dtype=string),
        'relation': Text(shape=(), dtype=string),
        'rhs': Text(shape=(), dtype=string),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| lhs | Text |   | string |   |
| relation | Text |   | string |   |
| rhs | Text |   | string |   |

- **Supervised keys** (See
  [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
  `None`

- **Figure**
  ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):
  Not supported.

## wordnet/WN18 (default config)

- **Config description** : This WORDNET TENSOR DATA consists of a collection of
  triplets (synset, relation_type, triplet) extracted from WordNet 3.0
  (<http://wordnet.princeton.edu>). This data set can be seen as a 3-mode tensor
  depicting ternary relationships between synsets. See
  <https://everest.hds.utc.fr/doku.php?id=en>:transe.

- **Dataset size** : `11.07 MiB`

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 5,000 |
| `'train'` | 141,442 |
| `'validation'` | 5,000 |

- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @article{10.1145/219717.219748,
    author = {Miller, George A.},
    title = {WordNet: A Lexical Database for English},
    year = {1995},
    issue_date = {Nov. 1995},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    volume = {38},
    number = {11},
    issn = {0001-0782},
    url = {https://doi.org/10.1145/219717.219748},
    doi = {10.1145/219717.219748},
    journal = {Commun. ACM},
    month = nov,
    pages = {39--41},
    numpages = {3}
    }

    @incollection{NIPS2013_5071,
    title = {Translating Embeddings for Modeling Multi-relational Data},
    author = {Bordes, Antoine and Usunier, Nicolas and Garcia-Duran, Alberto and Weston, Jason and Yakhnenko, Oksana},
    booktitle = {Advances in Neural Information Processing Systems 26},
    editor = {C. J. C. Burges and L. Bottou and M. Welling and Z. Ghahramani and K. Q. Weinberger},
    pages = {2787--2795},
    year = {2013},
    publisher = {Curran Associates, Inc.},
    url = {http://papers.nips.cc/paper/5071-translating-embeddings-for-modeling-multi-relational-data.pdf}
    }

## wordnet/WN18RR

- **Config description** : Same as WN18 but fixes test leakage through inverse
  relations. See <https://github.com/TimDettmers/ConvE>

- **Dataset size** : `7.02 MiB`

- **Splits**:

| Split | Examples |
|---|---|
| `'test'` | 3,134 |
| `'train'` | 86,835 |
| `'validation'` | 3,034 |

- **Examples** ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @article{10.1145/219717.219748,
    author = {Miller, George A.},
    title = {WordNet: A Lexical Database for English},
    year = {1995},
    issue_date = {Nov. 1995},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    volume = {38},
    number = {11},
    issn = {0001-0782},
    url = {https://doi.org/10.1145/219717.219748},
    doi = {10.1145/219717.219748},
    journal = {Commun. ACM},
    month = nov,
    pages = {39--41},
    numpages = {3}
    }

    @inproceedings{dettmers2018conve,
        Author = {Dettmers, Tim and Pasquale, Minervini and Pontus, Stenetorp and Riedel, Sebastian},
        Booktitle = {Proceedings of the 32th AAAI Conference on Artificial Intelligence},
        Title = {Convolutional 2D Knowledge Graph Embeddings},
        Url = {https://arxiv.org/abs/1707.01476},
        Year = {2018},
            pages  = {1811--1818},
        Month = {February}
    }