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?
{ name: 'sports', patterns: '[cricket|football]' }
.
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 ) ..
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.
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.
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)