Developer friendly Natural Language Processing ✨
.vectorOf( token )
API.as.vector
helper: use .out( its.lemma, as.vector )
on tokens of a sentence or document. You can also use its.value
or its.normal
. Tokens can be pre-processed to remove stop words etc using the .filter()
API. Note, the as.vector
helper uses averaging technique..contextualVectors()
method on a document. Useful for pure browser-side applications! Generate custom vectors contextually relevant to your corpus and use them in place of larger pre-trained wink embeddings.markup()
are optional now in TS code — squashed a typescript declaration bug. 🙌its.sentenceWiseImprotance
helper to obtain sentence wise importance (on a scale of 0 to 1) of a document, if it is supported by language model. 📚📊🤓