Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @adamocarolli good idea indeed but right now this is not available and will take sometime before we can expose these values.
    Adam Carolli
    @adamocarolli
    No worries @sanjayaksaxena; I'll take a look at the codebase and see if I might be able to implement. Thanks for the help!
    Fernando Carpani
    @Carpani
    Hello. First to the first: excellent packages for newbies in NLP !
    I'm trying to use Wink to process articles for some kind of Systematic Review.
    There is any way to combine collections and get a new collection? (union, intersection,etc...)
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hello @Carpani delighted to note that you found winkNLP useful. Can you please elaborate your use-case a little more with an example?
    Ron Dahan
    @RonDaha
    Hello! wanted to asked about most frequently occurring for phrases. i try to process product
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hello @RonDaha your question is not clear — please explain the problem clearly including the package that you are referring to.
    Ron Dahan
    @RonDaha
    Sorry it was sent before i completed, so what i am aim for is to detect repeated phrases. so it's not just repeated words. but to collect all the repeated phrases from multiple strings
    let's take the bm25-text-search you implemented here. i want to use this logic but also that it would be able to mark repeated common phrases. and not that i will manually search for it in the text.
    Ron Dahan
    @RonDaha
    So it's kinda like bagOfWords from the nlp-utils library but with the option for a semantic similar words, if that make sense
    Ron Dahan
    @RonDaha
    Ok so after googling for a while i understood i am looking for TF-IDF mechanism
    Rachna Chakraborty
    @rachnachakraborty
    Hello @RonDaha, would like you to explore the bm25vectorizer utility. For this you will have to use wink-nlp package instead wink-nlp-utils. The examples on the page are simple to follow and implement.
    Ron Dahan
    @RonDaha
    Amazing! thanks a lot @rachnachakraborty
    niranjan
    @niranja33050187_twitter
    Hi all. I have been using the wink library built from past couple of days and appreciate the detailing of the functionalities and the ease of use. Just had a question around the wink-naive-bayes-text-classifier. From the example provided it is clear to use and I was able to use it well.
    nbc.learn( 'I want to prepay my loan', 'prepay' );
    in the above line, can i train it for multiple tokens. like below
    nbc.learn( 'I want to prepay my loan', ['prepay', 'loans', 'amount'] );
    And also when it is used for predicting, can it return multiple tokens?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @niranja33050187_twitter it does not support assignment of multiple labels to a single intent.
    niranjan
    @niranja33050187_twitter
    hi @sanjayaksaxena can wink-naive-bayes-text-classifier support multiple languages?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @niranja33050187_twitter yes, it is language agnostic.
    niranjan
    @niranja33050187_twitter
    Can I see an example for language support using wink-naive-bayes-text-classifier?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @niranja33050187_twitter please checkout https://runkit.com/sanjaya/6128e6f8192462001548b330 at RunKit.
    niranjan
    @niranja33050187_twitter
    @sanjayaksaxena thanks for the example. really helpful library. Also just fr understanding sake, does the library use Python internally with Javascript as wrapper on it?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @niranja33050187_twitter All winkjs packages, including wink-naive-bayes-text-classifier, are pure javascript and have zero external dependencies.
    1 reply
    Phill Duffy
    @phillduffy
    Hi - is it possible to detect questions? It's proving a difficult thing to Google for.
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @phillduffy please provide more context so that one can understand the exact question.
    Eric Vida
    @ericvida
    How can I make new models for new languages. Is there a repo with different language models?
    Eric Vida
    @ericvida
    I don't see any good documentation on how to make models such as the existing english model.
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @ericvida right now the model creation part is not yet open-sourced, that is why there is no documentation. We are working towards making it ready for o/s.
    Stellasphere
    @stellasphere
    Is it possible to do custom named entity recognition with winkjs?
    Rachna Chakraborty
    @rachnachakraborty
    Hi @stellasphere yes winkNLP has custom entity definition and recognition. Follow this link to get started https://winkjs.org/wink-nlp/custom-entities.html
    Stellasphere
    @stellasphere
    Hi @rachnachakraborty thanks for the quick response. I'll check more in-depth later, but at first glance, it seems like this is POS tagging.
    I may be wrong about it as I am still new to NLP, but I am trying to recreate what MonkeyLearn's "Text Extractor" does (https://monkeylearn.com/text-extractors/) which I think is called Named Entity Recognition. Is that what winkjs's custom entities does?
    Rachna Chakraborty
    @rachnachakraborty
    wink-nlp has APIs for extracting Entities ( Named Entity Recognition ) and Custom Entities as well. You can define text patterns comprising of Postags, Named Entities, Literals and much more. Please refer to this link for defining custom entities https://winkjs.org/wink-nlp/learn-custom-entities.html
    Saurav Joshi
    @sauravjoshi23
    image.png
    Hi, can anyone please share the slack workspace id which can be entered here?
    Saurav Joshi
    @sauravjoshi23
    As I want to join the slack channel.
    4 replies
    Gaurav Bhattacharjee
    @guilefoylegaurav

    It was only recently that I discovered wink nlp and I could not help but succumb to getting awestruck. I have also realized that the entire ecosystem uses no external dependencies, which has made it all the more interesting.

    I am extremely interested in contributing and have been studying the code. I was curious to know to know how the NER works, for a start. I have been reading the code for the gazetter based NER but would appreciate a walkthrough for clarity, as it would greatly aid to my comprehension of the code.

    Rachna Chakraborty
    @rachnachakraborty
    Hi @guilefoylegaurav delighted to know that you liked wink-nlp and would like to contribute. It would be a good idea to begin with reading the wink-nlp's user documentation. You can read more about contribution here.
    Sean Brunnock
    @brunnock
    On https://winkjs.org/wink-nlp/item.html , there's a sentence on the bottom that states, "Some of the properties are language dependent such as it.stem." Is there an object called "it" or is it a typo?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @brunnock It is a typo. "Its" is a helper, here is an example:
    const winkNLP = require( 'wink-nlp' );
    const its = require( 'wink-nlp/src/its.js' );
    const model = require( 'wink-eng-lite-web-model' );
    const nlp = winkNLP( model );
    
    const text = 'My mother had a beautiful singing voice.';
    const doc = nlp.readDoc( text );
    // Print tokens.
    console.log( doc.tokens().out() );
    // Print each token's stem.
    console.log( doc.tokens().out( its.stem ) );

    The above code will print:

    ["My", "mother", "had", "a", "beautiful", "singing", "voice", "."]
    ["my", "mother", "had", "a", "beauti", "sing", "voic", "."]

    @brunnock

    4 replies