Skip to content

Commit

Permalink
Add signature
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger authored and Narsil committed Aug 11, 2021
1 parent 9046fd7 commit 413b646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/src/trainers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ impl PyWordLevelTrainer {
/// The number of iterations of the EM algorithm to perform before
/// pruning the vocabulary.
#[pyclass(extends=PyTrainer, module = "tokenizers.trainers", name=UnigramTrainer)]
#[text_signature = "(self, vocab_size=8000, show_progress=True, special_tokens= [])"]
#[text_signature = "(self, vocab_size=8000, show_progress=True, special_tokens=[], shrinking_factor=0.75, unk_token=None, max_piece_length=16, n_sub_iterations=2)"]
pub struct PyUnigramTrainer {}
#[pymethods]
impl PyUnigramTrainer {
Expand Down

0 comments on commit 413b646

Please sign in to comment.