Compare commits
2 Commits
a10569b5ab
...
7ecb7dd90a
Author | SHA1 | Date | |
---|---|---|---|
7ecb7dd90a | |||
3340abbf15 |
|
@ -72,8 +72,8 @@ def main() -> None:
|
||||||
).serialize()
|
).serialize()
|
||||||
)
|
)
|
||||||
elif args.subparser_name == "classify":
|
elif args.subparser_name == "classify":
|
||||||
with open(args.model, "r") as f:
|
with open(args.model, "rb") as f:
|
||||||
model = json.load(f)
|
model = gptc.deserialize(f.read())
|
||||||
|
|
||||||
classifier = gptc.Classifier(model, args.max_ngram_length)
|
classifier = gptc.Classifier(model, args.max_ngram_length)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "gptc"
|
name = "gptc"
|
||||||
version = "2.1.3"
|
version = "3.0.0"
|
||||||
description = "General-purpose text classifier"
|
description = "General-purpose text classifier"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}]
|
authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}]
|
||||||
|
@ -12,15 +12,12 @@ classifiers = [
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
dependencies = []
|
dependencies = ["emoji"]
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
emoji = ["emoji"]
|
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://git.kj7rrv.com/kj7rrv/gptc"
|
Homepage = "https://git.kj7rrv.com/kj7rrv/gptc"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user