mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Move to maturing mimicking move for safetensors
. + Rewritten node bindings. (#1331)
* Move to maturing mimicking move for `safetensors`. * Tmp. * Fix sdist. * Wat? * Clippy 1.72 * Remove if. * Conda sed. * Fix doc check workflow. * Moving to maturin AND removing http + openssl mess (smoothing transition moving to `huggingface_hub`) * Fix dep * Black. * New node bindings. * Fix docs + node cache ? * Yarn. * Working dir. * Extension module. * Put back interpreter. * Remove cache. * New attempt * Multi python. * Remove FromPretrained. * Remove traces of `fromPretrained`. * Drop 3.12 for windows? * Typo. * Put back the default feature for ignoring links during simple test. * Fix ? * x86_64 -> x64. * Remove warning for windows bindings. * Excluse aarch. * Include/exclude. * Put back workflows in correct states.
This commit is contained in:
7
bindings/node/types.ts
Normal file
7
bindings/node/types.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export type TextInputSequence = string
|
||||
export type PreTokenizedInputSequence = string[]
|
||||
export type InputSequence = TextInputSequence | PreTokenizedInputSequence
|
||||
|
||||
export type TextEncodeInput = TextInputSequence | [TextInputSequence, TextInputSequence]
|
||||
export type PreTokenizedEncodeInput = PreTokenizedInputSequence | [PreTokenizedInputSequence, PreTokenizedInputSequence]
|
||||
export type EncodeInput = TextEncodeInput | PreTokenizedEncodeInput
|
Reference in New Issue
Block a user