Giter Club home page Giter Club logo

adw's Introduction

ADW

ADW (Align, Disambiguate and Walk) version 1.0 -- October 13, 2014.

Online demo: http://lcl.uniroma1.it/adw/

CONTENTS

  1. Introduction

  2. Installation

  3. Requirements

  4. Quick start

  5. License

  6. INTRODUCTION =========================

This package provides a Java implementation of ADW, a state-of-the-art semantic similarity approach that enables the comparison of lexical items at different lexical levels: from senses to texts. For more details about the approach please refer to: http://wwwusers.di.uniroma1.it/~navigli/pubs/ACL_2013_Pilehvar_Jurgens_Navigli.pdf

This release version is prepared by Mohammad Taher Pilehvar (Sapienza University of Rome).

  1. INSTALLATION =========================

1- Download the Semantic signatures (for all the 118K concepts in WordNet 3.0, size ~ 1.4 GB) using the following link: http://lcl.uniroma1.it/adw/ppvs.30g.5k.tar.bz2

2- Extract the downloaded file in the directory of your choice.

For example:

/home/username/signatures/

3- Update the wn30g.ppv.path entry in the config/adw.properties file with the directory containing semantic signatures.

For example:

wn30g.ppv.path=/home/username/signatures/ppvs.30g.5k/

4- You are ready to go! To get started, continue reading Quick start.

  1. REQUIREMENTS =========================
  • Java 6 (JRE 1.6) or higher
  • Semantic signatures (see Installation)
  • WordNet 3.0 dictionary files (already included in the resources directory)
  1. QUICK START =========================

The following is a usage example for measuring semantic similarity using ADW.

ADW pipeLine = new ADW();

double score = pipeLine.getPairSimilarity(text1, text2,
    					disMethod, measure,
   						srcTextType, trgTextType); 

Where:

text1 and text2 are the two lexical items to be compared. The types of these lexical items is denoted by srcTextType and trgTextType, respectively. For supported input formats please see 4.1.

disMethod specifies if the pair of lexical items have to be disambiguated or not. In the current version we support:

  • ALIGNMENT_BASED Alignment-based disambiguation (see Pilehvar et al., 2013)
  • NONE No disambiguation

measure denotes the method utilized for comparing pairs of semantic signatures. For supported methods please see 4.2.

For example:

//the two lexical items to be compared
String text1 = "a mill that is powered by the wind";    
String text2 = "windmill.n.1";

//types of the two lexical items
ItemType srcTextType = ItemType.SURFACE;  
ItemType trgTextType = ItemType.WORD_SENSE;

//if lexical items has to be disambiguated
DisambiguationMethod disMethod = DisambiguationMethod.ALIGNMENT_BASED;      

//measure for comparing semantic signatures
SignatureComparison measure = new WeightedOverlap(); 

ADW pipeLine = new ADW();

double similarity = pipeLine.getPairSimilarity(text1, text2,
    				      disMethod, measure,
   					      srcTextType, trgTextType); 
System.out.println(similarity);

4.1 INPUT FORMATS

In this version, we support five different input formats:

  • SURFACE Text in surface form (e.g., A baby is playing with a dog)
  • SURFACE_TAGGED Lemmas with part of speech tags (e.g., baby#n be#v play#n dog#n). We support only four parts of speech: nouns (n), verbs (v), adjectives (a), and adverbs (r).
  • SENSE_KEYS WordNet 3.0 sense keys (e.g., baby%1:18:00:: play%2:33:00:: dog%1:05:00::)
  • SENSE_OFFSETS WordNet 3.0 synset offsets (e.g., 09827683-n 01072949-v 02084071-n)
  • WORD_SENSE WordNet 3.0 Word sense (e.g., baby.n.1 play.v.1 dog.n.1 or baby#n#1 play#v#1 dog#n#1)

4.2 SIGNATURE COMPARISON METHODS

Different signature comparison methods are included (implement the SignatureComparison interface):

  • WeightedOverlap
  • Cosine
  • Jaccard

For details of the above three, please see Pilehvar et al. (2013)

  1. LICENSE =========================

ADW (Align, Disambiguate and Walk) -- A Unified Approach for Measuring Semantic Similarity.

Copyright (c) 2014 Sapienza University of Rome. All Rights Reserved.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you use this system, please cite the following paper:

M. T. Pilehvar, D. Jurgens and R. Navigli. Align, Disambiguate and Walk: A Unified Approach for Measuring Semantic Similarity. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (ACL 2013), Sofia, Bulgaria, August 4-9, 2013, pp. 1341-1351.

For more information please contact:

pilehvar atsign di (dot) uniroma1 (dot) it

For bug reports, fixes and issues please use our github page: https://github.com/pilehvar/ADW

adw's People

Contributors

datawlb avatar pilehvar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adw's Issues

Test results

Hi,
Great project!
When I run the test "testWeightedOverlap" the assertions fail.. (for example - expected:<0.6346> but was:<0.5735252906982333>)
I wondered if the problem is with my configuration or something else..
Thanks!

(minor) Bug found in PairSimilarity.java

In PairSimilarity.java, Method cookLexicalItem() with parameter textType being SURFACE or SURFACE_TAGGED, the for loop is executed for each single word in the text, although 1 time would be enough.

In long texts this results in a really long execution time.

Instead, at case SURFACE or SURFACE_TAGGED, it could just get out of the for loop on execution.

(By comparing 2 texts with ~400 words, this reduces the calculation time from 3min20secs to 35 secs, with the same output.)

java.lang.ClassNotFoundException: it.uniroma1.lcl.jlt.util.EnglishLemmatizer

Hi, when I try to run the code I get the following error message, but the jlt-2.0.0.jar is already added:

Exception in thread "main" java.lang.NoClassDefFoundError: it/uniroma1/lcl/jlt/util/EnglishLemmatizer
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.(TextualSimilarity.java:73)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.getInstance(TextualSimilarity.java:92)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:124)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:292)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:117)
at it.uniroma1.lcl.adw.ADW.demo(ADW.java:147)
at it.uniroma1.lcl.adw.ADW.main(ADW.java:192)
Caused by: java.lang.ClassNotFoundException: it.uniroma1.lcl.jlt.util.EnglishLemmatizer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more

