Home
last modified time | relevance | path

Searched refs:from_list (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/tests/ut/python/dataset/
Dtest_vocab.py34 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)
Dtest_text_bert_tokenizer.py182 vocab = text.Vocab.from_list(vocab_list)
211 vocab = text.Vocab.from_list(vocab_list)
251 vocab = text.Vocab.from_list(vocab_bert)
Dtest_text_wordpiece_tokenizer.py106 vocab = text.Vocab.from_list(vocab_list)
126 vocab = text.Vocab.from_list(vocab_list)
/third_party/mindspore/mindspore/dataset/text/
Dutils.py81 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/
Dtraceback.py24 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/
Dimport.c1787 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/
Dtest_traceback.py1109 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/
Dtraceback.rst329 .. classmethod:: from_list(a_list)