rafelafrance / traiter

Extract information from natural history annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pattern with length followed by absence indicator produces false positive

tucotuco opened this issue · comments

Given the input string "tail length in mm: -; total length in mm: -; wing chord in mm: 81.0R; wing spread in mm: -"

the output is lengthinmm:81 is_inferred:1 standard length type "total length"

The expected output is lengthinmm:81 is_inferred:1 standard length type "total length"

The pattern matching is not picking up on the fact the the '-' indicates a missing measurement.

commented

Check this again. I wasn't expecting any output here given the null total
length measurement.

On Tue, Aug 9, 2016 at 12:44 PM, John Wieczorek notifications@github.com
wrote:

Given the input string "tail length in mm: -; total length in mm: -; wing
chord in mm: 81.0R; wing spread in mm: -"

the output is lengthinmm:81 is_inferred:1 standard length type "total
length"

The expected output is lengthinmm:81 is_inferred:1 standard length type
"total length"

The pattern matching is not picking up on the fact the the '-' indicates a
missing measurement.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#7, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAcc7GSIKtdhWxpqiunTBpoGnTUu71pLks5qeK5fgaJpZM4JgSFO
.

Right, sorry.

The expected output is lengthinmm: None is_inferred:0 standard length type: None

commented

Fixed