diff --git a/README.md b/README.md index 54235fdae33e1ee7973b91f6d0aa1b3563ccc962..9b7115f91f9168e6a3c433ef5c89374d79ee8961 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,10 @@ If your lexicon is a python dictionary mapping words to values, convert it to a import pandas as pd df_lex = pd.DataFrame().from_dict(dict_lex, orient="index").reset_index().rename(columns={"index": "word", 0: "so"}) ``` + +# Example +``` +df1 = pd.DataFrame([("test", 1), ("free", 1), ("other", 1), ("check", 0.5)], columns=["word", "so"]) +df2 = pd.DataFrame([("test", 0.5), ("free", 1)], columns=["word", "so"]) +simple(df1, df2), binary(df1, df2), score(df1, df2) +``` \ No newline at end of file diff --git a/setup.py b/setup.py index 427ea0f2d439d7df94809d6cdc9ff9fa538d0aba..14abe677420b5f7788410c988d7e48b8cd093f47 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="lexicon_overlap_score", # Replace with your own username - version="0.0.3", + version="0.0.4", author="Felix Welter", author_email="felixwelter@gmail.com", description="Functions for calculation of the lexicon overlap score",