Searched refs:from_list (Results 1 – 8 of 8) sorted by relevance
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_vocab.py | 34 vocab = text.Vocab.from_list(['深', '圳', '欢', '迎', '您']) 40 …vocab = text.Vocab.from_list("home IS behind the world ahead !".split(" "), ["<pad>", "<unk>"], Tr… 91 vocab = text.Vocab.from_list(vocab_input, special_tokens, special_first) 124 vocab = text.Vocab.from_list("home IS behind the world ahead !".split(" "), ["<pad>", ""], True) 136 vocab = text.Vocab.from_list("home IS behind the world ahead !".split(" "), ["<pad>", ""], True) 185 … vocab = text.Vocab.from_list(["w1", "w2", "w3"], special_tokens=["<unk>"], special_first=True)
|
D | test_text_bert_tokenizer.py | 182 vocab = text.Vocab.from_list(vocab_list) 211 vocab = text.Vocab.from_list(vocab_list) 251 vocab = text.Vocab.from_list(vocab_bert)
|
D | test_text_wordpiece_tokenizer.py | 106 vocab = text.Vocab.from_list(vocab_list) 126 vocab = text.Vocab.from_list(vocab_list)
|
/third_party/mindspore/mindspore/dataset/text/ |
D | utils.py | 81 def from_list(cls, word_list, special_tokens=None, special_first=True): member in Vocab 100 return super().from_list(word_list, special_tokens, special_first)
|
/third_party/python/Lib/ |
D | traceback.py | 24 for item in StackSummary.from_list(extracted_list).format(): 39 return StackSummary.from_list(extracted_list).format() 387 def from_list(klass, a_list): member in StackSummary
|
/third_party/python/Python/ |
D | import.c | 1787 PyObject *from_list = PyList_New(0); in PyImport_Import() local 1788 if (from_list == NULL) { in PyImport_Import() 1828 globals, from_list, 0, NULL); in PyImport_Import() 1842 Py_XDECREF(from_list); in PyImport_Import()
|
/third_party/python/Lib/test/ |
D | test_traceback.py | 1109 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')]) 1115 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')]) 1117 s2 = traceback.StackSummary.from_list(s) 1125 s = traceback.StackSummary.from_list([('foo.py', 1, 'fred', 'line')])
|
/third_party/python/Doc/library/ |
D | traceback.rst | 329 .. classmethod:: from_list(a_list)
|