How to find the depth of a word in Wordnet with JWNL - root

I am using JWNL library to access the Wordnet lexical database. I am trying to find the similarity between two words and for that I need to find the depth of a word from the root. I am a newbie to Wordnet and can someone please provide instructions to acquire depth of a word as mentioned above

http://web.stanford.edu/class/archive/cs/cs276a/cs276a.1032/projects/docs/jwnl/javadoc/
Hope this helps.
If you want the ready-made similarity between two words, i suggest to use WS4j library. Many methods are implemented in it.

Related

How to modify or edit the vosk dictionary?

I'm using vosk for speech recognition. Does anyone know where the vocabulary dictionary is located and how to edit it to add or remove words?
Some Background on my project:
I'm working on a Linguistic AI project. I needed a speech recognition engine to convert spoken words into text. I started using CMUSphinx. PocketSphinx to be more precise. I like pocketsphinx but I was told that it is obsolete and that vosk is much better. However, pocketsphinx is very easy to use in terms of creating dictionaries from scratch and switching between different dictionaries on the fly programmatically.
I'm trying to move over to vosk as a speech recognizer. And it does seem to decode speech much fast and more accurately. But thus far I haven't been able to find any information on how to modify the vocabulary dictionary. The ability to modify the contents of the dictionary is of paramount importance in my Linguistic AI project. So if anyone can point to information of how to modify the vosk dictionary I would be very grateful. Thus far I haven't been able to find any information on how to do this. There is very little information on vosk to be found, especially in the way of tutorials or detailed instructions.
Thank you.
Edited to Add:
Here's the GitHub page for the vosk API that I'm referring to:
https://github.com/alphacep/vosk-api

How to query ifc files?

I'm working on a project with BIM for my education and I want to extract data from ifc files.
The idea is to find information like finding floors with a specific height, shape and structure, then I would like to run pathfinding algorithms.
I can't find any document describing and comparing all possibilities...
I found some ways to query but most of them seems abandoned and others have drawbacks, here is what I have:
BIMQL : no activity since 2017
QL4BIM : no activity
SPARQL : no comparison operators
BIMServer query language : requires to run a server
IFC++ : lack of documentation
I don't mind if the query language structure ( even if json would be awesome ).
Don't know about pathfinding, but did you look at xBIM?
It has documentation, examples and a viewer, so you can explore objects/hierarchy.
Refer to the above BIM_POC , this should help you.
IF you have some programming knowledge/experience, I suggest IfcOpenShell for all sorts of query and data extraction from ifc file.

Use of semantic vectors

I want to use the semanticvectors API. I am completely new at this. I want to make a program which takes some documents and searches keywords and returns the documents which are conceptually similar to the search keywords. I want to know if there is any document from which I can get all the function and their functionality description and from which I can learn or if there is any example to do so.
I have checked
https://code.google.com/p/semanticvectors/
and
http://semanticvectors.googlecode.com/svn/javadoc/latest-stable/index.html
but couldn't understand anything. Please help me. Thank you.
It is not clear what you want to do with SemanticVectors. Here is where you should start off with:
https://code.google.com/p/semanticvectors/wiki/InstallationInstructions
And for specific questions, it would be fruitful if you ask on project's forum itself:
https://groups.google.com/forum/?fromgroups#!forum/semanticvectors

English dictionary needed for a word game

I'm looking for a way to include a full blown English dictionary in an iPhone app (a word game), the database must be able to include all conjugation possibilities for verbs, must include singular and plural spellings. So my app can query the database to check if the spelling is correct.
Is there a free or commercial database that would include those data?
You can use UITextChecker for spell-checking.
Regarding a dictionary, when I built an iOS dictionary library sometime ago (www.lexicontext.com) I used WordNet. WordNet contains a lot of interesting semantic info ...
NSSpellChecker is your easiest option, but it might be more complete to use the online Scrabble official dictionary as well and check it against both (only one match required.)
You could do a web-service request using http://www.hasbro.com/scrabble/en_US/search.cfm
http://www.a2zwordfinder.com/cgi-bin/scrabble.cgi?Letters=&Pattern=______&MatchType=Exactly&MinLetters=3&SortBy=Alpha&SearchType=Scrabble
Change min letters to get different results
The best place to find a database for a spell-checker is probably a free text processing application. So, I'd try with Open Office version of Word. Download it, install it and simply find the dictionary file.
Open Office is licensed under LGPL, so it should be fine, just check if the licence covers the data as well (i.e. the dictionary file).
Maybe this English corpus helps: http://www.wordfrequency.info/free.asp

Where can I obtain dictionary files for use in checking spelling?

I thought this was asked before, but 15 minutes of searching on Google and the site search didn't turn anything up...so:
Where can I obtain free (as in beer and/or as in speech) dictionary files? I'm mainly interested in English, but if you know of any dictionary files, please point them out.
Note: This question doesn't have a right/wrong answer, so I made it community-wiki. However, I feel that it might be valuable to not only myself, but anyone who wishes to implement or use a spell checker with various dictionary files.
I have found a SourceForge project called Word List, which appears to have a number of dictionaries. I have downloaded a couple and am currently checking them out.
On Linux you can look in places like /usr/share/dict/words
I would presume that OpenOffice contains dictionaries for several languages.
I don't know what your target platform is but here is a solution that is for VB.NET. It uses the Office libraries which Office in itself isn't free but if your users are all internal and have Office then you could leverage these libs. There is a zip file with the example source code you can download as well.
Check spelling and grammar
There is what appears to be a half-decent dictionary available for free here on CodeProject.com (registration required unfortunately).

Resources