Natural language processing tasks

NLP Tasks

16 core tasks, each with a precise definition of input and output, the standard metrics with worked examples, methods from classical to modern, the difficulties of Arabic, and links to the tool where you can try it in the lab and to suitable models and data.

Understanding and classification

Text classification Text Classification Assigning a label to a whole text: the topic of a news item, whether it is spam, or whether it is hate speech. It is the most widely used processing task in applications, and the basis of many other tasks such as sentiment analysis and dialect identifi… Accuracy, Macro-F1, Micro-F1, confusion matrix Sentiment analysis Sentiment Analysis Extracting the emotional stance from text. It looks simple, but it gets complicated by negation, sarcasm, comparison and dialects, and sometimes by the need to know which aspect is meant (the food is good and the service is bad). Macro-F1, F1 for the positive and negative classes (F1-PN), accuracy Dialect identification Arabic Dialect Identification Identifying the language variety of an Arabic text: Modern Standard or dialect, and which dialect. A basic task for routing text to the right tool, and a hard one because neighboring dialects share much of their vocabulary. Macro-F1, accuracy Natural language inference Natural Language Inference (NLI) Does the truth of the first sentence imply the truth of the second? A task that tests semantic understanding; it is used as a tool for training sentence embeddings, for zero-shot classification, and for checking how faithful summaries are to the source. Accuracy, and performance on adversarial or out-of-distribution sets Semantic textual similarity Semantic Textual Similarity Measuring how close the meanings of two texts are. It is used in duplicate question detection, semantic search, plagiarism detection, text clustering and translation evaluation, and is usually solved with sentence embeddings and cosine. Pearson and Spearman correlation with human judgments, and F1 for paraphrase detection

Sequence labeling

Structure and morphology

Generation

Retrieval

Representation