8000 GitHub - haohaaorg/shan-nlp: Shan NLP (experimental project)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

haohaaorg/shan-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHAN NLP (experimental project)

Demo တီႈၸၢမ်း

CDN Link

https://cdn.jsdelivr.net/gh/haohaaorg/shan-nlp@master/functions/shannlp.min.js

Usage

const nlp    = new ShanNLP();
const tagging = nlp.tagging('တေၸႂ်ႉတိုဝ်းလႆႈ တၢင်း font unicode ၵူၺ်းၶႃႈ ယဝ်ႉၵေႃႈ ဢၼ်ၼႆႉပဵၼ်ဢၼ်ၸၢမ်းတူၺ်းၵူၺ်းၶႃႈ');
console.log(tagging) 
console.log(nlp.stopWords())

// Result ⬇ 
// Tagging
// [
//     "ၸႂ်ႉ(v)_တိုဝ်း(v)",
//     "font",
//     "unicode",
//     "ပဵၼ်(prep)",
//     "ၸၢမ်းတူၺ်း(v)"
// ]

// Stopwords
// [
//     "တေ",
//     "တၢင်း",
//     "ယဝ်ႉၵေႃႈ",
//     "ဢၼ်",
//     "ၼႆႉ",
//     "ၵူၺ်း",
//     "ၶႃႈ",
//     "လႆႈ"
// ]

Methods

tagging(input) input parameter - type String

Tagging words - remove stopwords and add word's type such as (noun,verb,prep,adj,adv)

tokenize(input) input parameter - type String

Tokenize - splitting the sentence into word array.

stopWords() Stop words - extract stop words from the sentence.

About

Shan NLP (experimental project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0