e4eb322aa7
Bump version to 3.1.0
2022-11-26 18:37:11 -08:00
83ef71e8ce
Remove doc for gptc classify --category
2022-11-26 18:36:41 -08:00
991d3fd54a
Revert "Bump version to 3.1.0"
...
This reverts commit b3e6a13e65
.
2022-11-26 18:36:18 -08:00
b3e6a13e65
Bump version to 3.1.0
2022-11-26 18:34:04 -08:00
b1228edd9c
Add CLI for Model.get()
2022-11-26 18:28:44 -08:00
25192ffddf
Add ability to look up individual token
...
Closes #10
2022-11-26 18:17:02 -08:00
548d670960
Use Classifier for --category
2022-11-26 17:50:26 -08:00
b3a43150d8
Split hash function
2022-11-26 17:42:42 -08:00
08437a2696
Add normalize()
2022-11-26 17:17:28 -08:00
fc4665bb9e
Separate tokenization and hashing
2022-11-26 17:04:56 -08:00
30287288f2
Fix README issues
2022-11-26 16:45:30 -08:00
448f200923
Add confidence
to Model; deprecate Classifier
2022-11-26 16:41:29 -08:00
b4766cb613
Bump version to 3.0.1
2022-11-25 19:44:32 -08:00
f1a1ed9e2a
Remove most emoji-optional code
...
Almost all of the code previously used to make the emoji module optional
is removed in this commit. It was always my intent to make the `emoji`
module a hard dependency in v3.0.0 and remove the code for making it
optional, but for some reason I remembered to do the former but not the
latter; in fact, I added emoji-optional code to the new model handling
code. I can't completely remove this code because 3.0.0 will not
successfully deserialize a model without the `has_emoji` field in the
JSON config options, but this commit removes as much as possible without
breaking the model format and API version.
See also issue #11
2022-11-25 19:39:31 -08:00
7ecb7dd90a
Bump version to 3.0.0
2022-11-23 17:48:46 -08:00
3340abbf15
Fix CLI tool
2022-11-23 17:47:27 -08:00
a10569b5ab
New model format
...
Use Model objects and binary serialization format
2022-11-23 17:01:04 -08:00
f4ae5f851d
Hash words and ngrams
2022-11-23 12:53:01 -08:00
1d1ccbb7cc
Add min_count
2022-11-23 11:42:58 -08:00
e17c79c231
Remove obsolete licensing note in README
2022-11-23 11:34:55 -08:00
af1d1749d2
Refactor word count dict in compiler
...
This makes future changes to the algorithm much simpler.
2022-11-23 11:33:40 -08:00
aea35ad059
Switch to GPL
2022-11-23 11:28:27 -08:00
30a2ebe33e
Bump version to 2.1.3
2022-11-22 11:47:40 -08:00
4cb8b71407
Merge branch 'master' of https://git.kj7rrv.com/kj7rrv/gptc
2022-11-22 11:46:13 -08:00
7d1cbcaee0
Make sure text is lowercase
2022-11-22 11:44:13 -08:00
82524345f3
Update 'README.md'
2022-09-23 19:15:16 -07:00
c2cd6f62fb
Revert "Switch to statistics.stdev
"
...
This reverts commit 76df1dc56d
.
Fix major performance regression
2022-07-22 14:45:43 -07:00
76df1dc56d
Switch to statistics.stdev
2022-07-22 14:22:01 -07:00
ad138b37d6
Bump version to 2.1.2
2022-07-21 11:49:59 -07:00
3634a10aeb
Fix another emoji bug
2022-07-21 11:49:35 -07:00
7250787228
Bump version to 2.1.1
2022-07-20 14:06:56 -07:00
9538cf8c22
Fix emoji handling
2022-07-20 14:06:27 -07:00
185692790f
Add emoji checks, improve docs
2022-07-19 19:15:59 -07:00
73b800d60d
remove python -m
2022-07-19 17:02:57 -07:00
b61ad35ae7
Bump version to v2.1.0
2022-07-19 17:01:08 -07:00
dc6eb48625
Optional dependency on emoji
2022-07-19 16:43:39 -07:00
ff8cba84c7
format pack.py
2022-07-19 16:02:05 -07:00
8c6dd0bde9
Type checks for pack
2022-07-19 10:43:10 -07:00
5082c2226b
Move pack to main module; format code
2022-07-18 16:03:58 -07:00
e711767d24
Add type checks to all functions that need them
2022-07-17 18:42:38 -07:00
67ac3a4591
Working type checks
2022-07-17 18:22:19 -07:00
b36d8e6081
Fix annotations
2022-07-17 17:08:11 -07:00
48639f5d8d
Non-working type checks
2022-07-17 16:51:19 -07:00
a207e281e7
Format code with black
2022-07-17 16:28:04 -07:00
e272ab42d1
Document emojis
2022-07-17 16:27:16 -07:00
bd0028a108
Add emoji support to tokenizer
2022-07-17 16:14:02 -07:00
62c3c27ddd
Remove license
field from pyproject.toml
2022-07-14 20:06:48 -07:00
70e1f542df
Fix pyproject.toml syntax
2022-07-14 20:02:07 -07:00
f6b3e942d5
Fix license in pyproject.toml
2022-07-14 19:58:22 -07:00
80428e1bbf
Switch to pyproject.toml
2022-07-14 19:18:16 -07:00