Comments (2)
This will take a little work. For instance, AboutnessStrategy.selectCountries
doesn't know about geonames at all... it just returns country codes (based on resolvedLocation.geoname.primaryCountryCode
). We'd have to add a lookup (live or static) to find the geonames entry for each country.
Same thing with AboutnessStrategy.selectStates
- it just picks based on resolvedLocation.geoname.admin1Code
. We'd have to add a lookup to find the Geonames entry for that state.
from cliff-annotator.
Oh, it does this now. I don't remember which version introduced this, but all the focus
elements have full Geonames info in them. Here's an excerpt from v1.1.x:
"focus": {
"states": [
{
"name": "National Capital Territory of Delhi",
"countryCode": "IN",
"featureCode": "ADM1",
"lon": 77.1,
"score": 1,
"stateCode": "07",
"featureClass": "A",
"lat": 28.6667,
"id": 1273293,
"population": 15766943
}
],
"cities": [
{
"name": "New Delhi",
"countryCode": "IN",
"featureCode": "PPLC",
"lon": 77.22445,
"score": 1,
"stateCode": "07",
"featureClass": "P",
"lat": 28.63576,
"id": 1261481,
"population": 317797
}
],
"countries": [
{
"name": "Republic of India",
"countryCode": "IN",
"featureCode": "PCLI",
"lon": 79,
"score": 1,
"stateCode": "00",
"featureClass": "A",
"lat": 22,
"id": 1269750,
"population": 1173108018
}
]
}
from cliff-annotator.
Related Issues (20)
- return better status while index is building HOT 1
- charIndex of mentions is offset by preceding demonyms when replaceAllDemonyms=true HOT 2
- `results.mentions.source.string` contains the normalised country name, intead of the raw string matched. HOT 2
- integrate co-ref resolution into person entity counts HOT 1
- DELETE IT
- upgrade default Stanford NER to v3.9.2 HOT 9
- News Articles about Washington, always resolve to Washington state instead of Washington, DC. HOT 1
- support language at the query level HOT 1
- move configuration to env-vars HOT 1
- rename packages to match brand HOT 1
- Are there any API docs which go over what the meaning of each key in the json response means? HOT 5
- Can't get CLIFF to run HOT 2
- Unable to access through tomcat (404 error) HOT 1
- Unable to geoparse German text HOT 1
- Gazetteer index Error HOT 3
- Live demo currently down HOT 2
- upgrade to latest NER HOT 1
- upgrade to latest CLIFF
- Add support for French HOT 1
- What is the maximum sequence length? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cliff-annotator.