Minor bug

I fixed it locally, but thought that you may also want to know that in some cases (for example when the word c# or f# appears in the text) the call "if(allWordNetEntries.get(tag).contains(word))" in "isOOV", throws nullPointer due to null value of "allWordNetEntries.get(tag)".

Null Pointer Exception when trying to run.

Is there any resource I am missing.

Apr 07, 2017 12:11:42 AM it.uniroma1.lcl.adw.ADWConfiguration
INFO: Loading adw.properties FROM /home/raghuram/eclipse/workspace/PEAK/config/adw.properties
Apr 07, 2017 12:11:42 AM it.uniroma1.lcl.jlt.Configuration
INFO: Loading jlt.properties FROM /home/raghuram/eclipse/workspace/PEAK/config/jlt.properties
java.lang.RuntimeException: Cannot init: java.lang.NullPointerException
at it.uniroma1.lcl.jlt.pipeline.stanford.StanfordPOSTagger.(StanfordPOSTagger.java:39)
at it.uniroma1.lcl.jlt.pipeline.stanford.StanfordPOSTagger.getInstance(StanfordPOSTagger.java:45)
at it.uniroma1.lcl.jlt.pipeline.stanford.DataProcessor.processSentence(DataProcessor.java:87)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.getStanfordSentence(TextualSimilarity.java:114)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.cookSentence(TextualSimilarity.java:252)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:119)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123)
at model1.step1.step1(step1.java:263)
at model1.model1.main(model1.java:9)
java.lang.NullPointerException
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:120)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123)
at model1.step1.step1(step1.java:263)
at model1.model1.main(model1.java:9)
Exception in thread "main" java.lang.NullPointerException
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123)
at model1.step1.step1(step1.java:263)
at model1.model1.main(model1.java:9)

What version of Stanford Parser did you use in ADW project?

Hi - I am using your adw.v1.0.jar file in my project to compute the similarity score. Already in my work I used Stanford parser version 3.5.2. I guess in your jar file you bundled up with some version of stanford parser as well. Can you please let me know that version ? It will help me to fix the bugs I get because of version clash. Kind request and thanks!.

Execution gives exception

I followed the instructions given and tried to run the source in Netbeans. But got these exceptions.

cd /home/ritual/SK/Works/SemEval_Task_3/ADW_tool/ADW-master; JAVA_HOME=/home/ritual/jdk1.8.0_60 /home/ritual/netbeans-8.0.2/java/maven/bin/mvn "-Dexec.args=-classpath %classpath it.uniroma1.lcl.adw.ADW" -Dexec.executable=/home/ritual/jdk1.8.0_60/bin/java -Dexec.classpathScope=runtime org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...

Some problems were encountered while building the effective model for ADW:ADW:jar:0.0.1-SNAPSHOT
'dependencies.dependency.systemPath' for in-project:jlt:jar should not point at files within the project directory, ${basedir}/lib/jlt-2.0.0.jar will be unresolvable by dependent projects @ line 38, column 16

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.


Building ADW 0.0.1-SNAPSHOT

--- exec-maven-plugin:1.2.1:exec (default-cli) @ ADW ---
Oct 28, 2015 6:37:34 PM it.uniroma1.lcl.adw.ADWConfiguration
INFO: Loading adw.properties FROM /home/ritual/SK/Works/SemEval_Task_3/ADW_tool/ADW-master/config/adw.properties
Exception in thread "main" java.lang.NoClassDefFoundError: it/uniroma1/lcl/jlt/util/EnglishLemmatizer
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.(TextualSimilarity.java:73)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.getInstance(TextualSimilarity.java:92)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:148)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:293)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:120)
at it.uniroma1.lcl.adw.ADW.main(ADW.java:213)
Caused by: java.lang.ClassNotFoundException: it.uniroma1.lcl.jlt.util.EnglishLemmatizer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 6 more

