add a check function
See original GitHub issueI would like to add a module (check.py) that checks for various issues with a wordnet. The goal is to help developers avoid producing wordnets with structural problems. It would duplicate some of the functionality of the validate.py
in the
https://github.com/globalwordnet/english-wordnet/ and the checks of the https://github.com/globalwordnet/OMW but make them more widely available.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Add a check box or option button (Form controls)
To add a check box, click the Developer tab, click Insert, and under Form Controls, click · Click in the cell where you...
Read more >SQL CHECK Constraint - W3Schools
The CHECK constraint is used to limit the value range that can be placed in a column. If you define a CHECK constraint...
Read more >Custom function with check constraint SQL Server 2008
CREATE FUNCTION dbo. ... WHERE venue_id = @venue_id RETURN @retval END; GO ALTER TABLE events ADD CONSTRAINT chkVenueCapacity CHECK (dbo.
Read more >How to Insert Checkbox in Excel (Easy Step-by-Step Guide)
Go to Developer Tab –> Controls –> Insert –> Form Controls –> Check Box. · Click anywhere in the worksheet, and it will...
Read more >How to insert a tick symbol (checkmark) in Excel - Ablebits
How to insert tick in Excel using the CHAR function. Perhaps it's not a conventional way to add a tick or cross symbol...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would have been hesitant, initially, as this kind of operation is probably only useful for wordnet authors, but there have been many easy-to-detect-if-you-know-what-to-look-for kind of issues with some wordnets of late, so it makes sense to make the tests easy to run. It would be useful if each test could be run individually. It would also be useful if the tests could be run from the command line.
Here’s an initial list of tests:
s
on a synset impliesa
on the member)Some simple things are already checked by
wn.lmf
or when adding a lexicon to the database:n
,v
,a
,r
, ands
(currently a warning is issued when reading the XML file)wn.lmr
throws an error if not)Some things are not checked at this level but should be:
s
Feel free to add more checks.
After recent discussions I’m starting to have a nagging idea that this should be a separate package. There are some benefits: