Skip to content

(minor) Bug found in PairSimilarity.java  #5

@KevinBassaDevelopment

Description

@KevinBassaDevelopment

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.)

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