mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-09-22 01:18:33 +00:00
Chore: drop classifier match default threshold to 0.3
This commit is contained in:
@@ -1040,9 +1040,9 @@ def test_classifier_match_threshold_default() -> None:
|
||||
GIVEN:
|
||||
- No PAPERLESS_CLASSIFIER_MATCH_THRESHOLD environment variable is set
|
||||
THEN:
|
||||
- The classifier match threshold defaults to 0.6
|
||||
- The classifier match threshold defaults to 0.3
|
||||
"""
|
||||
assert settings.CLASSIFIER_MATCH_THRESHOLD == 0.6
|
||||
assert settings.CLASSIFIER_MATCH_THRESHOLD == 0.3
|
||||
|
||||
|
||||
class TestPreprocessContent:
|
||||
|
||||
@@ -98,7 +98,7 @@ MODEL_FILE = get_path_from_env(
|
||||
# document type, or storage path. 0.0 disables the threshold.
|
||||
CLASSIFIER_MATCH_THRESHOLD: Final[float] = get_float_from_env(
|
||||
"PAPERLESS_CLASSIFIER_MATCH_THRESHOLD",
|
||||
0.6,
|
||||
0.3,
|
||||
)
|
||||
MATCH_REGEX_TIMEOUT_SECONDS: Final[float] = get_float_from_env(
|
||||
"PAPERLESS_MATCH_REGEX_TIMEOUT_SECONDS",
|
||||
|
||||
Reference in New Issue
Block a user