Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Alex Harwood
    @alexanderpharwood
    Brilliant -- much appreciated!
    Wenzel
    @creadicted

    Really nice work you have done here!

    Do you have a recommendation how to extract the entity (if one is associated) for each word in a sentence? So far I connect the Information from different sources of 'doc' and it feels really hacky. Also - When extracting the entities - is there a way to find out what type it is?

    Pallavi Ratra
    @pallaviratra
    Hi @creadicted , you can look at the example here https://winkjs.org/wink-nlp/entities.html to see how to extract entities from a specific sentence. To extract the entity types you can use the "its.detail" property explained here - https://winkjs.org/wink-nlp/its-as-helper.html
    Wenzel
    @creadicted
    Thank you! SO there is no POS like command with entities? Then I don't build something that someone else made already :)
    hariom-sinha58
    @hariom-sinha58
    I want to classify my tags of words or tokens into categories. Is this possible here
    ?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @hariom-sinha58 can you please give an example of what exactly you are looking for?
    hariom-sinha58
    @hariom-sinha58
    I have a form builder where I am providing users to add Tags like their Skills or Hobbies..so lets say they selected JavaScript, Cricket, Football, Harry Potter, Python.. so based on these tokens i would be able to classify that person's interests into sports, coding, other, etc
    Thanks for quick response :)
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @hariom-sinha58 One of the simplest approach would be to use custom entities — https://winkjs.org/wink-nlp/custom-entities.html — where you can map each word or words to its category (i.e. entity) e.g. { name: 'sports', patterns: '[cricket|football]' }.
    hariom-sinha58
    @hariom-sinha58
    Thank You Sir for your quick response. I implemented the same use-case today using your Named Entity Representation approach and Kudos.. It works Great. Though, there are few findings from my side, which was a bit not expected from the output from the model. I am still looking into that, to figure out, if that it is a training issue. Stories apart, I need a minified Version of the WINK to directly put into the JS. Would that be possible ?

    Findings:

    var trainingData = [
    { text: 'c++', entityType: 'core-skill'},
    { text: 'c#', entityType: 'core-skill' },
    ];
    ner.learn( trainingData );

    var r = 'cricket c# c++ football php mysql my sql.'

    Output failing for c# and c++. I cant understand how model is behaving for this, I am getting tokenised value as c,+,+ and c#,# with no proper output. But, If i give training as c + + or c #, ( i.e. with spaces, it works ) ..

    One last query ? Can the Sentiment API works for multi language ?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Hi @hariom-sinha58 this is the expected behavior as custom entity detection happens on "tokens" — this is mentioned in the link shared with you. Currently we have model for only English language. However winkNLP is capable of multiple languages.
    hariom-sinha58
    @hariom-sinha58
    Thanks Sir for all the valuable inputs.
    hariom-sinha58
    @hariom-sinha58
    Hi,

    While bundling the library for
    const model = require( 'wink-eng-lite-model' );
    const nlp = winkNLP( model );

    I am getting below error :

    bundle.js:2172 Uncaught TypeError: require.resolve is not a function
    at Object.loadModel [as core] (bundle.js:2172)
    at load (bundle.js:177730)
    at nlp (bundle.js:177972)
    at Object.5.wink-eng-lite-model (bundle.js:2028)
    at o (bundle.js:1)
    at r (bundle.js:1)
    at bundle.js:1

    Any hints on where am i doing wrong ? IIt seems to be working well with normal JS. But while using Browserify, I am getting this issue.

    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @hariom-sinha58 please use wink-eng-lite-web-model instead of wink-eng-lite-model, whenever you need to browsify. Please refer to https://winkjs.org/wink-nlp/how-to-run-wink-nlp-in-browser.html for more details.
    hariom-sinha58
    @hariom-sinha58
    Ok. Thanks Sir.
    One quick question Sir, All the Libraries that are exposed by WINK, are they ASync in nature ?
    Rachna Chakraborty
    @rachnachakraborty
    Hi @hariom-sinha58 winkjs APIs are are not async but they can be wrapped in async calls to deliver the desired output. An example of such a code can be found on our site:https://winkjs.org/wink-nlp/how-to-run-nlp-on-pdf.html
    Wen-Chieh Lee
    @wjlee-barco
    In Wink, is there any API to detect a sentence is completed or not? Thx
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    @wjlee-barco it has api to detect sentences from text. It can not detect if a sentence is grammatically complete.
    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.