Comments (2)
I think we might leave it as a python dictionary for the moment, and concentrate on using and extending it.
Converting to TOML looks like it may make it easier to edit down the road.
from gwadoc.
For now I've settled on having data structures that behave like dictionaries or classes in that they allow for both key-lookup (e.g. rels['hypernym']['name']['en']
) and dot-access (rels.hypernym.name.en
). The former is useful when you have the relation or property name in a variable and prefer rels[relation]
over getattr(rels, relation)
while the latter is much simpler and makes editing the file easier. I also made the data structures raise errors on invalid keys/attributes and defined inventories of valid relations, forms, projects, languages, etc., in order to reduce errors caused by simple typos.
I'll leave this issue open as a feature request for future versions.
from gwadoc.
Related Issues (20)
- Clarify the description of underspecified relations HOT 5
- Suppress empty fields HOT 4
- Create Documentations for Constitutive, Instance Hyponym, Instance Hypernym, Antonym, Equal Synonym,Similar HOT 3
- Create documentation for Co-role relation groups and the last three HOT 3
- Create documentation for Other and it's sub-members
- Contributing HOT 2
- Create the Overview section HOT 1
- Add some new relations HOT 12
- Add link to short examples
- Open Wordnet Documentation website redesign HOT 3
- Change symbol from a LANGUAGE to a PART HOT 1
- Change master branch to main
- schemas vs gwadoc
- Create Chinese documentation
- Do we mean syntactic or semantic diminutives? HOT 2
- "hammer classifies teapot" HOT 4
- Inconsistencies for Meronymy/Holonymy HOT 3
- No inverse relation for similar/near_synonym (i.e. near_antonym) HOT 3
- is_entailed_by showing incorrect reversed relation HOT 1
- Hyponym example is wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwadoc.