Skip to content

StackOverflowError while using Levenstein scroe() #8

@skuladeep24

Description

@skuladeep24

We are facing an issue with the class below in a hadoop job. we are wondering if there are any limitations in using this class for calculating the similarity. Please advise.

Class: com.wcohen.ss.Levenstein

Method invocation:
Levenstein().score(str1, str2)

Error:
ERROR [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.StackOverflowError
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)
at com.wcohen.ss.MemoMatrix.get(MemoMatrix.java:40)
at com.wcohen.ss.NeedlemanWunsch$MyMatrix.compute(NeedlemanWunsch.java:41)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions