usc-isi-i2 / dig-entity-resolution

Apache License 2.0
0 stars 0 forks source link

Input output a simple dictionary #3

Closed szeke closed 8 years ago

szeke commented 8 years ago

To make the code simpler and more reusable, the input should be of the following form. All the attributes will be present, but sometimes the value will be the empty string.

{
  "uri": "xxx",
  "locality": "los Angeles",
  "region": "California",
  "country": "something"
}

The output should be a json object, that contains an array of answers of the following form:

{
  "uri": "the uri of this entry in the geonames dataset",
  "name": "Los Angeles, California, United States",
  "score": 0.8
}