Last active
October 10, 2018 08:19
-
-
Save klintan/1023858a426136d066822a34ec7c7a5c to your computer and use it in GitHub Desktop.
Truthfinder 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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