Developer friendly Natural Language Processing ✨
MIT License
Bot releases are visible (Hide)
Published by sanjayaksaxena 5 months ago
Published by sanjayaksaxena 5 months ago
.contextualVectors()
now throws error if (a) word vectors are not loaded and (b) with lemma: true
, "pos" is missing in the NLP pipe. 🤓Published by sanjayaksaxena 6 months ago
Published by sanjayaksaxena 7 months ago
Published by sanjayaksaxena 7 months ago
similarity.vector.cosine( vectorA, vectorB )
to compute similarity between two vectors on a scale of 0 to 1. 🤓Published by sanjayaksaxena 7 months ago
.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.Published by sanjayaksaxena about 1 year ago
Published by sanjayaksaxena over 1 year ago
markup()
are optional now in TS code — squashed a typescript declaration bug. 🙌Published by sanjayaksaxena over 1 year ago
Published by sanjayaksaxena over 1 year ago
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. 📚📊🤓Published by sanjayaksaxena over 1 year ago
Published by sanjayaksaxena almost 2 years ago
a fluffy cat
then mark: [-2, -1]
will extract fluffy cat
— especially useful when the match length is unknown. 💃Published by sanjayaksaxena almost 2 years ago
Published by sanjayaksaxena about 2 years ago
Published by sanjayaksaxena about 2 years ago
Published by sanjayaksaxena over 2 years ago
.bowOf()
api of BM25Vectorizer now supports processing of OOV tokens — useful for cosine similarity computation. 😎.pipeConfig()
to inquire the active processing pipeline.Published by sanjayaksaxena over 2 years ago
.bowOf()
api — useful for bow based similarity computation. 👍learnCustomEntities()
displays a console warning, if a complex short hand pattern is likely to cause learning/execution slow down.🤞❗️Published by sanjayaksaxena almost 3 years ago
.loadModel()
api. 🎉Published by sanjayaksaxena almost 3 years ago
Published by sanjayaksaxena about 3 years ago