Skip to content

queries

  • Name: cognitivefactory.interactive_clustering_gui.models.queries
  • Description: Definition of query parameters models required for application requests.
  • Author: Erwan Schild
  • Created: 07/02/2022
  • Licence: CeCILL-C License v1.0 (https://cecill.info/licences.fr.html)

ConstraintsSortOptions

Bases: str, Enum

The enumeration of available options for constraints sort.

Source code in src\cognitivefactory\interactive_clustering_gui\models\queries.py
34
35
36
37
38
39
40
41
42
43
44
class ConstraintsSortOptions(str, enum.Enum):  # noqa: WPS600 (subclassing str)
    """The enumeration of available options for constraints sort."""

    ID: str = "id"
    TEXT: str = "text"
    CONSTRAINT_TYPE: str = "constraint_type"
    DATE_OF_UPDATE: str = "date_of_update"
    ITERATION_OF_SAMPLING: str = "iteration_of_sampling"
    TO_ANNOTATE: str = "to_annotate"
    TO_REVIEW: str = "to_review"
    TO_FIX_CONFLICT: str = "to_fix_conflict"

ConstraintsValues

Bases: str, Enum

The enumeration of available constraints values.

Source code in src\cognitivefactory\interactive_clustering_gui\models\queries.py
22
23
24
25
26
class ConstraintsValues(str, enum.Enum):  # noqa: WPS600 (subclassing str)
    """The enumeration of available constraints values."""

    MUST_LINK: str = "MUST_LINK"
    CANNOT_LINK: str = "CANNOT_LINK"

TextsSortOptions

Bases: str, Enum

The enumeration of available options for texts sort.

Source code in src\cognitivefactory\interactive_clustering_gui\models\queries.py
52
53
54
55
56
57
class TextsSortOptions(str, enum.Enum):  # noqa: WPS600 (subclassing str)
    """The enumeration of available options for texts sort."""

    ID: str = "id"
    ALPHABETICAL: str = "alphabetical"
    IS_DELETED: str = "is_deleted"