@@ -312,7 +312,10 @@ impl PyBpeTrainer {
312
312
}
313
313
314
314
#[ new]
315
- #[ pyo3( signature = ( * * kwargs) , text_signature = None ) ]
315
+ #[ pyo3(
316
+ signature = ( * * kwargs) ,
317
+ text_signature = "(self, vocab_size=30000, min_frequency=0, show_progress=True, special_tokens=[], limit_alphabet=None, initial_alphabet=[], continuing_subword_prefix=None, end_of_word_suffix=None, max_token_length=None, words={})"
318
+ ) ]
316
319
pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
317
320
let mut builder = tk:: models:: bpe:: BpeTrainer :: builder ( ) ;
318
321
if let Some ( kwargs) = kwargs {
@@ -518,7 +521,7 @@ impl PyWordPieceTrainer {
518
521
#[ new]
519
522
#[ pyo3(
520
523
signature = ( * * kwargs) ,
521
- text_signature = "(self, vocab_size=30000, min_frequency=0, show_progress=True, special_tokens=[], limit_alphabet=None, initial_alphabet= [],continuing_subword_prefix=\" ##\" , end_of_word_suffix=None)"
524
+ text_signature = "(self, vocab_size=30000, min_frequency=0, show_progress=True, special_tokens=[], limit_alphabet=None, initial_alphabet=[], continuing_subword_prefix=\" ##\" , end_of_word_suffix=None)"
522
525
) ]
523
526
pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
524
527
let mut builder = tk:: models:: wordpiece:: WordPieceTrainer :: builder ( ) ;
@@ -659,7 +662,10 @@ impl PyWordLevelTrainer {
659
662
}
660
663
661
664
#[ new]
662
- #[ pyo3( signature = ( * * kwargs) , text_signature = None ) ]
665
+ #[ pyo3(
666
+ signature = ( * * kwargs) ,
667
+ text_signature = "(self, vocab_size=30000, min_frequency=0, show_progress=True, special_tokens=[])"
668
+ ) ]
663
669
pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
664
670
let mut builder = tk:: models:: wordlevel:: WordLevelTrainer :: builder ( ) ;
665
671
@@ -826,7 +832,7 @@ impl PyUnigramTrainer {
826
832
#[ new]
827
833
#[ pyo3(
828
834
signature = ( * * kwargs) ,
829
- 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)"
835
+ text_signature = "(self, vocab_size=8000, show_progress=True, special_tokens=[], initial_alphabet=[], shrinking_factor=0.75, unk_token=None, max_piece_length=16, n_sub_iterations=2)"
830
836
) ]
831
837
pub fn new ( kwargs : Option < Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
832
838
let mut builder = tk:: models:: unigram:: UnigramTrainer :: builder ( ) ;
0 commit comments