wink-nlp
Advanced tools
Changelog
Version 2.2.0 April 03, 2024
Changelog
Version 2.1.0 March 24, 2024
similarity.vector.cosine( vectorA, vectorB )
to compute similarity between two vectors on a scale of 0 to 1. 🤓Changelog
Version 2.0.0 March 24, 2024
.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.Changelog
Version 1.14.3 July 21, 2023
Changelog
Version 1.14.2 July 1, 2023
markup()
are optional now in TS code — squashed a typescript declaration bug. 🙌Changelog
Version 1.14.0 May 20, 2023
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. 📚📊🤓Changelog
Version 1.13.1 March 27, 2023
Changelog
Version 1.13.0 December 09, 2022
a fluffy cat
then mark: [-2, -1]
will extract fluffy cat
— especially useful when the match length is unknown. 💃