Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Extralit_extralit /extralit-server /src /extralit_server /enums.py
| try: | |
| from enum import StrEnum | |
| except ImportError: | |
| from extralit_server.utils.str_enum import StrEnum | |
| class FieldType(StrEnum): | |
| text = "text" | |
| image = "image" | |
| chat = "chat" | |
| custom = "custom" | |
| table = "table" | |
| # A column declared by the dataset's Pandera schema version. Carries a dtype for the | |
| # index mapping and is deliberately not value-validated: columns are extraction inputs, | |
| # not annotator-editable answers. Editable columns get a Question bound to them instead. | |
| column = "column" | |
| class ResponseStatus(StrEnum): | |
| draft = "draft" | |
| submitted = "submitted" | |
| discarded = "discarded" | |
| class ResponseStatusFilter(StrEnum): | |
| draft = "draft" | |
| pending = "pending" | |
| submitted = "submitted" | |
| discarded = "discarded" | |
| class SuggestionType(StrEnum): | |
| model = "model" | |
| human = "human" | |
| selection = "selection" | |
| class DatasetStatus(StrEnum): | |
| draft = "draft" | |
| ready = "ready" | |
| class DatasetDistributionStrategy(StrEnum): | |
| overlap = "overlap" | |
| class UserRole(StrEnum): | |
| owner = "owner" | |
| admin = "admin" | |
| annotator = "annotator" | |
| class RecordStatus(StrEnum): | |
| pending = "pending" | |
| completed = "completed" | |
| class RecordInclude(StrEnum): | |
| responses = "responses" | |
| suggestions = "suggestions" | |
| vectors = "vectors" | |
| response_suggestions = "response_suggestions" | |
| class QuestionType(StrEnum): | |
| text = "text" | |
| rating = "rating" | |
| label_selection = "label_selection" | |
| multi_label_selection = "multi_label_selection" | |
| ranking = "ranking" | |
| span = "span" | |
| table = "table" | |
| class MetadataPropertyType(StrEnum): | |
| terms = "terms" # Textual types with a fixed value list | |
| integer = "integer" # Integer values | |
| float = "float" # Decimal values | |
| class RecordSortField(StrEnum): | |
| id = "id" | |
| external_id = "external_id" | |
| inserted_at = "inserted_at" | |
| updated_at = "updated_at" | |
| status = "status" | |
| class SortOrder(StrEnum): | |
| asc = "asc" | |
| desc = "desc" | |
| class SimilarityOrder(StrEnum): | |
| most_similar = "most_similar" | |
| least_similar = "least_similar" | |
| class OptionsOrder(StrEnum): | |
| natural = "natural" | |
| suggestion = "suggestion" | |
Xet Storage Details
- Size:
- 2.19 kB
- Xet hash:
- 4f4aea7a230edeedfe671479b12097e2d222b3ac5c5ab993165a7f12d9f062eb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.