��# J S L i b r a r y t o g e t s e g m e n t e d - t i b e t a n - t e x t
- H O W T O U S E
# # I n s t a l l a t i o n
y a r n a d d @ t e n k u s 4 7 / t i b e t a n - s e g m e n t o r - - s a v e
o r
n p m i n s t a l l @ t e n k u s 4 7 / t i b e t a n - s e g m e n t o r - - s a v e
` ` ` j a v a s c r i p t
c o n s t { s p l i t , s e g m e n t T i b e t a n T e x t } = r e q u i r e ( " @ t e n k u s 4 7 / t i b e t a n - s e g m e n t o r " ) ;
l e t t e s t D a t a = " " ; / / t h e t e x t y o u w a n t t o s e g m e n t
c o n s o l e . l o g ( s p l i t ( t e s t D a t a ) ) ;
` ` `
t h e o u t p u t s h o u l d b e s i m i l a r t o :
` ` ` j a v a s c r i p t
[
{ c h a r : " f��" , s t a r t : 0 } ,
{ c h a r : " Vf��tb" , s t a r t : 4 } ,
{ c h a r : " Xb" , s t a r t : 1 1 } ,
{ c h a r : " T" , s t a r t : 1 4 } ,
] ; / / e t c
` ` `
f e e l f r e e t o s e n d P R !
o w n e r : [ t e n z i n k u n s a n g ] ( " h t t p s : / / g i t h u b . c o m / t e n k u s 4 7 " )
@tenkus47/tibetan-segmentor
1.0.4 • Public • PublishedPackage Sidebar
Install
npm i @tenkus47/tibetan-segmentor
Repository
Weekly Downloads
0
Version
1.0.4
License
MIT
Unpacked Size
8.18 kB
Total Files
4