own-pt / openWordnet-PT

OpenWordnet-PT: an open access wordnet for Portuguese
http://openwordnet-pt.org
Other
154 stars 35 forks source link

lemma property #170

Closed arademaker closed 3 years ago

arademaker commented 3 years ago

We found wordsenses and words with lemma

select *
{
  ?a wn30:lemma ?v1 .
  ?a rdfs:label ?v2 .
  filter (?v1 != ?v2) 
}

and

select *
{
  ?a wn30:lemma ?v1 .
  ?a wn30:lexicalForm ?v2 .
  filter (?v1 != ?v2) 
}
  1. toda word/wordsense em EN tem lemma?
  2. quais as diferenças entre lemma e lexicalForm e lemma/label ? apenas upcase?
arademaker commented 3 years ago

considerando que a consulta abaixo não trouxe resultado,

select *
{
  ?a wn30:lemma ?v1 .
  ?a wn30:lexicalForm ?v2 .
  filter (lcase(?v1) != lcase(?v2) )
}

podemos apagar todos as triplas do predicado wn30:lemma que ocorre em wordsenses e words.

fredsonaguiar commented 3 years ago

Em 4ee848e removemos os lemmas através de uma ação de reparação. Ver #171 e https://github.com/FredsoNerd/py-ownpt/blob/3ab0a5ac80ed988da4a3eeecd21f9b958832f174/pyownpt/repair.py#L62-L74