Skip to content

Inconsistent parsing results US address. #19

@TerranceNHanlon

Description

@TerranceNHanlon

Apologies if this is the wrong medium for this question but i'm at a wall. I'm getting inconsistent parsing results in my environments that is making it difficult to debug.

For example this address (it's a fake street address but real city, state, and zip) parses incorrectly in my docker instance(debian), but if i were to run it locally (m1 macos) it would parse correctly.

1111 main street, Chapel Hill, North Carolina 27516

It seems to confuse the state North Carolina and appends North to the city value:

{
    "label": "house_number",
    "value": "1111"
},
{
    "label": "road",
    "value": "main street"
},
{
    "label": "city",
    "value": "chapel hill north"
},
{
    "label": "state",
    "value": "carolina"
},
{
    "label": "postcode",
    "value": "27516"
}

While in another instance,

{
    "label": "house_number",
    "value": "1111"
},
{
    "label": "road",
    "value": "main street"
},
{
    "label": "city",
    "value": "chapel hill"
},
{
    "label": "state",
    "value": "north carolina"
},
{
    "label": "postcode",
    "value": "27516"
}

They're consistent in their environment, i have not re-compiled my local (correctly parsing) instance but both the docker instance and my local instance are using the same forked version of Libpostal when compiling and configuring/setting up.

I imagine this is an open ended and hard to answer question, but im wondering if this has been seen before and would appreciate just any insight into why they're different results and why it's not recognizing the state. Thanks in advance .

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