Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 515 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 515 Bytes

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