How to use the @nlpjs/language-min.Language.getTopScript function in @nlpjs/language-min

To help you get started, we’ve selected a few @nlpjs/language-min examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github axa-group / nlp.js / packages / ner / src / extractor-enum.js View on Github external
getScripts(str) {
    const result = [];
    const chars = str.split('');
    for (let i = 0; i < chars.length; i += 1) {
      result.push(Language.getTopScript(chars[i]));
    }
    return result;
  }

@nlpjs/language-min

Language guesser

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis

Popular @nlpjs/language-min functions

Similar packages