Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Oklahoma resolves to a city in Pennsylvania, instead of the state #28

Closed
rahulbot opened this issue Mar 15, 2015 · 2 comments
Closed

Oklahoma resolves to a city in Pennsylvania, instead of the state #28

rahulbot opened this issue Mar 15, 2015 · 2 comments

Comments

@rahulbot
Copy link
Contributor

Example input:

Oklahoma say Common Core tests are too costly

Example output:

{
  "status": "ok",
  "version": "1.2.0",
  "results": {
    "organizations": [],
    "places": {
      "mentions": [
        {
          "confidence": 1,
          "name": "Oklahoma",
          "countryCode": "US",
          "featureCode": "PPL",
          "lon": -79.57393,
          "countryGeoNameId": "6252001",
          "source": {
            "charIndex": 0,
            "string": "Oklahoma"
          },
          "stateCode": "PA",
          "featureClass": "P",
          "lat": 40.58145,
          "stateGeoNameId": "6254927",
          "id": 5204294,
          "population": 809
        }
      ],
      "focus": {
        "states": [
          {
            "name": "Pennsylvania",
            "countryCode": "US",
            "featureCode": "ADM1",
            "lon": -76.90567,
            "countryGeoNameId": "6252001",
            "score": 1,
            "stateCode": "PA",
            "featureClass": "A",
            "lat": 40.27245,
            "stateGeoNameId": "6254927",
            "id": 6254927,
            "population": 12440621
          }
        ],
        "cities": [
          {
            "name": "Oklahoma",
            "countryCode": "US",
            "featureCode": "PPL",
            "lon": -79.57393,
            "countryGeoNameId": "6252001",
            "score": 1,
            "stateCode": "PA",
            "featureClass": "P",
            "lat": 40.58145,
            "stateGeoNameId": "6254927",
            "id": 5204294,
            "population": 809
          }
        ],
        "countries": [
          {
            "name": "United States",
            "countryCode": "US",
            "featureCode": "PCLI",
            "lon": -98.5,
            "countryGeoNameId": "6252001",
            "score": 1,
            "stateCode": "00",
            "featureClass": "A",
            "lat": 39.76,
            "stateGeoNameId": "",
            "id": 6252001,
            "population": 310232863
          }
        ]
      }
    },
    "people": []
  },
  "milliseconds": 6
}
@charlieg
Copy link

I'm not seeing this behavior in CLAVIN itself. Both the circa-2012 web demo and more recent versions correctly resolve the input to the State of Oklahoma.

@rahulbot
Copy link
Contributor Author

rahulbot commented Apr 2, 2015

This works correctly in v1.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants