963200b8ecdf80eeacb546991c645111319cb1af,mordecai/geoparse.py,Geoparse,geoparse,#Geoparse#,526
Before Change
self.cache[place_id] = res
elif loc["confidence"] < 0.8:
// if the confidence is too low, don"t use the country info
try:
res = self.cache[loc["word"]]
except KeyError:
res = self.query_geonames(i["word"])
self.cache[loc["word"]] = res
loc["geonames"] = res
return proced
After Change
//print(doc)
proced = self.doc_to_guess(doc)
if not proced:
print("Nothing came back from doc_to_guess...")
for loc in proced:
place_id = loc["word"] + "_" + loc["country_predicted"]
// need to handle lack of key
if loc["country_conf"] >= self.country_threshold: // shrug
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: openeventdata/mordecai
Commit Name: 963200b8ecdf80eeacb546991c645111319cb1af
Time: 2017-10-26
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparse
Method Name: geoparse
Project Name: senarvi/theanolm
Commit Name: 92c4ecdf22be54b388372761a8767b034000d59f
Time: 2017-09-13
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/version.py
Class Name:
Method Name: version
Project Name: openeventdata/mordecai
Commit Name: 6ce8c41d5e859adbe9ea7fd517035b80752b7e19
Time: 2017-11-05
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparse
Method Name: process_text
Project Name: mathurinm/celer
Commit Name: 34111c5ab8972864efff82a83262842c4c92806b
Time: 2020-03-05
Author: mathurinm@users.noreply.github.com
File Name: celer/datasets/climate.py
Class Name:
Method Name: load_climate