Skip to content

Different numbers not splitting on space (REGEX bug) #19

Description

@pedronogs

Issue

I'm using UDT application to annotate documents for NER. I found out that if a number is close to another one, they get annotated together (which completely blocks me from annotating two different types of numbers). I found that this originates from react-nlp-annotate and I think this could be some sort of intended behavior, but maybe there is some kind of fix.

I tried to fix this behavior as shown below.

Example

Before

split_to_fix

After

split_fixed

I opened this Pull Request (first one in my life) to show how I fixed this, but I'm not that familiar with this code, so I gladly accept any suggestions !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions