Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update constants.py #315

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions seacrowd/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ class Tasks(Enum):
WORD_SENSE_DISAMBIGUATION = "WSD"
COREFERENCE_RESOLUTION = "COREF"


# Tree
CONSTITUENCY_PARSING = "CONST_PAR"

# Single Text Classification
ASPECT_BASED_SENTIMENT_ANALYSIS = "ABSA"

# Single Text Classification (single-label)
ABUSIVE_LANGUAGE_PREDICTION = "ABL"
DOMAIN_KNOWLEDGE_CLASSIFICATION = "DKC" # classification for non NLP-oriented label
Expand Down Expand Up @@ -120,6 +116,7 @@ class Tasks(Enum):

# ImageText
IMAGE_CAPTIONING = "IC"
SIGN_LANGUAGE_RECOGNITION = "SLR"
STYLIZED_IMAGE_CAPTIONING = "SIC"
VISUALLY_GROUNDED_REASONING = "VGR"

Expand Down Expand Up @@ -215,21 +212,23 @@ class Licenses(Enum):


TASK_TO_SCHEMA = {
Tasks.COREFERENCE_RESOLUTION: "KB",
Tasks.DEPENDENCY_PARSING: "KB",
Tasks.CONSTITUENCY_PARSING: "TREE",
Tasks.E2E_TASK_ORIENTED_DIALOGUE: "TOD",
Tasks.WORD_SENSE_DISAMBIGUATION: "T2T",
Tasks.WORD_ANALOGY: "T2T",
Tasks.KEYWORD_EXTRACTION: "SEQ_LABEL",
Tasks.COREFERENCE_RESOLUTION: "KB",
Tasks.DIALOGUE_SYSTEM: "T2T",
Tasks.E2E_TASK_ORIENTED_DIALOGUE: "TOD",
Tasks.KEYWORD_TAGGING: "SEQ_LABEL",
Tasks.NAMED_ENTITY_RECOGNITION: "SEQ_LABEL",
Tasks.POS_TAGGING: "SEQ_LABEL",
Tasks.SENTENCE_ORDERING: "SEQ_LABEL",
Tasks.SPAN_BASED_ABSA: "SEQ_LABEL",
Tasks.TOKEN_LEVEL_LANGUAGE_IDENTIFICATION: "SEQ_LABEL",
Tasks.COMMONSENSE_REASONING: "QA",
Tasks.QUESTION_ANSWERING: "QA",
Tasks.CONCEPT_ALIGNMENT_CLASSIFICATION: "PAIRS",
Tasks.NEXT_SENTENCE_PREDICTION: "PAIRS",
Tasks.TEXT_RETRIEVAL: "PAIRS",
Tasks.TEXTUAL_ENTAILMENT: "PAIRS",
Expand All @@ -242,13 +241,14 @@ class Licenses(Enum):
Tasks.MULTILEXNORM: "T2T",
Tasks.SUMMARIZATION: "T2T",
Tasks.TRANSLITERATION: "T2T",
Tasks.DOMAIN_KNOWLEDGE_MULTICLASSIFICATION: "TEXT_MULTI",
Tasks.ASPECT_BASED_SENTIMENT_ANALYSIS: "TEXT_MULTI",
Tasks.DOMAIN_KNOWLEDGE_MULTICLASSIFICATION: "TEXT_MULTI",
Tasks.ABUSIVE_LANGUAGE_PREDICTION: "TEXT",
Tasks.DOMAIN_KNOWLEDGE_CLASSIFICATION: "TEXT",
Tasks.SENTIMENT_ANALYSIS: "TEXT",
Tasks.TAX_COURT_VERDICT: "TEXT",
Tasks.EMOTION_CLASSIFICATION: "TEXT",
Tasks.HOAX_NEWS_CLASSIFICATION: "TEXT",
Tasks.LANGUAGE_IDENTIFICATION: "TEXT",
Tasks.LEGAL_CLASSIFICATION: "TEXT",
Tasks.INTENT_CLASSIFICATION: "TEXT",
Expand All @@ -265,14 +265,11 @@ class Licenses(Enum):
Tasks.SPEECH_EMOTION_RECOGNITION: "SPEECH",
Tasks.SPEECH_EMOTION_RECOGNITION_MULTILABEL: "SPEECH_MULTI",
Tasks.IMAGE_CAPTIONING: "IMTEXT",
Tasks.SIGN_LANGUAGE_RECOGNITION: "IMTEXT",
Tasks.STYLIZED_IMAGE_CAPTIONING: "IMTEXT",
Tasks.VISUALLY_GROUNDED_REASONING: "IMTEXT",
Tasks.HOAX_NEWS_CLASSIFICATION: "TEXT",
Tasks.CONCEPT_ALIGNMENT_CLASSIFICATION: "PAIRS",
Tasks.SPAN_BASED_ABSA: "SEQ_LABEL",
Tasks.VIDEO_CAPTIONING: "VIDTEXT",
Tasks.VIDEO_TO_TEXT_RETRIEVAL: "VIDTEXT",
Tasks.CONCEPT_ALIGNMENT_CLASSIFICATION: "PAIRS",
Tasks.FACT_CHECKING: None,
}

Expand Down