-
Notifications
You must be signed in to change notification settings - Fork 26
Description
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.