Comments (2)
How do we go about this? By filter do you mean adding search functionality to the documentation page? And also how do we know the relations that are not used by a particular Wordnet and also what should be the first thing a user sees when he opens the documentation page?
from gwadoc.
One way to do it is to define CSS classes like the following:
.hidden {
display: none;
}
Then we define which relations are part of which wordnet:
supported_relations = {
"pwn": ["hypernym", "instance_hypernym", "hyponym", ...],
"plwn": [...],
"wnja": [...],
...
}
Then when a user selects some wordnet (through a combobox on the page, or a URL parameter, or something), a Javascript function goes through each <article>
and adds the .hidden
class if the relation is not part of the selected wordnet. If no wordnet is selected (the default), all relations are shown.
Something like that.
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.