Skip to content

Commit

Permalink
Fixed some bugs. Update version from 0.3.9 to 0.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
TurconiAndrea committed Jul 28, 2021
1 parent c2ff673 commit af41247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions recipe_tagger/recipe_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ def search_ingredient_hypernyms(ingredient):
hypernym_sim.append(hypernym.wup_similarity(cat))

best_sim = sim.index(max(sim))
if hypernym:
best_hyp = hypernym_sim.index(max(hypernym_sim))
best_hyp = hypernym_sim.index(max(hypernym_sim)) if hypernym else None

if hypernym or best_sim == best_hyp:
return FoodCategory(best_sim).name
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
setup(
name="recipe-tagger",
packages=find_packages(include=["recipe_tagger"]),
version="0.3.9",
version="0.3.10",
description="A library for tagging and classify recipes",
author="Andrea Turconi",
license="MIT",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/TurconiAndrea/recipe-tagger",
download_url="https://github.com/TurconiAndrea/recipe-tagger/archive/refs/tags/0.3.9.tar.gz",
download_url="https://github.com/TurconiAndrea/recipe-tagger/archive/refs/tags/0.3.10.tar.gz",
keywords=["food", "recipe", "tag", "tagging", "ingredient"],
install_requires=[
"wikipedia-api",
Expand Down

0 comments on commit af41247

Please sign in to comment.