You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the nlu, the library emits 418 log messages of the form:
Epoch 1 loss 0.132985497437162 time 0ms
Epoch 418 loss 0.00014440620801799714 time 0ms
There is no way to disable it from configuration that I could find. I created MR #1363 that shows how to disable it permanently. From the MR:
The nlu was configured to log by default. I am pretty sure that it cannot be disabled programmatically because there are no settings passed into it from the nlu. It is also extremely annoying to have these log messages output by default. All I did was disable it, but imo, it should probably be using the configured logger, instead of a console.log. I'd also expect that maybe some settings should be passed into the train().
import{containerBootstrap}from"@nlpjs/core";import{Nlp}from"@nlpjs/nlp";constcontainer=awaitcontainerBootstrap();constnlp=newNlp({languages: ["de"],forceNER: true,nlu: {log: false}},// is doing the trickcontainer);// then use container as desired container.use(LangDe);
Describe the bug
When using the nlu, the library emits 418 log messages of the form:
There is no way to disable it from configuration that I could find. I created MR #1363 that shows how to disable it permanently. From the MR:
It is extremely annoying. Please fix.
To Reproduce
Expected behavior
Verbose logging should not be enabled by default.
Logging should be configurable.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: