Skip to content

java.lang.NumberFormatException: Invalid int: "98xxxxxx56" #33

@coolrb

Description

@coolrb

I just tried to extract events from a mail message. However, the mobile no in the mail is tokenized as int and generated number format exception
java.lang.NumberFormatException: Invalid int: "98xxxxxx56" at java.lang.Integer.invalidInt(Integer.java:138) at java.lang.Integer.parse(Integer.java:413) at java.lang.Integer.parseInt(Integer.java:367) at java.lang.Integer.parseInt(Integer.java:334) at com.sixthsolution.apex.nlp.util.NumericUtils.toInt(NumericUtils.java:19) at com.sixthsolution.apex.nlp.tagger.StandardTagger.tag(StandardTagger.java:35) at com.sixthsolution.apex.nlp.parser.StandardParserBase.parse(StandardParserBase.java:47) at com.sixthsolution.apex.Apex.nlp(Apex.java:32)

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