Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Thain Breese
    @tmpacifitech
    hello.. can I use wink-nlp package in typescript?

    const nlp = wink_nlp_1.default(wink_eng_lite_model_1.default);
    ^

    TypeError: wink_nlp_1.default is not a function
    at Object.<anonymous> (/Volumes/DATA/Projects/INhouse/backend/dist/parser/articles/article.parser.js:7:31)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)

    Prateek Saxena
    @prtksxna
    Hey @tmpacifitech 🙋🏾‍♂️ Could you share a little bit more of the code that is running this? I am not super-familiar wit Typescript, but might be able to help you troubleshoot.
    RYeah Sh
    @pantchox
    Hi there, I think wink is awesome! I wanted to know is there a way to have entity sentiment? for example if there are to subjects in a sentence, instead of doing a "global" sentiment for the whole sentence, do for each entity, for example "London is cold and I don't like it, Paris is warm and nice!" so the entities I assume here is "London" with negetive sentiment and "Paris" with positive sentiment. Any idea how to achieve this? thanks!
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @pantchox one possible way could be to (a) split text into sentences, (b) extract sentence wise sentiment score using its.sentiment helper, and finally (c) look for the entity and assign the score to that entity.
    @pantchox request you to refer to the winkNLP's getting started documentation.
    Nihal Mittal
    @codescientist703
    Hello everyone, I have a doubt regarding the projects. I was wondering if the two projects given on the Github externship projects page- Writing Assistant and Automated Summary & Keyword extraction are two separate projects or they are 1 project only?
    Rachna Chakraborty
    @rachnachakraborty
    @codescientist703 You are right, these are 2 projects - a) Writing Assistant and b) Automated Summary & Keyword extraction. In case you need further discussion, please join the slack link for graype queries https://app.slack.com/client/T01V7TZ3NR2/C023X3KUQ2U
    RYeah Sh
    @pantchox
    @sanjayaksaxena thank you! i will check it
    Nihal Mittal
    @codescientist703
    @rachnachakraborty , Thank you! I will check it out.
    Priyaraj17
    @Priyaraj17
    Hey everyone, I am Priyaraj, I am interested in working on the project 'winkNLP' as part of the github externship program. I would love some information on what are the things that I should focus on while writing my proposal. How can I get more information related to the project?
    Rachna Chakraborty
    @rachnachakraborty
    Hi @Priyaraj17 Great to hear that! Please join https://app.slack.com/client/T01V7TZ3NR2/C023X3KUQ2U to view our pre-reqs shared on the forum.
    Priyaraj17
    @Priyaraj17
    Thank you so much
    Adam Carolli
    @adamocarolli
    Hi all, I was wondering if others have used winkjs with skypack (https://www.skypack.dev/) or unpkg to avoid requiring a bundler in the browser?
    I've published an attempt at using it in the browser with an observablehq notebook here: https://observablehq.com/@adamocarolli/wink-nlp It appears like the model has loaded correctly, however, when I use helper functions from its or as to transform the output I don't get any changes ie. doc.tokens().out( its.type, as.freqTable ) // -> [ 'Hello', 'World', '🌎', '!', 'How', 'are', 'you', '?' ]
    Adam Carolli
    @adamocarolli
    Let me know if you have any ideas on what is going on and thank you for building winkjs it seems like a great tool for NLP in the browser!
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @adamocarolli Thanks for your question! Sometime ago we also got stuck and paused further exploration; today with your question, we had an epiphany!! We have released a new version that resolves this problem. The problem was occurring because these helpers are functions and within the .out() api there were many manipulations on these functions AND on browser these were failing. Now you should not use require to obtain the its and as helpers; instead use winkNLP instance to acquire them. Please see https://observablehq.com/@winkjs/testbed-for-winknlp for exact details.
    Adam Carolli
    @adamocarolli
    Excellent! Glad my question was of some help here and thank you for both releasing the new version and providing a test bed @sanjayaksaxena. I have a feeling now that you've enabled winkjs on observable the d3.js community is gonna pick it up and make some amazing data visualization with it!
    Adam Carolli
    @adamocarolli
    I had one more question: I'm making the assumption that the model you're using for pos and ner outputs a set of associated confidence scores. Is there a way to retrieve these scores? For example, if winkNLP labels the token months as a NOUN I'd like to be able to retrieve how confident the model is in that labelling. I've built an example workflow here to demonstrate this idea: https://observablehq.com/@adamocarolli/winknlp-example-confidence-score-interface
    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