Skip to content

Instantly share code, notes, and snippets.

@klintan
Last active October 10, 2018 08:19
Show Gist options
  • Save klintan/1023858a426136d066822a34ec7c7a5c to your computer and use it in GitHub Desktop.
Save klintan/1023858a426136d066822a34ec7c7a5c to your computer and use it in GitHub Desktop.
Truthfinder 6
import jellyfish
def implicates(fact, fact_sources):
'''
How many sources implicates this fact
:param fact: dataframe row
:param fact_sources: dataframe
:return:
'''
return [jellyfish.jaro_winkler(fact.lower(),f.lower()) - 0.5 for f in fact_sources]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment