Open Macilias opened 3 years ago
I was able to fix this problem, sort of.
I went to the JS file where this error was occurring, I believe it’s in node-nlp-rn/lib/classifiers/neural-network.js, and made some changes. Comment out:
const hrstart = process.hrtime();
and replace it with
const hrstart = performance.now();
Then you’ll need to go down a few lines and comment out the hrend, and replace it with:
const hrend = process.now() - hrstart;
It’s not as precise, but it’ll let it run on RN.
Describe the bug I'm trying to follow your example for react-native, and after importing
import { NlpManager } from 'node-nlp-rn';
from the rn package and calling the train method on the manager (after adding the documents and answers as in the example) I get the following warning:Secondly: While I still get the answer form
manager.process
I wonder how to obtain the types for the package to satisfy:Is there a type package planned or am I missing something? Thanks!
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect no warnings
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):