The locale to use for display names specified through
the TFLite Model Metadata.
max_results
The maximum number of top-scored classification results to
return.
score_threshold
Overrides the ones provided in the model metadata. Results
below this value are rejected.
category_allowlist
Allowlist of category names. If non-empty,
classification results whose category name is not in this set will be
filtered out. Duplicate or unknown category names are ignored. Mutually
exclusive with category_denylist.
category_denylist
Denylist of category names. If non-empty, classification
results whose category name is in this set will be filtered out. Duplicate
or unknown category names are ignored. Mutually exclusive with
category_allowlist.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-01 UTC."],[],[],null,["# mp.tasks.text.LanguageDetectorOptions\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/mediapipe/blob/master/mediapipe/tasks/python/text/language_detector.py#L83-L127) |\n\nOptions for the language detector task. \n\n mp.tasks.text.LanguageDetectorOptions(\n base_options: ../../../mp/tasks/BaseOptions,\n display_names_locale: Optional[str] = None,\n max_results: Optional[int] = None,\n score_threshold: Optional[float] = None,\n category_allowlist: Optional[List[str]] = None,\n category_denylist: Optional[List[str]] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `base_options` | Base options for the language detector task. |\n| `display_names_locale` | The locale to use for display names specified through the TFLite Model Metadata. |\n| `max_results` | The maximum number of top-scored classification results to return. |\n| `score_threshold` | Overrides the ones provided in the model metadata. Results below this value are rejected. |\n| `category_allowlist` | Allowlist of category names. If non-empty, classification results whose category name is not in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with `category_denylist`. |\n| `category_denylist` | Denylist of category names. If non-empty, classification results whose category name is in this set will be filtered out. Duplicate or unknown category names are ignored. Mutually exclusive with `category_allowlist`. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|----------------------|--------|\n| category_allowlist | `None` |\n| category_denylist | `None` |\n| display_names_locale | `None` |\n| max_results | `None` |\n| score_threshold | `None` |\n\n\u003cbr /\u003e"]]