def preprocess_wsc(dataset: Dataset) -> Dict[str, List[str]]:
    """Forms proper sentences from spans1 that are always entities and spans2 that describe these entities.

    Args:
        dataset: A given dataset.

    Returns:
        Dict[str, List[str]]: Answers that form proper sentences from capitalized spans1 and spans2.

    """
    spans1: List[str] = dataset["span1_text"]
    spans2: List[str] = dataset["span2_text"]
    answers = [f"{s2.capitalize()} {s1}" for s1, s2 in zip(spans1, spans2)]
    return {"answer": answers}
Forms proper sentences from spans1 that are always entities and spans2 that describe these entities.

    Args:
        dataset: A given dataset.

    Returns:
        Dict[str, List[str]]: Answers that form proper sentences from capitalized spans1 and spans2.

    
deeppavlov/dataset_readers/huggingface_dataset_reader.py