Skip to content

Commit

Permalink
feat: remove matcher predictor completely
Browse files Browse the repository at this point in the history
with spacy dependency
  • Loading branch information
raphael0202 committed Aug 31, 2023
1 parent de97f9f commit d0847c6
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 1,113 deletions.
3 changes: 0 additions & 3 deletions data/category/matcher/category_ingredient_intersect.json.gz

This file was deleted.

3 changes: 0 additions & 3 deletions data/category/matcher/category_match_maps.json.gz

This file was deleted.

3 changes: 0 additions & 3 deletions data/category/matcher/ingredient_match_maps.json.gz

This file was deleted.

488 changes: 1 addition & 487 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ falcon-cors = "~1.1.7"
falcon-multipart = "~0.2.0"
elasticsearch = "~8.5.3"
pymongo = "~3.12.0"
spacy = "~3.4.1"
dacite = "~1.6.0"
influxdb-client = "~1.34.0"
jsonschema = "~4.4.0"
Expand All @@ -68,7 +67,6 @@ more-itertools = "~8.9.0"
matplotlib = "~3.5.0"
typer = "~0.7.0"
py-healthcheck = "^1.10.1"
spacy-lookups-data = "^1.0.3"
cachetools = "^5.2.0"
tritonclient = {extras = ["grpc"], version = "^2.26.0"}
rq = "~1.11.1"
Expand Down
2 changes: 1 addition & 1 deletion robotoff/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def on_post(self, req: falcon.Request, resp: falcon.Response):
deepest_only=req.media.get("deepest_only", False),
threshold=req.media.get("threshold"),
neural_model_name=neural_model_name,
clear_cache=True,
clear_cache=True, # clear resource cache to save memory
)


Expand Down
Loading

0 comments on commit d0847c6

Please sign in to comment.