https://github.com/truemedia/lemme-lex
A library for creating dictionaries that can be utilised by NLP tools
https://github.com/truemedia/lemme-lex
Last synced: 4 months ago
JSON representation
A library for creating dictionaries that can be utilised by NLP tools
- Host: GitHub
- URL: https://github.com/truemedia/lemme-lex
- Owner: Truemedia
- License: mit
- Created: 2018-10-07T16:51:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T20:40:00.000Z (over 6 years ago)
- Last Synced: 2025-01-12T21:42:18.740Z (5 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Lemme Lex
A library for creating dictionaries that can be utilised by NLP tools## Installation
NPM
```bash
npm i --save lemme-lex
```Yarn
```bash
yarn add lemme-lex
```## Usage
```js
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
```