An NLP tokenization algorithm that is a trainable layer for neural networks.
Project description
This is a package for a concept about a tokenization algorithm that is a neural network layer, training as part of a model trying to solve some NLP task, to make tokens that are best for the task. You can find more information on the GitHub repository.
This package mainly consists of the TokenizationLayer, which is a tf.keras layer doing the described above. However it also contains initializers for the layer's parameter, a function for one-hot encoding a string as letters, and an Embedding layer, that doesn't have to be the first layer in the network unlike the official keras version.
Documentation for this package is here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tokenization-layer-0.0.2.tar.gz.
File metadata
- Download URL: tokenization-layer-0.0.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94e7ddd3caafadca2d1cd4c3bd91d6f31be4831f60f42dcc1b6aff55d99b47fd
|
|
| MD5 |
1d5fd9b26a265e93e702b8d5b8fd3ad6
|
|
| BLAKE2b-256 |
72e1e9ce38fcd73793398694c911b7db78814723f086ebc8525a12c43e9290fe
|
File details
Details for the file tokenization_layer-0.0.2-py3-none-any.whl.
File metadata
- Download URL: tokenization_layer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e609e944804dc979d48da7d65039dbf02a0e32e481eb6ac01b194e625e377251
|
|
| MD5 |
e0cb7da9cf67e4a617cf3b5c6e586d6e
|
|
| BLAKE2b-256 |
4b588765654f541831ba3887f6f2256e52b655b5eb5cd8039e8661c1d0db9eb1
|