diff --git a/html/relnotes.html b/html/relnotes.html index 7e6e945f62a727f360ff422f55e58fcb4dba46d6..20fb1270b3201e64c56200fb4146d0fa78a79fae 100644 --- a/html/relnotes.html +++ b/html/relnotes.html @@ -66,7 +66,15 @@ Currently the development and maintainance of 3 versions continue. <!--h2>Version 3.6 (9xx): xx/02/2009 - Sabai sabai</h2--> -<p><!--Upgraded to JWNL 1.4<br /--> +<p><span style="color: red;">BEWARE:</span> +Upgraded to JWNL 1.4.1rc2 (from 1.3rc3). This is included in the lib + directory. +Hence, it is necessary to use WordNet-3.0 (the jwnl part will not work + anymore with 2.0). +If you want to stay with WordNet-2.0, you need to replace the jwnl.jar + library by the older one and this will work. +</p> +<p> <ul compact="1"> <li><tt>tokenize</tt> has been moved from <tt>JWNLDistances</tt> to <tt>StringDistances</tt> (ling)</li> <li>Added REST interface to the HTML interface (server)</li> diff --git a/lib/jwnl.jar b/lib/jwnl.jar index 5abfd15a7b2a6cc40ee514436ef4740c7c5631d2..650589e353be2334b469d55292b533f10845df10 100644 Binary files a/lib/jwnl.jar and b/lib/jwnl.jar differ diff --git a/test/src/JWNLTest.java b/test/src/JWNLTest.java index 330b0aadc23292855269476c403e6f9cf12d6a31..c0400c9b82067d72c76be98594bea76454d6c56c 100644 --- a/test/src/JWNLTest.java +++ b/test/src/JWNLTest.java @@ -61,7 +61,8 @@ $ java -jar lib/alignwn.jar -D=$WNDIR file://$CWD/examples/rdf/ file://$CWD/exam */ Parameters params = new BasicParameters(); //System.getenv("WNDIR"); - params.setParameter( "wndict", "../WordNet-2.0/dict" ); + //params.setParameter( "wndict", "../WordNet-2.0/dict" ); + params.setParameter( "wndict", "../WordNet-3.0/dict" ); alignment = new JWNLAlignment(); assertNotNull( alignment, "ObjectAlignment should not be null" ); assertEquals( alignment.nbCells(), 0 ); @@ -76,9 +77,9 @@ $ java -jar lib/alignwn.jar -D=$WNDIR file://$CWD/examples/rdf/ file://$CWD/exam alignment.render( renderer ); writer.flush(); writer.close(); - assertEquals( stream.toString().length(), 14040, "Rendered differently" ); + assertEquals( stream.toString().length(), 14027, "Rendered differently" ); alignment.cut( "hard", 0.4 ); - assertEquals( alignment.nbCells(), 38 ); + assertEquals( alignment.nbCells(), 37 ); // Different similarity params.setParameter( "wnfunction", "cosynonymySimilarity" ); @@ -95,11 +96,11 @@ $ java -jar lib/alignwn.jar -D=$WNDIR file://$CWD/examples/rdf/ file://$CWD/exam @Test(groups = { "full", "ling" }) public void routineJWNLDistanceTest() throws Exception { JWNLDistances j = new JWNLDistances(); - j.Initialize( "../WordNet-2.0/dict", "3.0" ); + j.Initialize( "../WordNet-3.0/dict", "3.0" ); - assertEquals( j.compareComponentNames( "French997Guy", "Dutch_Goa77ly" ), .19999999999999998); - assertEquals( j.compareComponentNames( "FREnch997guy21GUIe", "Dutch_GOa77ly." ), .04061624649859944); + assertEquals( j.compareComponentNames( "French997Guy", "Dutch_Goa77ly" ), 0.23684210526315788); + assertEquals( j.compareComponentNames( "FREnch997guy21GUIe", "Dutch_GOa77ly." ), 0.09795918367346938); assertEquals( j.compareComponentNames( "a997c", "77ly."), .0); - assertEquals( j.compareComponentNames( "MSc", "PhD"), .3); + assertEquals( j.compareComponentNames( "MSc", "PhD"), 0.2777777777777778); } }