BUILD FAILURE

Total time: 0.900s
Finished at: Wed Oct 28 18:37:35 CDT 2015

Final Memory: 8M/479M

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project ADW: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Thread safe?

Great tool! Very accurate!

Is AWD.getPairSimilarity thread safe? I am running into weird exceptions when I try concurrent calls

ADWTest Failed

I imported the project as a maven project. And ran the mvn test task,

Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.956 sec <<< FAILURE!
testWeightedOverlap(it.uniroma1.lcl.adw.ADWTest)  Time elapsed: 2.65 sec  <<< FAILURE!
java.lang.AssertionError: expected:<0.5735> but was:<0.0>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:494)
        at org.junit.Assert.assertEquals(Assert.java:592)
        at it.uniroma1.lcl.adw.ADWTest.testWeightedOverlap(ADWTest.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

testCosine(it.uniroma1.lcl.adw.ADWTest)  Time elapsed: 0.248 sec  <<< FAILURE!
java.lang.AssertionError: expected:<0.5078> but was:<0.0>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:494)
        at org.junit.Assert.assertEquals(Assert.java:592)
        at it.uniroma1.lcl.adw.ADWTest.testCosine(ADWTest.java:154)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

ppvs.30g.5k.tar.bz2 auto generation for complete Wordnet DB

Hello,
Is there any tool available to generate the pvs.30g.5k.tar.bz2(http://lcl.uniroma1.it/adw/ppvs.30g.5k.tar.bz2) automatically from the wordnet3.0 DB?

As per the ukb tool(http://ixa2.si.ehu.es/ukb/), input context file is required to generate the ppv files.
ukb_2.2.tgz/src/README.txt provides information about the manual creation of Input context file that is used for generation of each ppv file.

Also, is there any source code reference to library file ADW/lib/Jit.-2.0.0.jar and related papers for generating the ppv files for the whole wordnet without any context information ?

Kindly let us know. Thanks.

Could not init TSPipeline: 'alignmentVecSize' doesn't map to an existing object

Normally ADW work properly but When I call from servlet that time i face error ..........

public static double computeSemanticSimilarity_WeightedOverlap(String text1, String text2) {

	ADW pip = new ADW();

    ItemType text1Type = ItemType.SURFACE;

    ItemType text2Type = ItemType.SURFACE;
    
    DisambiguationMethod disMethod = DisambiguationMethod.NONE;
    
    SignatureComparison measure1 = new WeightedOverlap();
    
    double score1 = pip.getPairSimilarity(
            text1, text2,
            disMethod, 
            measure1,
            text1Type, text2Type);
    
    return score1;

}

Type Exception Report

Message Could not init TSPipeline: 'alignmentVecSize' doesn't map to an existing object

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.RuntimeException: Could not init TSPipeline: 'alignmentVecSize' doesn't map to an existing object
it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getInstance(PairSimilarity.java:75)
it.uniroma1.lcl.adw.ADW.(ADW.java:25)
adw.AdeNER.computeSemanticSimilarity_WeightedOverlap(AdeNER.java:12)
adw.AdeNER.read(AdeNER.java:37)
adw.test.doPost(test.java:27)
javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Note The full stack trace of the root cause is available in the server logs.

akka multi threading error

hello, I think this is a very useful tools, thank you very much!
but, I have a question, when I try to add it to akka multi threading, there is a error.
I think "lemmatize"(StanfordLemmatizer.java:30) maybe also need to be singleton, so I change it as singleton, it works.(Morphology.stemStatic => Morphology.stemStaticSynchronized)

error:
[ERROR] [04/10/2016 10:30:52.167] [System-akka.actor.default-dispatcher-15] [akka.actor.LocalActorRefProvider(akka://System)] guardian failed, shutting down system
java.lang.Error: Error: could not match input
at edu.stanford.nlp.process.Morpha.zzScanError(Morpha.java)
at edu.stanford.nlp.process.Morpha.next(Morpha.java)
at edu.stanford.nlp.process.Morphology.lemmatize(Morphology.java:155)
at edu.stanford.nlp.process.Morphology.stemStatic(Morphology.java:182)
at it.uniroma1.lcl.adw.utils.StanfordLemmatizer.lemmatize(StanfordLemmatizer.java:30)
at it.uniroma1.lcl.adw.utils.StanfordLemmatizer.lemmatize(StanfordLemmatizer.java:36)
at it.uniroma1.lcl.adw.utils.SentenceProcessor.processSentence(SentenceProcessor.java:40)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.getStanfordSentence(TextualSimilarity.java:128)
at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.cookSentence(TextualSimilarity.java:266)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:124)
at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:308)
at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:120)
at main.scala.org.qa.SemanticSimilarityAdwWorker$$anonfun$receive$1.applyOrElse(SemanticSimilarityAdw.scala:33)
at akka.actor.Actor$class.aroundReceive(Actor.scala:480)
at main.scala.org.qa.SemanticSimilarityAdwWorker.aroundReceive(SemanticSimilarityAdw.scala:26)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.