Skip to content
Snippets Groups Projects
Commit 7387bc9e authored by Felix's avatar Felix
Browse files

Add example to readme

parent 197474c3
Branches
No related tags found
No related merge requests found
......@@ -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
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment