Compare commits

..

No commits in common. "7ecb7dd90ac2cd5e9f3c63db0886eab768cebfee" and "a10569b5ab0ac7b2b57362e5afd466148e416f76" have entirely different histories.

2 changed files with 8 additions and 5 deletions

View File

@ -72,8 +72,8 @@ def main() -> None:
).serialize()
)
elif args.subparser_name == "classify":
with open(args.model, "rb") as f:
model = gptc.deserialize(f.read())
with open(args.model, "r") as f:
model = json.load(f)
classifier = gptc.Classifier(model, args.max_ngram_length)

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "gptc"
version = "3.0.0"
version = "2.1.3"
description = "General-purpose text classifier"
readme = "README.md"
authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}]
@ -12,12 +12,15 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
]
dependencies = ["emoji"]
dependencies = []
requires-python = ">=3.7"
[project.optional-dependencies]
emoji = ["emoji"]
[project.urls]
Homepage = "https://git.kj7rrv.com/kj7rrv/gptc"