Skip to content

Bug or deadcode in SelectiveSGML2TokenSequence.java #187

Open
@thibolu

Description

Hello,
I noticed a potential bug in src/cc/mallet/pipe/SelectiveSGML2TokenSequence.java

On lines 92 and 93 of the file, we have:

nextTag = m.group(0);     
nextTag = sgml.substring(1, sgml.length()-1);

I don't have domain knowledge about this algorithm, but it looks suspicious. I believe that either one of the nexTag is incorrect (maybe it should be nextStart?) or if it's not a bug, line 92 is dead code and should be removed to avoid confusion.

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