Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

lemme-lex

Truemedia18ISC0.4.1

A library for creating dictionaries that can be utilised by NLP tools

lexicon, lexeme, lemma, dictionary, nlp, bot, machine, learning, intent

readme

Lemme Lex

A library for creating dictionaries that can be utilised by NLP tools

Installation

NPM

    npm i --save lemme-lex

Yarn

    yarn add lemme-lex

Usage

const {Lexicon, Lexeme} = require('lemme-lex');
let phrase = new Lexeme('hello there', ['ArrivalSalutation']);
let lex = new Lexicon();
lex.addEntry(phrase);
console.log(lex.toJson()); // Should output an object

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.4.1] - 2018-11-08

Added

  • Smarter testing

    Fixed

  • Missing default phrase
  • English support

[0.4.0] - 2018-11-08

Added

  • Lexeme locale and spellings
  • Japanese expander

[0.3.1] - 2018-11-05

Updated

  • Lexicon.toFile now returns promise

[0.3.0] - 2018-10-27

Added

  • Tag methods

[0.2.2] - 2018-10-27

Fixed

  • Changelog incorrect versions

[0.2.1] - 2018-10-27

Fixed

  • New instance from this on static method

[0.2.0] - 2018-10-20

Added

  • This changelog
  • toRecord method on lexeme