增加环绕侦察场景适配
This commit is contained in:
@@ -6,6 +6,13 @@ class Trainer:
|
||||
This class is not supposed to be instantiated directly. Instead, any implementation of a
|
||||
Trainer will return an instance of this class when instantiated.
|
||||
"""
|
||||
def __getstate__(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
def __setstate__(self, state):
|
||||
""" """
|
||||
pass
|
||||
|
||||
class BpeTrainer(Trainer):
|
||||
"""
|
||||
@@ -60,6 +67,104 @@ class BpeTrainer(Trainer):
|
||||
):
|
||||
pass
|
||||
|
||||
def __getstate__(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
def __setstate__(self, state):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def continuing_subword_prefix(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@continuing_subword_prefix.setter
|
||||
def continuing_subword_prefix(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def end_of_word_suffix(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@end_of_word_suffix.setter
|
||||
def end_of_word_suffix(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def initial_alphabet(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@initial_alphabet.setter
|
||||
def initial_alphabet(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def limit_alphabet(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@limit_alphabet.setter
|
||||
def limit_alphabet(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def max_token_length(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@max_token_length.setter
|
||||
def max_token_length(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def min_frequency(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@min_frequency.setter
|
||||
def min_frequency(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def show_progress(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@show_progress.setter
|
||||
def show_progress(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def special_tokens(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@special_tokens.setter
|
||||
def special_tokens(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def vocab_size(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@vocab_size.setter
|
||||
def vocab_size(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
class UnigramTrainer(Trainer):
|
||||
"""
|
||||
Trainer capable of training a Unigram model
|
||||
@@ -107,6 +212,54 @@ class UnigramTrainer(Trainer):
|
||||
):
|
||||
pass
|
||||
|
||||
def __getstate__(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
def __setstate__(self, state):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def initial_alphabet(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@initial_alphabet.setter
|
||||
def initial_alphabet(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def show_progress(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@show_progress.setter
|
||||
def show_progress(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def special_tokens(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@special_tokens.setter
|
||||
def special_tokens(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def vocab_size(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@vocab_size.setter
|
||||
def vocab_size(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
class WordLevelTrainer(Trainer):
|
||||
"""
|
||||
Trainer capable of training a WorldLevel model
|
||||
@@ -127,6 +280,54 @@ class WordLevelTrainer(Trainer):
|
||||
def __init__(self, vocab_size=30000, min_frequency=0, show_progress=True, special_tokens=[]):
|
||||
pass
|
||||
|
||||
def __getstate__(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
def __setstate__(self, state):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def min_frequency(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@min_frequency.setter
|
||||
def min_frequency(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def show_progress(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@show_progress.setter
|
||||
def show_progress(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def special_tokens(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@special_tokens.setter
|
||||
def special_tokens(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def vocab_size(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@vocab_size.setter
|
||||
def vocab_size(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
class WordPieceTrainer(Trainer):
|
||||
"""
|
||||
Trainer capable of training a WordPiece model
|
||||
@@ -171,3 +372,91 @@ class WordPieceTrainer(Trainer):
|
||||
end_of_word_suffix=None,
|
||||
):
|
||||
pass
|
||||
|
||||
def __getstate__(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
def __setstate__(self, state):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def continuing_subword_prefix(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@continuing_subword_prefix.setter
|
||||
def continuing_subword_prefix(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def end_of_word_suffix(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@end_of_word_suffix.setter
|
||||
def end_of_word_suffix(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def initial_alphabet(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@initial_alphabet.setter
|
||||
def initial_alphabet(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def limit_alphabet(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@limit_alphabet.setter
|
||||
def limit_alphabet(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def min_frequency(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@min_frequency.setter
|
||||
def min_frequency(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def show_progress(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@show_progress.setter
|
||||
def show_progress(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def special_tokens(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@special_tokens.setter
|
||||
def special_tokens(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@property
|
||||
def vocab_size(self):
|
||||
""" """
|
||||
pass
|
||||
|
||||
@vocab_size.setter
|
||||
def vocab_size(self, value):
|
||||
""" """
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user