Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OEWN 2023 to index #195

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

### Python Support

* Removed support for Python 3.7
* Added support for Python 3.12
* Removed support for Python 3.7 ([#191])
* Added support for Python 3.12 ([#191])

### Index

* Added `oewn:2023` ([#194])


## [v0.9.4]
Expand Down Expand Up @@ -631,3 +635,5 @@ abandoned, but this is an entirely new codebase.
[#169]: https://github.com/goodmami/wn/issues/169
[#177]: https://github.com/goodmami/wn/issues/177
[#181]: https://github.com/goodmami/wn/issues/181
[#191]: https://github.com/goodmami/wn/issues/191
[#194]: https://github.com/goodmami/wn/issues/194
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ it from PyPI and download some data:

```console
$ pip install wn
$ python -m wn download oewn:2022 # the Open English WordNet 2022
$ python -m wn download oewn:2023 # the Open English WordNet 2023
```

Then start exploring:

```python
>>> import wn
>>> en = wn.Wordnet('oewn:2022') # Create Wordnet object to query
>>> en = wn.Wordnet('oewn:2023') # 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 @@ -73,7 +73,7 @@ use with the Portuguese wordnet [OpenWordnet-PT]).

| Name | Specifier | # Synsets | Notes |
| ------------------------------------------ | ---------------------- | --------: | ----- |
| [Open English WordNet] | `oewn:2022`<br/> `oewn:2021`<br/> `ewn:2020`<br/> `ewn:2019` | 120068<br/>120039<br/>120053<br/>117791 | Recommended<br/>&nbsp;<br/>&nbsp;<br/>&nbsp; |
| [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; |
| [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 2023 [en] Open English WordNet
ic oewn 2022 [en] Open English WordNet
ic oewn 2021 [en] Open English WordNet
ic ewn 2020 [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.2023]
url = """
https://en-word.net/static/english-wordnet-2023.xml.gz
https://github.com/globalwordnet/english-wordnet/releases/download/2023-edition/english-wordnet-2023.xml.gz
"""
[oewn.versions.2022]
url = """
https://en-word.net/static/english-wordnet-2022.xml.gz
Expand Down