• Count the number of documents each term appears in.

    Parameters

    • docs: string[][]

      Array of tokenized documents (each document is a string[] of tokens)

    Returns WordUsageCounts

    Mapping of term → document frequency