grobid-quantities icon indicating copy to clipboard operation
grobid-quantities copied to clipboard

Interval describing shifting quantities

Open Aazhar opened this issue 6 years ago • 1 comments

reversed intervals are not extracted in the right way as quantity least/most values. example taken from hal-00924047 :

the emission maxima shifted from 345 nm to 325 nm

Gives this :

"measurements": [

    {
        "type": "interval",
        "quantityLeast": {
            "type": "length",
            "rawValue": "345",
            "rawUnit": {
                "name": "nm",
                "offsetStart": 47,
                "offsetEnd": 49
            },
            "parsedValue": 345,
            "normalizedQuantity": 3.45e-7,
            "normalizedUnit": {
                "name": "m",
                "type": "length",
                "system": "SI base"
            },
            "offsetStart": 33,
            "offsetEnd": 36,
            "quantified": {
                "rawName": "nm",
                "normalizedName": "nm",
                "offsetStart": 37,
                "offsetEnd": 39
            }
        },
        "quantityMost": {
            "type": "length",
            "rawValue": "325",
            "rawUnit": {
                "name": "nm",
                "offsetStart": 47,
                "offsetEnd": 49
            },
            "parsedValue": 325,
            "normalizedQuantity": 3.25e-7,
            "normalizedUnit": {
                "name": "m",
                "type": "length",
                "system": "SI base"
            },
            "offsetStart": 43,
            "offsetEnd": 46,
            "quantified": {
                "rawName": "nm",
                "normalizedName": "nm",
                "offsetStart": 37,
                "offsetEnd": 39
            }
        },
        "quantified": {
            "rawName": "nm",
            "normalizedName": "nm",
            "offsetStart": 37,
            "offsetEnd": 39
        }
}

Aazhar avatar Feb 19 '18 17:02 Aazhar

Well in this case looks like the from->to is not expressing an interval but a behaviour? We could add an additional check that the least is actually smaller than the most extreme. I'm wondering

lfoppiano avatar Feb 28 '18 16:02 lfoppiano