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

Improve readme example

parent 2a37df1f
Branches
No related tags found
No related merge requests found
...@@ -28,7 +28,9 @@ df_lex = pd.DataFrame().from_dict(dict_lex, orient="index").reset_index().rename ...@@ -28,7 +28,9 @@ df_lex = pd.DataFrame().from_dict(dict_lex, orient="index").reset_index().rename
# Example # Example
``` ```
import pandas as pd
import lexicon_overlap_score as los
df1 = pd.DataFrame([("test", 1), ("free", 1), ("other", 1), ("check", 0.5)], columns=["word", "so"]) 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"]) df2 = pd.DataFrame([("test", 0.5), ("free", 1)], columns=["word", "so"])
simple(df1, df2), binary(df1, df2), score(df1, df2) los.simple(df1, df2), los.binary(df1, df2), los.score(df1, df2)
``` ```
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="lexicon_overlap_score", # Replace with your own username name="lexicon_overlap_score", # Replace with your own username
version="0.0.4", version="0.0.5",
author="Felix Welter", author="Felix Welter",
author_email="felixwelter@gmail.com", author_email="felixwelter@gmail.com",
description="Functions for calculation of the lexicon overlap score", 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