Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rachna Chakraborty
    @rachnachakraborty
    @genderev Thank You.
    @genderev Please feel free to write to us for any inputs on use of winkjs packages. All the best!
    Ender Minyard
    @genderev
    How do you use the winkJS node modules in the browser? I tried using browserify for the bm25 text search with no success.
    1 reply
    Prateek Saxena
    @prtksxna
    genderev: Were you able to get it running?
    Ateeq
    @wenning247_twitter
    Does Wink support the Arabic language in sentiment analysis.
    1 reply
    or how do i tran the model to do such thing
    Labs
    @labs20
    Hi there. Great work! Are word2vec and doc2vec on your plans?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Thanks! Yes they are in our roadmap and will be released in some time.
    Ron Dahan
    @RonDaha
    Hey, is there a way to also config a context for an entity? let's say i am looking for an entity but need to check if that entity found in a context of other entity or a certain words? regarding the NPL Package - learnCustomEntities()
    Pallavi Ratra
    @pallaviratra
    Hello, could you please elaborate your query with an example. That’ll help us in giving you the appropriate response!
    Rakesh PK
    @pkrakesh_twitter
    Can we use Wink js with react native?
    Alex Harwood
    @alexanderpharwood
    Hiya, I am using Wink (thank you very much for the project), to extract keywords from PDFs. I am wondering if it is possible to extend the dictionary (lexicon?) of the tokeniser so that it recognises multiple words as one token, for instance "Microsoft office", or "United Kingdom". Perhaps there is another feature I should be using for this instead of the tokeniser? Apologies if this has already been documented and I have missed it! Any help appreciated. Cheers
    Alex Harwood
    @alexanderpharwood
    After some further research, the addRegex method seems to do exactly what I want. I have a rather large list of custom tokens, do you imagine there will be any significant performance issues if I were to add a few thousand for example?
    Sanjaya Kumar Saxena
    @sanjayaksaxena
    Please look at https://winkjs.org/wink-nlp/custom-entities.html — should fulfill your need. Even with a large data set you should get a good performance.
    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.