Skip to content

Natural Language Understanding (NLU) library for MK Bot

Notifications You must be signed in to change notification settings

mgylabs/mkbot-nlu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mulgyeol MK Bot NLU

Natural Language Understanding (NLU) library for MK Bot

Usage

from mkbot_nlu.utils import Intent, register_intent

@register_intent("command::music::play", "play")
def cmd_play(intent: Intent):
    if query := intent.get_an_entity("music_query"):
        return f"play {query}"
    else:
        return "play"

Development Guide

Building from source

To install dependencies, execute:

poetry install -E full

Running the Tests

poetry run pytest

About

Natural Language Understanding (NLU) library for MK Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages