paddlenlp.data.collate.po 6.89 KB
Newer Older
yuguo-Jack's avatar
yuguo-Jack committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2021, PaddleNLP
# This file is distributed under the same license as the PaddleNLP package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PaddleNLP \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-18 21:31+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"

#: ../source/paddlenlp.data.collate.rst:2
msgid "collate"
msgstr ""

#: of paddlenlp.data.collate.Dict:1 paddlenlp.data.collate.Pad:1
#: paddlenlp.data.collate.Stack:1 paddlenlp.data.collate.Tuple:1
msgid "基类::class:`object`"
msgstr ""

#: of paddlenlp.data.collate.Stack:1
msgid ""
"Stacks the input data samples to construct the batch. The N input samples"
" must have the same shape/length and will be stacked to construct a "
"batch."
msgstr ""

#: of paddlenlp.data.collate.Dict paddlenlp.data.collate.Dict.__call__
#: paddlenlp.data.collate.Pad paddlenlp.data.collate.Pad.__call__
#: paddlenlp.data.collate.Stack paddlenlp.data.collate.Stack.__call__
#: paddlenlp.data.collate.Tuple paddlenlp.data.collate.Tuple.__call__
msgid "参数"
msgstr ""

#: of paddlenlp.data.collate.Stack:4
msgid ""
"The axis in the result data along which the input data are stacked. "
"Default: 0."
msgstr ""

#: of paddlenlp.data.collate.Stack:7
msgid ""
"The value type of the output. If it is set to None, the type of input "
"data is used. Default: None."
msgstr ""

#: of paddlenlp.data.collate.Stack.__call__:1
msgid "Batchifies the input data by stacking."
msgstr ""

#: of paddlenlp.data.collate.Pad.__call__:6
#: paddlenlp.data.collate.Stack.__call__:3
msgid ""
"The input data samples. It is a list. Each element is a numpy.ndarray or "
"list."
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__ paddlenlp.data.collate.Pad.__call__
#: paddlenlp.data.collate.Stack.__call__ paddlenlp.data.collate.Tuple.__call__
msgid "返回"
msgstr ""

#: of paddlenlp.data.collate.Stack.__call__:7
msgid "Stacked batch data."
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__ paddlenlp.data.collate.Pad.__call__
#: paddlenlp.data.collate.Stack.__call__ paddlenlp.data.collate.Tuple.__call__
msgid "返回类型"
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__:14
#: paddlenlp.data.collate.Pad.__call__:18
#: paddlenlp.data.collate.Stack.__call__:11
#: paddlenlp.data.collate.Tuple.__call__:14
msgid "示例"
msgstr ""

#: of paddlenlp.data.collate.Pad:1
msgid "Pads the input data samples to the largest length at `axis`."
msgstr ""

#: of paddlenlp.data.collate.Pad:3
msgid "The padding value. Default: 0."
msgstr ""

#: of paddlenlp.data.collate.Pad:5
msgid ""
"The axis to pad the arrays. The arrays will be padded to the largest "
"length at `axis`. For example, assume the input arrays have shape (10, 8,"
" 5), (6, 8, 5), (3, 8, 5) and the axis is 0. Each input will be padded "
"into (10, 8, 5) and then stacked to form the final output, which has "
"shape (3, 10, 8, 5). Default: 0."
msgstr ""

#: of paddlenlp.data.collate.Pad:12
msgid ""
"If it is bool, indicate whether to return the valid length in the output,"
" and the data type of returned length is int32 if True. If it is "
"numpy.dtype, indicate the data type of returned length. Default: None."
msgstr ""

#: of paddlenlp.data.collate.Pad:17
msgid ""
"The value type of the output. If it is set to None, the input data type "
"is used. Default: None."
msgstr ""

#: of paddlenlp.data.collate.Pad:20
msgid ""
"Whether the padding direction is right-side. If True, it indicates we pad"
" to the right side, while False indicates we pad to the left side. "
"Default: True."
msgstr ""

#: of paddlenlp.data.collate.Pad.__call__:1
msgid ""
"Batchifies the input data by padding. The input will be padded to the "
"largest dimension at `axis` and then stacked to form the final output. In"
" addition, the function will output the original dimensions at the `axis`"
" if `ret_length` is not None or False."
msgstr ""

#: of paddlenlp.data.collate.Pad.__call__:10
msgid ""
"If `ret_length` is False, it is a numpy.ndarray representing the padded "
"batch data and the shape is (N, …). Otherwise, it is a tuple, besides the"
" padded batch data, the tuple also includes a numpy.ndarray representing "
"original length at `axis` of all input samples, which shaped `(N,)`."
msgstr ""

#: of paddlenlp.data.collate.Dict:1 paddlenlp.data.collate.Tuple:1
msgid ""
"Wraps multiple batchify functions together. The input functions will be "
"applied to the corresponding input fields."
msgstr ""

#: of paddlenlp.data.collate.Tuple:4
msgid ""
"Each sample should be a list or tuple containing multiple fields. The "
"i'th batchify function stored in Tuple will be applied on the i'th field."
msgstr ""

#: of paddlenlp.data.collate.Tuple:7
msgid ""
"For example, when data sample is (nd_data, label), you can wrap two "
"batchify functions using `Tuple(DataBatchify, LabelBatchify)` to batchify"
" nd_data and label correspondingly."
msgstr ""

#: of paddlenlp.data.collate.Tuple:11
msgid ""
"The batchify functions to wrap. It is a callable function or a list/tuple"
" of callable functions."
msgstr ""

#: of paddlenlp.data.collate.Tuple:14
msgid "The additional batchify functions to wrap."
msgstr ""

#: of paddlenlp.data.collate.Tuple.__call__:1
msgid ""
"Batchifies data samples by applying each function on the corresponding "
"data field, and each data field is produced by stacking the field data of"
" samples."
msgstr ""

#: of paddlenlp.data.collate.Tuple.__call__:5
msgid ""
"The samples to batchfy. Each sample in list/tuple should contain `N` "
"fields."
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__:9
#: paddlenlp.data.collate.Tuple.__call__:9
msgid "A tuple composed of results from all including batchifying functions."
msgstr ""

#: of paddlenlp.data.collate.Dict:4
msgid ""
"Each sample should be a dict containing multiple fields. Each batchify "
"function with key stored in `Dict` will be applied on the field which has"
" the same key."
msgstr ""

#: of paddlenlp.data.collate.Dict:8
msgid ""
"For example, when data sample is {'tokens': tokens, 'labels': labels}, "
"you can wrap two batchify functions using `Dict({'tokens': DataBatchify, "
"'labels': LabelBatchify})` to batchify tokens and labels correspondingly."
msgstr ""

#: of paddlenlp.data.collate.Dict:13
msgid ""
"The batchify functions to wrap. It is a dict, which values is callable "
"functions."
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__:1
msgid ""
"Batchifies data samples by applying each function on the corresponding "
"data field, and each data field is produced by stacking the field data "
"with the same key as batchify functions of all samples."
msgstr ""

#: of paddlenlp.data.collate.Dict.__call__:5
msgid ""
"The samples to batchfy. Each sample in list/tuple is a dict with `N` key-"
"values."
msgstr ""