Skip to content

Commit

Permalink
Add OEWN 2024 to index (#222)
Browse files Browse the repository at this point in the history
* Fix #221 add OEWN 2024 to index
  • Loading branch information
rayza authored Nov 9, 2024
1 parent 877b626 commit 33d5bdb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased][unreleased]

## Index
* Added `oewn:2024` ([#221])


## [v0.10.1]

Expand Down Expand Up @@ -693,3 +696,4 @@ abandoned, but this is an entirely new codebase.
[#213]: https://github.com/goodmami/wn/issues/213
[#214]: https://github.com/goodmami/wn/issues/214
[#215]: https://github.com/goodmami/wn/issues/215
[#221]: https://github.com/goodmami/wn/issues/221
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ conda install -c conda-forge wn
First, download some data:

```sh
python -m wn download oewn:2023 # the Open # English WordNet 2023
python -m wn download oewn:2024 # the Open English WordNet 2024
```

Now start exploring:

```python
>>> import wn
>>> en = wn.Wordnet('oewn:2023') # Create Wordnet object to query
>>> en = wn.Wordnet('oewn:2024') # Create Wordnet object to query
>>> ss = en.synsets('win', pos='v')[0] # Get the first synset for 'win'
>>> ss.definition() # Get the synset's definition
'be the winner in a contest or competition; be victorious'
Expand Down Expand Up @@ -90,7 +90,7 @@ use with the Portuguese wordnet [OpenWordnet-PT]).

| Name | Specifier | # Synsets | Notes |
| ------------------------------------------ | ---------------------- | --------: | ----- |
| [Open English WordNet] | `oewn:2023`<br/> `oewn:2022`<br/> `oewn:2021`<br/> `ewn:2020`<br/> `ewn:2019` | 120135<br/>120068<br/>120039<br/>120053<br/>117791 | Recommended<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp; |
| [Open English WordNet] | `oewn:2024`<br/> `oewn:2023`<br/> `oewn:2022`<br/> `oewn:2021`<br/> `ewn:2020`<br/> `ewn:2019` | 120630<br/>120135<br/>120068<br/>120039<br/>120053<br/>117791 | Recommended<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp; |
| [OMW English Wordnet based on WordNet 3.0] | `omw-en:1.4` | 117659 | Included with `omw:1.4` |
| [OMW English Wordnet based on WordNet 3.1] | `omw-en31:1.4` | 117791 | |
| [OpenWordnet-EN] | `own-en:1.0.0` | 117659 | Included with `own:1.0.0` |
Expand Down
1 change: 1 addition & 0 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ index. This is helpful to see what is available for downloading.
$ python -m wn projects
ic cili 1.0 [---] Collaborative Interlingual Index
ic oewn 2024 [en] Open English WordNet
ic oewn 2023 [en] Open English WordNet
ic oewn 2022 [en] Open English WordNet
ic oewn 2021 [en] Open English WordNet
Expand Down
5 changes: 5 additions & 0 deletions wn/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
label = "Open English WordNet"
language = "en"
license = "https://creativecommons.org/licenses/by/4.0/"
[oewn.versions.2024]
url = """
https://en-word.net/static/english-wordnet-2024.xml.gz
https://github.com/globalwordnet/english-wordnet/releases/download/2024-edition/english-wordnet-2024.xml.gz
"""
[oewn.versions.2023]
url = """
https://en-word.net/static/english-wordnet-2023.xml.gz
Expand Down

0 comments on commit 33d5bdb

Please sign in to comment.