Synonyms Generator
Accurecy:
Task:
Filters:
Level:
Lexicons:
POS:
The dataset is a set of 500 synsets (extracted from the Arabic Wordnet).
Each synset is enriched with a list of candidate synonyms. The total
number is 3K candidates. Each candidate synonym is then annotated with a fuzzy
value by four linguists (in parallel). The dataset is important for
understanding how much linguists (dis/)agree on synonymy (which we found
RMSE: 32% and MAE: 27%). In addition, we used the dataset as a baseline to
evaluate our algorithm. See the scoring guidelines, figures, and details in
section 3.
License: MIT
Download: Github.Synonyms
Please email Prof. Mustafa Jarrar
(mjarrar AT birzeit.edu) if you have any question.
Actors | Authenticated user. |
---|---|
URL schema | To extend synonyms: https://{domain}/sina/v2/api/SynonymGenerator/?apikey={key} To evaluate synonyms: https://{domain}/sina/v2/api/EvaluateSynset/?apikey={key} |
Pre-conditions | The user has registered and provided their API Key. |
API Parameters |
Each web service receives Synset, lexicons, POS, and level through the body. The boxes below demonstrate how to utilize these services by code using JavaScript and Python. |
Flow of events |
|
Retrieved Data | For Extend: Return the candidate synonyms with their fuzzy values. For Evaluate: Demonstrate the level of relatedness between the words within the entered synset. |
from urllib.request import Request, urlopen
import json
data = {"synset" :["street","road"], "level" :"2", "task":"DB"}
data = json.dumps(data).encode('utf8')
req = Request(
url="https://ontology.birzeit.edu/sina/v2/api/SynonymGenerator/?apikey=samplekey",
data=data,
headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/json'},
method='POST'
)
webpage = urlopen(req).read()
print(webpage.decode())
from urllib.request import Request, urlopen
import json
data = {"synset" :["street","road"], "level" :"2", "task":"DB"}
data = json.dumps(data).encode('utf8')
req = Request(
url="https://ontology.birzeit.edu/sina/v2/api/EvaluateSynset/?apikey=samplekey",
data=data,
headers={'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/json'},
method='POST'
)
webpage = urlopen(req).read()
print(webpage.decode())
$.ajax({
url: "https://ontology.birzeit.edu/sina/v2/api/SynonymGenerator/?apikey=sampleKey",
data: JSON.stringify({"synset" :["street","road"], "level" :"2", "task":"DB"}),
type: "POST",
success: function (data) {
console.log(data["resp"]);
}
});
$.ajax({
url: "https://ontology.birzeit.edu/sina/v2/api/EvaluateSynset/?apikey=sampleKey",
data: JSON.stringify({"synset" :["street","road"], "level" :"2", "task":"DB"}),
type: "POST",
success: function (data) {
console.log(data["resp"]);
}
});
Sana Ghanem, Mustafa Jarrar, Radi Jarrar, Ibrahim Bounhas:
A Benchmark and Scoring Algorithm for Enriching Arabic Synonyms.
In Proceedings of the Global WordNet Conference (gwc2023), Donostia, January. 2023
PDF -
Slides