Skip to content

Commit

Permalink
fix: support ai21_tokenizer.__version__ (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
asafgardin authored Nov 22, 2023
1 parent 83cbbea commit 13944eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ai21_tokenizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
from ai21_tokenizer.base_tokenizer import BaseTokenizer
from ai21_tokenizer.jurassic_tokenizer import JurassicTokenizer
from ai21_tokenizer.utils import load_json
from .version import VERSION

_LOCAL_RESOURCES_PATH = Path(__file__).parent / "resources"

MODEL_EXTENSION = ".model"
MODEL_CONFIG_FILENAME = "config.json"

__version__ = VERSION


class PreTrainedTokenizers:
J2_TOKENIZER = "j2-tokenizer"
Expand Down
1 change: 1 addition & 0 deletions ai21_tokenizer/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = "0.3.5"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ version_toml = [
"pyproject.toml:tool.poetry.version"
]
version_variables = [
"version.py:__version__"
"ai21_tokenizer/version.py:VERSION"
]
match = "(main)"
upload_to_release = true
Expand Down
1 change: 0 additions & 1 deletion version.py

This file was deleted.

0 comments on commit 13944eb

Please sign in to comment.