Package version:

Function createSynonymMapFromFile

  • Helper method to create a SynonymMap object. This is a NodeJS only method.

    Parameters

    • name: string

      Name of the SynonymMap.

    • filePath: string

      Path of the file that contains the Synonyms (seperated by new lines)

    Returns Promise<SynonymMap>

    SynonymMap object