Testing error
See original GitHub issueThe following test is failing:
const winkNLP = require('wink-nlp')
, model = require('wink-eng-lite-model')
, nlp = winkNLP(model)
;
let en_text = 'Dear Sonia, good morning! For elaboration I ask the following information: As for the admission I clarify: There is no device'
, doc = nlp.readDoc(en_text)
;
console.log(doc.sentences().out());
console.log(doc.entities().out());
console.log(doc.tokens().out());
With the error:
/Volumes/Work/Developer/Web/rdr_playground/node_modules/wink-eng-lite-model/src/pos-updater.js:1
var updater=function(a,b,c){var d=b.cache;for(let e=0;e<a.length;e+=1){const f=a[e][2],g=a[e][0];0>f?c[g]=Math.abs(f):d.isMemberPOS(b.tokens[4*g],f)&&(c[g]=f)}};module.exports=updater;
^
TypeError: Cannot read property 'isMemberPOS' of undefined
at updater (/Volumes/Work/Developer/Web/rdr_playground/node_modules/wink-eng-lite-model/src/pos-updater.js:1:121)
at Object.readDoc (/Volumes/Work/Developer/Web/rdr_playground/node_modules/wink-nlp/src/wink-nlp.js:272:7)
at Object.<anonymous> (/Volumes/Work/Developer/Web/rdr_playground/test.js:17:17)
at Module._compile (internal/modules/cjs/loader.js:1128:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:983:32)
at Function.Module._load (internal/modules/cjs/loader.js:891:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Training and Testing Errors - CMU Statistics
Estimating test error. Often, we want an accurate estimate of the test error of our method (e.g., linear regression). Why? Two main purposes:....
Read more >Software Testing Errors to look out for (with examples)
In this article, we discuss some common software testing errors that a tester should be aware of. These errors are explained with examples...
Read more >Type I and type II errors - Wikipedia
In statistical hypothesis testing, a type I error is the mistaken rejection of an actually true null hypothesis while a type II error...
Read more >What is Error Guessing Technique? - Software Testing Help
It is an experience-based testing technique where the Test Analyst uses his/her experience to guess the problematic areas of the application.
Read more >Training & Test Error: Validating Models in Machine Learning
There are two important concepts used in machine learning: the training error and the test error. Learn how to prevent mistakes in model ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Glad to help!
I’m very interested in this lib, its looking quite good.
My main language of interest is brazilian portuguese. Can I hope for a model for that?
Thanks!
Hi. I’m still doing some tests on other stuff, but planing to dive into it soon, probably next week.
Will be my pleasure to help.
Let me know how.