An open API service indexing awesome lists of open source software.

https://github.com/t94j0/chatbot-tokenizer

Tokenizer for chat messages
https://github.com/t94j0/chatbot-tokenizer

chatbot discord tokenizer

Last synced: 2 months ago
JSON representation

Tokenizer for chat messages

Awesome Lists containing this project

README

          

# Tokenizer for text messages

## Setup

`pip3 install -U chatbottokenizer`

## Usage

```py
from chatbottokenizer import Tokenizer

INPUT_STRING = '!bot create george'
tokens = Tokenizer('!bot', INPUT_STRING)
if tokens.match('create '):
items = tokens.items()
print('Name is: {}'.format(items['name']))
```

Note: `.items()` must be called after a `.match()`