Problem with num2words and Intent recognition

Hey there,
When using Number Ranges, Pocketsphinx picks it up correctly, but FuzzyWuzzy fails.

(German Profile)
Sentences.ini

[Timer]
setze Timer auf (1…100){zahl} (Minuten | Sekunden){zeiteinheit}

Log Output:

[WARNING:3719524] HomeAssistantIntentHandler: Empty intent. Not sending to Home Assistant
[DEBUG:3719522] WebSocketObserver: {“text”: “Schalte Laptop aus”, “intent”: {“name”: “”, “confidence”: 0.86}, “entities”: [], “speech_confidence”: 0.5197143932633764, “wakeId”: “snowboy/jarvis.pmdl”, “siteId”: “default”, “slots”: {}}
[DEBUG:3719521] DialogueManager: recognizing -> handling
[DEBUG:3719520] DialogueManager: {‘text’: ‘Schalte Laptop aus’, ‘intent’: {‘name’: ‘’, ‘confidence’: 0.86}, ‘entities’: [], ‘speech_confidence’: 0.5197143932633764, ‘wakeId’: ‘snowboy/jarvis.pmdl’, ‘siteId’: ‘default’}
[WARNING:3719517] FuzzyWuzzyRecognizer: Intent did not meet confidence threshold: 0.86 < 0.9
[DEBUG:3718998] DialogueManager: decoding -> recognizing
[DEBUG:3718997] DialogueManager: setze Timer auf zehn Minuten (confidence=0.5197143932633764)
[DEBUG:3718995] PocketsphinxDecoder: setze Timer auf zehn Minuten
[DEBUG:3718994] PocketsphinxDecoder: Transcription confidence: 0.5197143932633764
[DEBUG:3718991] PocketsphinxDecoder: Decoded WAV in 1.4488649368286133 second(s)

Or

[DEBUG:3635938] WebSocketObserver: {“text”: “setze Timer auf __convert__int __convert__int eins __converted__int __converted__int Minuten”, “intent”: {“name”: “”, “confidence”: 0.86}, “entities”: [], “speech_confidence”: 0.5746671867265383, “wakeId”: “snowboy/jarvis.pmdl”, “siteId”: “default”, “slots”: {}}
[WARNING:3635938] HomeAssistantIntentHandler: Empty intent. Not sending to Home Assistant
[DEBUG:3635936] APlayAudioPlayer: [‘aplay’, ‘-q’, ‘/usr/share/rhasspy/etc/wav/beep_error.wav’]
[DEBUG:3635936] DialogueManager: recognizing -> handling
[DEBUG:3635934] DialogueManager: {‘text’: ‘setze Timer auf __convert__int __convert__int eins __converted__int __converted__int Minuten’, ‘intent’: {‘name’: ‘’, ‘confidence’: 0.86}, ‘entities’: [], ‘speech_confidence’: 0.5746671867265383, ‘wakeId’: ‘snowboy/jarvis.pmdl’, ‘siteId’: ‘default’}
[WARNING:3635931] FuzzyWuzzyRecognizer: Intent did not meet confidence threshold: 0.86 < 0.9
[DEBUG:3635460] DialogueManager: decoding -> recognizing
[DEBUG:3635459] DialogueManager: setze Timer auf zehn Minuten (confidence=0.5746671867265383)
[DEBUG:3635456] PocketsphinxDecoder: setze Timer auf zehn Minuten
[DEBUG:3635455] PocketsphinxDecoder: Transcription confidence: 0.5746671867265383
[DEBUG:3635452] PocketsphinxDecoder: Decoded WAV in 1.595719575881958 second(s)

Thanks in advance :slight_smile:

Hi @Sikk
I had the same issues with numbers and fuzzywuzzy… So I’m using OpenFST, which is working well for me. I hope it will help you too

This solved it - thank you very much :slight_smile:

1 Like