from typing import Iterable
import re


def remove_digits(
    text_docs_bow: Iterable[Iterable[str]],
) -> Iterable[Iterable[str]]:
    """Removes all numbers and words containing numerical digits from documents.

    Args:
        text_docs_bow: A list of lists of words from a document

    Returns:
        A generator expression for all of the processed documents
    """
    return ((re.sub(r"\w*\d\w*", "", word) for word in doc) for doc in text_docs_bow)