-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
50 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Tools for Working with Open English WordNet | ||
# Tools for Working with Open English Wordnet | ||
|
||
## English WordNet Editor | ||
## English Wordnet Editor | ||
|
||
This tool is a command-line editor for English WordNet. It allows you to add, delete, and modify synsets, words, and relations in English WordNet. It is written in Python and uses the `nltk` library to interact with WordNet. The tool is available on GitHub at https://github.com/jmccrae/ewe | ||
This tool is a command-line editor for English Wordnet. It allows you to add, delete, and modify synsets, words, and relations in English Wordnet. It is written in Python and uses the `nltk` library to interact with Wordnet. The tool is available on GitHub at https://github.com/jmccrae/ewe | ||
|
||
## WN Python Library | ||
|
||
This is a Python library for working with WordNet. It provides a simple interface for querying WordNet and accessing synsets, words, and relations. The library is available on GitHub at https://github.com/goodmami/wn | ||
This is a Python library for working with Wordnet. It provides a simple interface for querying Wordnet and accessing synsets, words, and relations. The library is available on GitHub at https://github.com/goodmami/wn | ||
|
||
## OEWN-CORE Python Library | ||
|
||
This is a Python core IO library for Open English WordNet. It provides a simple, stripped-down OEWN model, loaded from YAML, that can be saved to the same format. Extension supports XML for loading and saving. The library is available on GitHub at https://github.com/oewntk/oewn-core | ||
This is a Python core IO library for Open English Wordnet. It provides a simple, stripped-down OEWN model, loaded from YAML, that can be saved to the same format. Extension supports XML for loading and saving. The library is available on GitHub at https://github.com/oewntk/oewn-core | ||
|
||
## OEWNTK Kotlin Library | ||
|
||
This is a Kotlin library for Open English WordNet. It provides a (JVM) OEWN model and a number of modules for loading or saving it notably to WNDB, SQL (Sqlite and MySql) and JSON formats. The library is available on GitHub at https://github.com/oewntk/oewntk. Binaries are available on [Maven Central](https://central.sonatype.com/namespace/io.github.oewntk). | ||
This is a Kotlin library for Open English Wordnet. It provides a (JVM) OEWN model and a number of modules for loading or saving it notably to WNDB, SQL (Sqlite and MySql) and JSON formats. The library is available on GitHub at https://github.com/oewntk/oewntk. Binaries are available on [Maven Central](https://central.sonatype.com/namespace/io.github.oewntk). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,7 +174,7 @@ def load(year="2022"): | |
""" | ||
Load wordnet from YAML files | ||
""" | ||
wn = Lexicon("oewn", "Open Engish WordNet", "en", | ||
wn = Lexicon("oewn", "Open Engish Wordnet", "en", | ||
"[email protected]", | ||
"https://creativecommons.org/licenses/by/4.0", | ||
year, | ||
|
@@ -220,9 +220,9 @@ def load(year="2022"): | |
for synset in wn.synsets: | ||
if synset.lex_name not in by_lex_name: | ||
by_lex_name[synset.lex_name] = Lexicon( | ||
"oewn", "Open English WordNet", "en", | ||
"oewn", "Open English Wordnet", "en", | ||
"[email protected]", "https://wordnet.princeton.edu/license-and-commercial-use", | ||
"2019", "https://github.com/globalwordnet/english-wordnet") | ||
year, "https://github.com/globalwordnet/english-wordnet") | ||
by_lex_name[synset.lex_name].add_synset(synset) | ||
|
||
return wn | ||
|
@@ -369,7 +369,7 @@ def main(): | |
year = "2024" | ||
wn = load(year) | ||
with codecs.open("wn.xml", "w", "utf-8") as outp: | ||
wn.to_xml(outp, True) | ||
wn.to_xml(outp) | ||
|
||
|
||
if __name__ == "__main__": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters