Spaces:
Runtime error
Runtime error
File size: 1,093 Bytes
bfc0ec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
"""Registers all available default signals."""
from ..embeddings.cohere import Cohere
from ..embeddings.gte import GTEBase, GTESmall
from ..embeddings.openai import OpenAI
from ..embeddings.palm import PaLM
from ..embeddings.sbert import SBERT
from ..signal import register_signal
from .concept_labels import ConceptLabelsSignal
from .concept_scorer import ConceptSignal
from .lang_detection import LangDetectionSignal
from .near_dup import NearDuplicateSignal
from .ner import SpacyNER
from .pii import PIISignal
from .text_statistics import TextStatisticsSignal
def register_default_signals() -> None:
"""Register all the default signals."""
# Concepts.
register_signal(ConceptSignal)
register_signal(ConceptLabelsSignal)
# Text.
register_signal(PIISignal)
register_signal(TextStatisticsSignal)
register_signal(SpacyNER)
register_signal(NearDuplicateSignal)
register_signal(LangDetectionSignal)
# Embeddings.
register_signal(Cohere)
register_signal(SBERT)
register_signal(OpenAI)
register_signal(PaLM)
register_signal(GTESmall)
register_signal(GTEBase)
|