Crash on RPi 4 4GB RAM 64-bit
Indeed, it’s dangerous to ask Gladys for the weather… Global warming is certainly to blame!
Shit, this is crazy, does that mean the feature never worked on Raspberry Pi?
I can’t believe it, @GBoulvin did it work before or not? ^^
Because I tested all versions of Gladys up to 4.1.0, and it never actually worked.
No idea… I apparently never asked that in the discussion!
In December 2020 that was supposed to be v4.0.0
I’ll test it, maybe that’s it
I tested under 4.0.0 (but on Bullseye), and it doesn’t work
There must be something with the OS version, it’s weird..
@VonOx does any of this ring a bell for you?
It works, but not all the time, I’ve tested it several times in a row.
It doesn’t work, but every now and then it does.
I ran a test in « back to basics » mode, I took the example file from the library:
const { NlpManager } = require('node-nlp');
const manager = new NlpManager({ languages: ['en'], forceNER: true });
// Adds the utterances and intents for the NLP
manager.addDocument('en', 'goodbye for now', 'greetings.bye');
manager.addDocument('en', 'bye bye take care', 'greetings.bye');
manager.addDocument('en', 'okay see you later', 'greetings.bye');
manager.addDocument('en', 'bye for now', 'greetings.bye');
manager.addDocument('en', 'i must go', 'greetings.bye');
manager.addDocument('en', 'hello', 'greetings.hello');
manager.addDocument('en', 'hi', 'greetings.hello');
manager.addDocument('en', 'howdy', 'greetings.hello');
// Train also the NLG
manager.addAnswer('en', 'greetings.bye', 'Till next time');
manager.addAnswer('en', 'greetings.bye', 'see you soon!');
manager.addAnswer('en', 'greetings.hello', 'Hey there!');
manager.addAnswer('en', 'greetings.hello', 'Greetings!');
// Train and save the model.
(async() => {
await manager.train();
manager.save();
const response = await manager.process('en', 'I should go now');
console.log(response);
})();
And I get the following times:
train: 128.303ms
save: 7.273ms
process: 7.126s
With a total script execution time of 21 seconds.
So yes, clearly the Pi 3 struggles even with simple examples
I ran a test on Node 16, same thing: 7 seconds on the simple example
Well, I’m a bit stuck — according to some people here, I have the impression that this feature worked at some point, but it’s impossible to see how it could have worked (on my side, on a Raspberry Pi 3B+, I can’t get this feature to work, regardless of the Gladys version)
I’m going to stop for today; if anyone has any ideas I’m all ears!
Not at all ![]()
