Class Related

Hierarchy

  • Related

Constructors

Properties

debug: boolean = false
documents_: any
options_: Options
stems_: string[][][]
tfidfs_: TfIdf[]

Accessors

  • get stemmer(): Stemmer
  • Returns Stemmer

  • set stemmer(stemmer: Stemmer): void
  • Parameters

    • stemmer: Stemmer

    Returns void

  • get stems(): string[][][]
  • Returns string[][][]

  • get tokenizer(): Tokenizer
  • Returns Tokenizer

  • set tokenizer(tokenizer: Tokenizer): void
  • Parameters

    • tokenizer: Tokenizer

    Returns void

  • get weights(): number[]
  • Returns number[]

  • set weights(weights: number[]): void
  • Parameters

    • weights: number[]

    Returns void

Methods

  • Convert the document into parts, each having an array of stems or words

    Parameters

    • document: any

    Returns string[][]

  • Parameters

    • document: any

    Returns {
        absolute: number;
        document: any;
        relative: number;
    }[]

  • Serialize according the serializer where an object is serialized into an array of strings based upon specific parts of the document such as title, summary, etc.

    Parameters

    • document: any

    Returns string[]

  • Run the stemmer over the words.

    Parameters

    • parts: string[][]

    Returns string[][]

  • Tokenize the individual serialized parts of the document.

    Parameters

    • parts: string[]

    Returns string[][]

Generated using TypeDoc