WS4J (WordNet Similarity for Java) provides a pure Java API for several published Semantic Relatedness/Similarity algorithms.
Questions tagged [ws4j]
22 questions
5
votes
1 answer
Sentence Similarity using WS4J
I want to use ws4j to calculate similarity between two sentence.
I am using the Online Demo of WS4J @ WS4J Online demo
I am using the default example sentences given by WS4J.
After entering the sentence and hitting on calculate similarity button, i…

Manish
- 179
- 2
- 11
3
votes
1 answer
How to resolve the difference between the values attained in the Web API and the ones attained through the source in ws4j?
I developed the following API for semantic matching for sentences using ws4j library. But im failing to get the semantic similarities.
The ouptut is attached as an image which shows values which are redundant or 0.
Is there any library which is…

devavrat joshi
- 51
- 5
3
votes
0 answers
how can I get lesk similarity score for all the senses of given words using ws4j library?
I am trying to get LESK similarity score between all the senses of two words using ws4j as provided on its online ws4j demo in the format word#pos#sense number for all the senses of both the words but I am not able to find how to get result in same…

Olaf
- 51
- 3
3
votes
4 answers
ws4j returns infinity for similarity measures that should return 1
I have a very simple code taken from this example, where I am using the Lin, Path and Wu-Palmer similarity measures to compute the similarity between two words. My code is as follows:
import edu.cmu.lti.lexical_db.ILexicalDatabase;
import…

Chthonic Project
- 8,216
- 1
- 43
- 92
2
votes
0 answers
ws4j gave the score 1.3333, for similarity measures that should return return between 0 and 1
The code should calculate the similarity measure of Wu and Palmer that is between 0 and 1, but gave values above 1. I have already researched similar examples, but I did not find the error.
public class WordsSimilarity{
public static void…

PaulDaigle
- 21
- 6
2
votes
0 answers
Wu-Palmer relatedness calculator returns 1.33333 score
I am using WS4j to find the similarity between two words. Also I am using Wu-Palmer relatedness calculator. It is working fine for many words, but when I tried to find the similarity between 'play' and 'playing', it gave the score 1.3333, which is…

hSaim
- 43
- 8
2
votes
1 answer
Semantic matching in ws4j at sentence level
I am currently trying to semantically match two sentences in ws4j. I implemented the concept at a word level but am having trouble implementing the same at a sentence level and get an output in the form of a matrix like it shows on the online demo.…

devavrat joshi
- 51
- 5
2
votes
3 answers
Why ws4j online demo values and source code demo values differ, especially the lesk value?
I am trying to find the similarity between two words (for example "home" and "house") using lesk.
I executed the demo code for finding lesk value given here and I also found the value using online ws4j demo here
Both of them give different values…

smprj
- 63
- 1
- 3
- 9
1
vote
1 answer
Wordnet Similarity 4 Java (WS4J)
I'm working on a project where one of its requirements is to calculate the similarity between words. I'm using WuP measure to calculate the similarity between the words which supposed to return values between [0,1]. The problem is that the jar file…

User505
- 121
- 1
- 9
1
vote
0 answers
Extracting texts and anchors values from the tables using jsoup
Actually, I need to extract the text data and anchors values (link text and URL from ahref) from all the tables for semantic similarity measurments using ws4j. The measurements are required to obtain from webpage with following…

Rim
- 11
- 1
1
vote
1 answer
Java API for Semantic Similarity / Relatedness between two "WORDS"
i need to find out semantic similarity / relatedness between two input words. Following words are similar or related in real world:-
- genuineness, genuine, genuinely, valid, reality, fact, really
- painter, painting, paint
Following is my code…

jaykio77
- 379
- 1
- 7
- 22
1
vote
1 answer
Wordnet ws4j confounding lesk value, iterating over all the synsets
This may be totally normal, but I have ws4j for Java, and I seem to get numbers like "1.7345..." for the lesk measure between two words (when I use the demo code), but on the demo website…

thatandrey
- 287
- 5
- 16
1
vote
4 answers
WordNetSimalarity in large dataset of synsets
I use wordnet similarity java api to measure similarity between two synsets as such:
public class WordNetSimalarity {
private static ILexicalDatabase db = new NictWordNet();
private static RelatednessCalculator[] rcs = {
new…

nawara
- 1,157
- 3
- 24
- 49
0
votes
0 answers
WS Webservice template UnsupportedCallbackException
I am facing an issue with invoking webService template with ws security using keystores and interceptors, it returns
org.apache.wss4j.common.ext.WSSecurityException: Callback supplied no password for:…

Ahmed Hassan
- 29
- 8
0
votes
0 answers
ws4j API : Using for word similarity
I have worked with ws4j api and using in my JAVA program and while using this API in my program it returns classNotFound Exception
I followed this program :…

Kunjan Shah
- 86
- 9