Skip to content

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

@taniakhan18

Description

@taniakhan18

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions