Lightweight NLP library in pure Python - currently implements a text classifier
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# SPDX-License-Identifier: GPL-3.0-or-later |
|
|
|
import gptc.compiler |
|
from typing import Dict, Union, cast, List |
|
|
|
|
|
def model_has_emoji(model: gptc.compiler.MODEL) -> bool: |
|
return cast(int, model.get("__emoji__", 0)) == 1
|
|
|