question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pass-in term metadata in lexicon

See original GitHub issue

Try nlp("modulus").nouns().toSingular().out("text") The result is “modulu”, but actually modulus is singular and its plural is moduli Try nlp("moduli").nouns().toSingular().out("text") Result is “moduli” but it should be modulus.

Is there a way to specify to the engine these kind of rare/peculiar words? Like in a set of json document where each document would be structured as

{
    "word":"modulus",
    "type":"noun",
    "plural":"moduli",
    "singular":"modulus"
    // In case word was of type verb then other fields like past-tense etc will be present
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
spencermountaincommented, Apr 13, 2017

yeah leo, where i was going with your lexicon-as-trie idea was this:

var nlp=require('compromise')
var myLexicon={blah:'whatever'}
let shareableContext = nlp.pack(myLexicon)
...
nlp('say my name say my name, when no one is around you, say baby..', shareableContext)
0reactions
spencermountaincommented, Oct 24, 2017

hey guys, this stuff is deployed on v11:

nlp.addWords()
nlp.addTags()
nlp.addRegex()
nlp.addPatterns()
nlp.addPlurals()
nlp.addConjugations()
//or just combine them in:
nlp.plugin()

please check it out, https://github.com/nlp-compromise/compromise/wiki/Plugins https://github.com/nlp-compromise/compromise-plugin cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Warehousing - Metadata Concepts - Tutorialspoint
Data Warehousing - Metadata Concepts, Metadata is simply defined as data about data. The data that is used to represent other data is...
Read more >
Metadata Dictionary and Usage Guide - New York Heritage
Use this dictionary to determine definitions, how and where to enter metadata, and to better understand what types of terms should be used....
Read more >
DHS Lexicon Terms and Definitions - Homeland Security
We define terms within the DHS Lexicon using an easy to follow format to help users rapidly and consistently understand the meaning of ......
Read more >
DCMI: Publishing Metadata - Dublin Core
The definition of a domain governs the entities for which a property may be used. The definition of a range governs the usage...
Read more >
Metadata Dictionary and Usage Guide (Version 4) - WNYLRC
Do not add new terms to these controlled vocabularies. For other fields, if the term you want is not found in the abbreviated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found