Skip to content

Commit

Permalink
fix: docstring and file name
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBeFr committed Sep 19, 2022
1 parent 6f1f113 commit 3114aea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions robotoff/prediction/ocr/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def category_taxonomisation(lang, match) -> Optional[str]:


def find_category(content: Union[OCRResult, str]) -> List[Prediction]:
"""This function returns a prediction of the category of the product
by detecting an AOP syntax which allows an easy category
prediction with REGEX.
"""This function returns a prediction of the product category.
For now we are extracting categories via REGEX
only thanks to an AOP syntax but we may find in the future
other ways to get sure prediction of categories.
Expand Down

0 comments on commit 3114aea

Please sign in to comment.