Applesauce
    Preparing search index...

    Function loadNspamModel

    • Downloads and parses the nspam model (about 9 MB)

      Parameters

      • url: string = NSPAM_MODEL_URL

        The directory containing model.txt and calibration.npz, defaults to the pinned Hugging Face model

      Returns Promise<NspamModel>

      if either download fails or the files are not a supported nspam model