본문 바로가기

좋아하는 것_매직IT/96.IT 핫이슈

개발자 친화적 자연언어처리(NLP) JavaScript 라이브러리(WinkNLP) 를 소개합니다 (github.com/winkjs)

반응형

개발자 친화적 자연언어처리(NLP) JavaScript 라이브러리(WinkNLP) 를 소개합니다

웹페이지에서는 아래와 같이 소개하고 있고요..
---
Developer friendly Natural Language Processing 


WinkNLP is a JavaScript library for Natural Language Processing (NLP). Designed specifically to make development of NLP applications easier and faster, winkNLP is optimized for the right balance of performance and accuracy.

It is built ground up with a lean code base that has no external dependency. A test coverage of ~100% and compliance with the Open Source Security Foundation best practices make winkNLP the ideal tool for building production grade systems with confidence.

WinkNLP with full Typescript support, runs on Node.js and browsers.
...(생략)...

---

728x90

간단하게 번역 해서 정리해보자면요..
---
개발자 친화적인 자연어 처리

WinkNLP는 자연어 처리(NLP)용 JavaScript 라이브러리라고 머릿속에 넣어두시면 되고요..
NLP 애플리케이션을 보다 쉽고 빠르게 개발할 수 있도록 특별히 설계된 winkNLP는 성능과 정확성의 적절한 균형에 최적화되어 있다고 하네요..

그리고,
외부 종속성이 없는 간결한 코드 기반으로 구축되었다고 하고요..

최대 100%의 테스트 범위와 Open Source Security Foundation 모범 사례를 준수하는 winkNLP는 확신을 가지고 생산 등급 시스템을 구축하기 위한 이상적인 도구라고 하네요..

그리고,  전체 Typescript를 지원하는 WinkNLP는 Node.js 및 브라우저에서 실행된다고 하고요..
...(생략)...
---

그리고 설치는 아래와 같이 하시면 되고요..

Installation

Use npm install:

npm install wink-nlp --save

In order to use winkNLP after its installation, you also need to install a language model according to the node version used. The table below outlines the version specific installation command:

The wink-eng-lite-web-model is designed to work with Node.js version 16 or 18. It can also work on browsers as described in the next section. 
This is the recommended model.

The second command installs the wink-eng-lite-model, which works with Node.js version 14 or 12.

How to install for Web Browser
If you’re using winkNLP in the browser use the wink-eng-lite-web-model. Learn about its installation and usage in our guide to using winkNLP in the browser. Explore winkNLP recipes on Observable for live browser based examples.

간단하게 시작하기는요..

Get started

Here is the "Hello World!" of winkNLP:

// Load wink-nlp package.
const winkNLP = require( 'wink-nlp' );
// Load english language model.
const model = require( 'wink-eng-lite-web-model' );
// Instantiate winkNLP.
const nlp = winkNLP( model );
// Obtain "its" helper to extract item properties.
const its = nlp.its;
// Obtain "as" reducer helper to reduce a collection.
const as = nlp.as;
 
// NLP Code.
const text = 'Hello   World🌎! How are you?';
const doc = nlp.readDoc( text );
 
console.log( doc.out() );
// -> Hello   World🌎! How are you?
 
console.log( doc.sentences().out() );
// -> [ 'Hello   World🌎!', 'How are you?' ]
 
console.log( doc.entities().out( its.detail ) );
// -> [ { value: '🌎', type: 'EMOJI' } ]
 
console.log( doc.tokens().out() );
// -> [ 'Hello', 'World', '🌎', '!', 'How', 'are', 'you', '?' ]
 
console.log( doc.tokens().out( its.type, as.freqTable ) );
// -> [ [ 'word', 5 ], [ 'punctuation', 2 ], [ 'emoji', 1 ] ]


주요내용을 정리해보자면 아래와 같고요...

  • NLP 어플리케이션을 쉽고 빠르게 개발할수 있도록 도와줌
  • TypeScript를 지원하며, Node.js 및 브라우저 에서 실행
  • 고성능 : M1 맥에서 초당 65만 토큰 처리 가능. 저수준 스마트폰 브라우저에서도 부드럽게 동작
  • 다국어 토크나이저(tokenizer)
  • 텍스트 시각화 내장
728x90


마지막으로.라이센스를 알아보니깐요..(참고로 오픈소스에서 라이센스는 생명입니다.!!)

Copyright & License
Wink NLP is copyright 2017-22 GRAYPE Systems Private Limited.
It is licensed under the terms of the MIT License.

(즉, MIT 라이센스라고 머릿속에 넣어두시면 될것 같네요..)

좀 더 자세한 내용은 아래 깃허브를 방문해보시면 될것 같고요..

오늘의 블로그는 여기까지고요..
항상 믿고 봐주셔서 감사합니다. 

728x90
300x250