Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0f790731 authored by Jérôme Pierson's avatar Jérôme Pierson
Browse files

*** empty log message ***

parent 66febcc3
No related branches found
No related tags found
No related merge requests found
......@@ -119,14 +119,14 @@ public class JWNLAlignmentTest extends DistanceAlignment implements AlignmentPro
for ( j=0; j<nbprop2; j++ ){
cl = (OWLProperty)proplist2.get(j);
if(cl.getURI().getFragment()!=null){st2 = cl.getURI().getFragment().toLowerCase() ;}
propmatrix[i][j] = Dist.CompleteDistance(st1,st2);
propmatrix[i][j] = Dist.SynonymDistance(st1,st2);
}
}
if (debug > 0) System.err.println("Initializing class distances");
for ( i=0; i<nbclass1; i++ ){
OWLClass cl = (OWLClass)classlist1.get(i);
for ( j=0; j<nbclass2; j++ ){
classmatrix[i][j] = Dist.CompleteDistance(
classmatrix[i][j] = Dist.SynonymDistance(
cl.getURI().getFragment().toLowerCase(),
((OWLClass)classlist2.get(j)).getURI().getFragment().toLowerCase());
}
......
......@@ -312,7 +312,7 @@ private String[] GetAllSyno(String S){
boolean trouve=false;
int strcomp=0;
nbmot=CountMaxSens(S);
nbmot=CountMaxSensSyno(S);
Syno=new String[nbmot];
//Looking for word as a NOUN
try { index = Dictionary.getInstance().lookupIndexWord(POS.NOUN,S);}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment