@@ -312,7 +312,10 @@ impl PyBpeTrainer {
312312 }
313313
314314 #[ 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+ ) ]
316319 pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
317320 let mut builder = tk:: models:: bpe:: BpeTrainer :: builder ( ) ;
318321 if let Some ( kwargs) = kwargs {
@@ -518,7 +521,7 @@ impl PyWordPieceTrainer {
518521 #[ new]
519522 #[ pyo3(
520523 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)"
522525 ) ]
523526 pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
524527 let mut builder = tk:: models:: wordpiece:: WordPieceTrainer :: builder ( ) ;
@@ -659,7 +662,10 @@ impl PyWordLevelTrainer {
659662 }
660663
661664 #[ 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+ ) ]
663669 pub fn new ( kwargs : Option < & Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
664670 let mut builder = tk:: models:: wordlevel:: WordLevelTrainer :: builder ( ) ;
665671
@@ -826,7 +832,7 @@ impl PyUnigramTrainer {
826832 #[ new]
827833 #[ pyo3(
828834 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)"
830836 ) ]
831837 pub fn new ( kwargs : Option < Bound < ' _ , PyDict > > ) -> PyResult < ( Self , PyTrainer ) > {
832838 let mut builder = tk:: models:: unigram:: UnigramTrainer :: builder ( ) ;
0 commit comments