@huggingface/transformers 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huggingface/transformers",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!",
5
5
  "main": "./src/transformers.js",
6
6
  "types": "./types/transformers.d.ts",
package/src/env.js CHANGED
@@ -26,7 +26,7 @@ import fs from 'fs';
26
26
  import path from 'path';
27
27
  import url from 'url';
28
28
 
29
- const VERSION = '3.5.1';
29
+ const VERSION = '3.5.2';
30
30
 
31
31
  // Check if various APIs are available (depends on environment)
32
32
  const IS_BROWSER_ENV = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -77,7 +77,7 @@ export class GenerationConfig {
77
77
 
78
78
  /**
79
79
  * Number of groups to divide `num_beams` into in order to ensure diversity among different groups of beams.
80
- * See [this paper](https://arxiv.org/pdf/1610.02424.pdf) for more details.
80
+ * See [this paper](https://huggingface.co/papers/1610.02424) for more details.
81
81
  * @type {number}
82
82
  * @default 1
83
83
  */
@@ -122,7 +122,7 @@ export class GenerationConfig {
122
122
  /**
123
123
  * Local typicality measures how similar the conditional probability of predicting a target token next is to the expected conditional probability of predicting a random token next, given the partial text already generated.
124
124
  * If set to float < 1, the smallest set of the most locally typical tokens with probabilities that add up to `typical_p` or higher are kept for generation.
125
- * See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
125
+ * See [this paper](https://huggingface.co/papers/2202.00666) for more details.
126
126
  * @type {number}
127
127
  * @default 1.0
128
128
  */
@@ -131,7 +131,7 @@ export class GenerationConfig {
131
131
  /**
132
132
  * If set to float strictly between 0 and 1, only tokens with a conditional probability greater than `epsilon_cutoff` will be sampled.
133
133
  * In the paper, suggested values range from 3e-4 to 9e-4, depending on the size of the model.
134
- * See [Truncation Sampling as Language Model Desmoothing](https://arxiv.org/abs/2210.15191) for more details.
134
+ * See [Truncation Sampling as Language Model Desmoothing](https://huggingface.co/papers/2210.15191) for more details.
135
135
  * @type {number}
136
136
  * @default 0.0
137
137
  */
@@ -141,7 +141,7 @@ export class GenerationConfig {
141
141
  * Eta sampling is a hybrid of locally typical sampling and epsilon sampling.
142
142
  * If set to float strictly between 0 and 1, a token is only considered if it is greater than either `eta_cutoff` or `sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits)))`.
143
143
  * The latter term is intuitively the expected next token probability, scaled by `sqrt(eta_cutoff)`. In the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
144
- * See [Truncation Sampling as Language Model Desmoothing](https://arxiv.org/abs/2210.15191) for more details.
144
+ * See [Truncation Sampling as Language Model Desmoothing](https://huggingface.co/papers/2210.15191) for more details.
145
145
  * @type {number}
146
146
  * @default 0.0
147
147
  */
@@ -157,7 +157,7 @@ export class GenerationConfig {
157
157
 
158
158
  /**
159
159
  * The parameter for repetition penalty. 1.0 means no penalty.
160
- * See [this paper](https://arxiv.org/pdf/1909.05858.pdf) for more details.
160
+ * See [this paper](https://huggingface.co/papers/1909.05858) for more details.
161
161
  * @type {number}
162
162
  * @default 1.0
163
163
  */
@@ -410,7 +410,7 @@ export class NoRepeatNGramLogitsProcessor extends LogitsProcessor {
410
410
  * This penalty is applied at most once per token. Note that, for decoder-only models like most LLMs,
411
411
  * the considered tokens include the prompt.
412
412
  *
413
- * In the original [paper](https://arxiv.org/pdf/1909.05858.pdf), the authors suggest the use of a
413
+ * In the original [paper](https://huggingface.co/papers/1909.05858), the authors suggest the use of a
414
414
  * penalty of around 1.2 to achieve a good balance between truthful generation and lack of repetition.
415
415
  * To penalize and reduce repetition, use `penalty` values above 1.0, where a higher value penalizes
416
416
  * more strongly. To reward and encourage repetition, use `penalty` values between 0.0 and 1.0, where
@@ -580,7 +580,7 @@ export class NoBadWordsLogitsProcessor extends LogitsProcessor {
580
580
  * correspond to the unconditional logits (predicted from an empty or 'null' prompt). The processor computes a
581
581
  * weighted average across the conditional and unconditional logits, parameterised by the `guidance_scale`.
582
582
  *
583
- * See [the paper](https://arxiv.org/abs/2306.05284) for more information.
583
+ * See [the paper](https://huggingface.co/papers/2306.05284) for more information.
584
584
  */
585
585
  export class ClassifierFreeGuidanceLogitsProcessor extends LogitsProcessor {
586
586
 
@@ -208,7 +208,11 @@ export class WhisperTextStreamer extends TextStreamer {
208
208
  this.on_chunk_start?.(time);
209
209
  }
210
210
  this.waiting_for_timestamp = !this.waiting_for_timestamp; // Toggle
211
- value = [[]]; // Skip timestamp
211
+
212
+ // NOTE: Timestamp tokens should not be printed. Although, since they
213
+ // aren't classified as "special tokens", we need to handle them here.
214
+ this.token_callback_function?.(tokens);
215
+ return;
212
216
  }
213
217
  }
214
218
  return super.put(value);
package/src/models.js CHANGED
@@ -7053,7 +7053,7 @@ export class DecisionTransformerPreTrainedModel extends PreTrainedModel { }
7053
7053
 
7054
7054
  /**
7055
7055
  * The model builds upon the GPT2 architecture to perform autoregressive prediction of actions in an offline RL setting.
7056
- * Refer to the paper for more details: https://arxiv.org/abs/2106.01345
7056
+ * Refer to the paper for more details: https://huggingface.co/papers/2106.01345
7057
7057
  */
7058
7058
  export class DecisionTransformerModel extends DecisionTransformerPreTrainedModel { }
7059
7059
 
package/src/pipelines.js CHANGED
@@ -1912,7 +1912,7 @@ export class AutomaticSpeechRecognitionPipeline extends (/** @type {new (options
1912
1912
  for (const aud of preparedAudios) {
1913
1913
  const inputs = await this.processor(aud);
1914
1914
 
1915
- // According to the [paper](https://arxiv.org/pdf/2410.15608):
1915
+ // According to the [paper](https://huggingface.co/papers/2410.15608):
1916
1916
  // "We use greedy decoding, with a heuristic limit of 6 output tokens
1917
1917
  // per second of audio to avoid repeated output sequences."
1918
1918
  const max_new_tokens = Math.floor(aud.length / sampling_rate) * 6;
package/src/tokenizers.js CHANGED
@@ -366,15 +366,19 @@ export class TokenizerModel extends Callable {
366
366
  return new BPE(config);
367
367
 
368
368
  default:
369
- // Some older tokenizers, like `google-t5/t5-small` and `distilbert/distilbert-base-uncased`, do not have a `type` field.
369
+ // Some older tokenizers, like `google-t5/t5-small`, `openai-community/gpt2`, and `distilbert/distilbert-base-uncased`, do not have a `type` field.
370
370
  // In this case, we can infer the tokenizer type based on the structure of the `vocab` field and other properties.
371
371
  if (config.vocab) {
372
372
  if (Array.isArray(config.vocab)) {
373
373
  // config.vocab is of type `[string, number][]`
374
374
  // @ts-ignore
375
375
  return new Unigram(config, ...args);
376
- } else if (typeof config.vocab === 'object' && config.continuing_subword_prefix && config.unk_token) {
377
- return new WordPieceTokenizer(config);
376
+ } else if (Object.hasOwn(config, 'continuing_subword_prefix') && Object.hasOwn(config, 'unk_token')) {
377
+ if (Object.hasOwn(config, 'merges')) {
378
+ return new BPE(config);
379
+ } else {
380
+ return new WordPieceTokenizer(config);
381
+ }
378
382
  } else {
379
383
  // @ts-ignore
380
384
  return new LegacyTokenizerModel(config, ...args);
@@ -3515,7 +3519,7 @@ function _build_translation_inputs(self, raw_inputs, tokenizer_options, generate
3515
3519
  * between any pair of 200+ languages — including low-resource languages like Asturian,
3516
3520
  * Luganda, Urdu and more. It aims to help people communicate with anyone, anywhere,
3517
3521
  * regardless of their language preferences. For more information, check out their
3518
- * [paper](https://arxiv.org/abs/2207.04672).
3522
+ * [paper](https://huggingface.co/papers/2207.04672).
3519
3523
  *
3520
3524
  * For a list of supported languages (along with their language codes),
3521
3525
  * @see {@link https://github.com/facebookresearch/flores/blob/main/flores200/README.md#languages-in-flores-200}
@@ -3546,7 +3550,7 @@ export class NllbTokenizer extends PreTrainedTokenizer {
3546
3550
  * The M2M100Tokenizer class is used to tokenize text for M2M100 ("Many-to-Many") models.
3547
3551
  *
3548
3552
  * M2M100 is a multilingual encoder-decoder (seq-to-seq) model trained for Many-to-Many
3549
- * multilingual translation. It was introduced in this [paper](https://arxiv.org/abs/2010.11125)
3553
+ * multilingual translation. It was introduced in this [paper](https://huggingface.co/papers/2010.11125)
3550
3554
  * and first released in [this](https://github.com/pytorch/fairseq/tree/master/examples/m2m_100) repository.
3551
3555
  *
3552
3556
  * For a list of supported languages (along with their language codes),
@@ -40,3 +40,11 @@ export * from './models/auto/processing_auto.js';
40
40
  export * from './generation/streamers.js';
41
41
  export * from './generation/stopping_criteria.js';
42
42
  export * from './generation/logits_process.js';
43
+
44
+ // Expose common types used across the library for developers to access
45
+ /**
46
+ * @typedef {import('./utils/hub.js').PretrainedModelOptions} PretrainedModelOptions
47
+ * @typedef {import('./base/processing_utils.js').PretrainedProcessorOptions} PretrainedProcessorOptions
48
+ * @typedef {import('./utils/dtypes.js').DataType} DataType
49
+ * @typedef {import('./utils/devices.js').DeviceType} DeviceType
50
+ */
@@ -65,7 +65,7 @@ export class GenerationConfig {
65
65
  num_beams: number;
66
66
  /**
67
67
  * Number of groups to divide `num_beams` into in order to ensure diversity among different groups of beams.
68
- * See [this paper](https://arxiv.org/pdf/1610.02424.pdf) for more details.
68
+ * See [this paper](https://huggingface.co/papers/1610.02424) for more details.
69
69
  * @type {number}
70
70
  * @default 1
71
71
  */
@@ -103,7 +103,7 @@ export class GenerationConfig {
103
103
  /**
104
104
  * Local typicality measures how similar the conditional probability of predicting a target token next is to the expected conditional probability of predicting a random token next, given the partial text already generated.
105
105
  * If set to float < 1, the smallest set of the most locally typical tokens with probabilities that add up to `typical_p` or higher are kept for generation.
106
- * See [this paper](https://arxiv.org/pdf/2202.00666.pdf) for more details.
106
+ * See [this paper](https://huggingface.co/papers/2202.00666) for more details.
107
107
  * @type {number}
108
108
  * @default 1.0
109
109
  */
@@ -111,7 +111,7 @@ export class GenerationConfig {
111
111
  /**
112
112
  * If set to float strictly between 0 and 1, only tokens with a conditional probability greater than `epsilon_cutoff` will be sampled.
113
113
  * In the paper, suggested values range from 3e-4 to 9e-4, depending on the size of the model.
114
- * See [Truncation Sampling as Language Model Desmoothing](https://arxiv.org/abs/2210.15191) for more details.
114
+ * See [Truncation Sampling as Language Model Desmoothing](https://huggingface.co/papers/2210.15191) for more details.
115
115
  * @type {number}
116
116
  * @default 0.0
117
117
  */
@@ -120,7 +120,7 @@ export class GenerationConfig {
120
120
  * Eta sampling is a hybrid of locally typical sampling and epsilon sampling.
121
121
  * If set to float strictly between 0 and 1, a token is only considered if it is greater than either `eta_cutoff` or `sqrt(eta_cutoff) * exp(-entropy(softmax(next_token_logits)))`.
122
122
  * The latter term is intuitively the expected next token probability, scaled by `sqrt(eta_cutoff)`. In the paper, suggested values range from 3e-4 to 2e-3, depending on the size of the model.
123
- * See [Truncation Sampling as Language Model Desmoothing](https://arxiv.org/abs/2210.15191) for more details.
123
+ * See [Truncation Sampling as Language Model Desmoothing](https://huggingface.co/papers/2210.15191) for more details.
124
124
  * @type {number}
125
125
  * @default 0.0
126
126
  */
@@ -134,7 +134,7 @@ export class GenerationConfig {
134
134
  diversity_penalty: number;
135
135
  /**
136
136
  * The parameter for repetition penalty. 1.0 means no penalty.
137
- * See [this paper](https://arxiv.org/pdf/1909.05858.pdf) for more details.
137
+ * See [this paper](https://huggingface.co/papers/1909.05858) for more details.
138
138
  * @type {number}
139
139
  * @default 1.0
140
140
  */
@@ -191,7 +191,7 @@ export class NoRepeatNGramLogitsProcessor extends LogitsProcessor {
191
191
  * This penalty is applied at most once per token. Note that, for decoder-only models like most LLMs,
192
192
  * the considered tokens include the prompt.
193
193
  *
194
- * In the original [paper](https://arxiv.org/pdf/1909.05858.pdf), the authors suggest the use of a
194
+ * In the original [paper](https://huggingface.co/papers/1909.05858), the authors suggest the use of a
195
195
  * penalty of around 1.2 to achieve a good balance between truthful generation and lack of repetition.
196
196
  * To penalize and reduce repetition, use `penalty` values above 1.0, where a higher value penalizes
197
197
  * more strongly. To reward and encourage repetition, use `penalty` values between 0.0 and 1.0, where
@@ -279,7 +279,7 @@ export class NoBadWordsLogitsProcessor extends LogitsProcessor {
279
279
  * correspond to the unconditional logits (predicted from an empty or 'null' prompt). The processor computes a
280
280
  * weighted average across the conditional and unconditional logits, parameterised by the `guidance_scale`.
281
281
  *
282
- * See [the paper](https://arxiv.org/abs/2306.05284) for more information.
282
+ * See [the paper](https://huggingface.co/papers/2306.05284) for more information.
283
283
  */
284
284
  export class ClassifierFreeGuidanceLogitsProcessor extends LogitsProcessor {
285
285
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"streamers.d.ts","sourceRoot":"","sources":["../../src/generation/streamers.js"],"names":[],"mappings":"AASA;IACI;;;OAGG;IACH,WAFW,MAAM,EAAE,EAAE,QAIpB;IAED;;OAEG;IACH,YAEC;CACJ;AAMD;;GAEG;AACH;IACI;;;;;;;;;OASG;IACH,uBARW,OAAO,kBAAkB,EAAE,mBAAmB,+GAEtD;QAA0B,WAAW,GAA7B,OAAO;QACW,mBAAmB,GAArC,OAAO;QAC0B,iBAAiB,GAAlD,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;QACa,uBAAuB,GAA1D,CAAS,IAAQ,EAAR,MAAM,EAAE,KAAG,IAAI;QACP,aAAa;KACxC,EAoBA;IAVG,0DAA0B;IAC1B,qBAA8B;IAC9B,oCAA0D;IAC1D,gCAfgB,MAAM,EAAE,KAAG,IAAI,CAeuB;IACtD,mBAAyE;IAGzE,mBAAqB;IACrB,kBAAkB;IAClB,gCAAkC;IA8DtC;;;;OAIG;IACH,wBAHW,MAAM,cACN,OAAO,QASjB;CACJ;AAED;;;;;;;GAOG;AACH;IACI;;;;;;;;;;;;OAYG;IACH,uBAZW,OAAO,kBAAkB,EAAE,gBAAgB,gKAEnD;QAA0B,WAAW,GAA7B,OAAO;QAC0B,iBAAiB,GAAlD,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;QACa,uBAAuB,GAA1D,CAAS,IAAQ,EAAR,MAAM,EAAE,KAAG,IAAI;QACS,cAAc,GAA/C,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;QACW,YAAY,GAA7C,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;QACK,WAAW,GAAtC,MAAY,IAAI;QACC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AG,IAAI;QACK,WAAW,GAAtC,MAAY,IAAI;QACC,cAAc,GAA/B,MAAM;QACY,mBAAmB,GAArC,OAAO;QACU,aAAa;KACxC,EA4BA;IATG,wBAAgD;IAEhD,uBA3BgB,MAAM,KAAG,IAAI,CA2BO;IACpC,qBA3BgB,MAAM,KAAG,IAAI,CA2BG;IAChC,mBA3BmB,IAAI,CA2BO;IAE9B,uBAAoC;IAEpC,+BAAkC;CAqCzC"}
package/types/models.d.ts CHANGED
@@ -3588,7 +3588,7 @@ export class DecisionTransformerPreTrainedModel extends PreTrainedModel {
3588
3588
  }
3589
3589
  /**
3590
3590
  * The model builds upon the GPT2 architecture to perform autoregressive prediction of actions in an offline RL setting.
3591
- * Refer to the paper for more details: https://arxiv.org/abs/2106.01345
3591
+ * Refer to the paper for more details: https://huggingface.co/papers/2106.01345
3592
3592
  */
3593
3593
  export class DecisionTransformerModel extends DecisionTransformerPreTrainedModel {
3594
3594
  }
@@ -482,7 +482,7 @@ export class Grok1Tokenizer extends PreTrainedTokenizer {
482
482
  * between any pair of 200+ languages — including low-resource languages like Asturian,
483
483
  * Luganda, Urdu and more. It aims to help people communicate with anyone, anywhere,
484
484
  * regardless of their language preferences. For more information, check out their
485
- * [paper](https://arxiv.org/abs/2207.04672).
485
+ * [paper](https://huggingface.co/papers/2207.04672).
486
486
  *
487
487
  * For a list of supported languages (along with their language codes),
488
488
  * @see {@link https://github.com/facebookresearch/flores/blob/main/flores200/README.md#languages-in-flores-200}
@@ -505,7 +505,7 @@ export class NllbTokenizer extends PreTrainedTokenizer {
505
505
  * The M2M100Tokenizer class is used to tokenize text for M2M100 ("Many-to-Many") models.
506
506
  *
507
507
  * M2M100 is a multilingual encoder-decoder (seq-to-seq) model trained for Many-to-Many
508
- * multilingual translation. It was introduced in this [paper](https://arxiv.org/abs/2010.11125)
508
+ * multilingual translation. It was introduced in this [paper](https://huggingface.co/papers/2010.11125)
509
509
  * and first released in [this](https://github.com/pytorch/fairseq/tree/master/examples/m2m_100) repository.
510
510
  *
511
511
  * For a list of supported languages (along with their language codes),
@@ -1 +1 @@
1
- {"version":3,"file":"tokenizers.d.ts","sourceRoot":"","sources":["../src/tokenizers.js"],"names":[],"mappings":"AAmNA;;;;;;;;;;;;;GAaG;AACH,oCAHW,MAAM,GAAC,MAAM,GACX,OAAO,CAanB;;KAxO0E,GAC1E;UAA0B,GAAE;;AA0T7B;;;;GAIG;AACH;IA0BI;;;;;;OAMG;IACH,wCAJc,GAAC,EAAA,GACF,cAAc,CA8B1B;IA3DD;;;OAGG;IACH,yBAmBC;IAjBG,YAAoB;IAEpB,uBAAuB;IACvB,OADW,MAAM,EAAE,CACJ;IAEf;;;OAGG;IACH,eAFU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAEC;IAE9B,kBAA6B;IAC7B,eAA0B;IAC1B,wBAAmC;IAEnC,uFAAuF;IACvF,UADW,OAAO,CAC2B;IAuCjD;;;;OAIG;IACH,cAHW,MAAM,EAAE,GACN,MAAM,EAAE,CASpB;IAED;;;;;OAKG;IACH,eAJW,MAAM,EAAE,GACN,MAAM,EAAE,CAKpB;IAED;;;;OAIG;IACH,8BAHW,MAAM,EAAE,GACN,MAAM,EAAE,CAIpB;IAED;;;;OAIG;IACH,2BAHW,MAAM,EAAE,GAAC,MAAM,EAAE,GACf,MAAM,EAAE,CAIpB;CACJ;;KAva0E,GAC1E;UAA0B,GAAE;;AAw/E7B;;;;GAIG;AAEH;IA0II;;;;;;;;OAQG;IACH,sDANW,MAAM,kFACN,0BAA0B,GAGxB,OAAO,CAAC,mBAAmB,CAAC,CAsBxC;IAnKD;;;;OAIG;IACH,sDAqGC;IA7GD,+BAA8B;IAE9B,qBAAuB;IASnB,uBAAwC;IAGxC,uBAAiE;IACjE,4BAAyE;IACzE,sBAA4E;IAC5E,8BAA4E;IAC5E,iBAAwD;IAGxD,sBAAwB;IACxB,0BAAyB;IAEzB,2BAA2B;IAC3B,cADW,UAAU,EAAE,CACD;IAetB,+BAAgF;IAehF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ACN,MAAM,CAIjB;IAED;;;;;;OAMG;IACH,qBAJW,MAAM,EAAE,GACN,MAAM,EAAE,CAKpB;CAEJ;AA7nDD;;;;;GAKG;AACH;IACI;;;;;;;;;;OAUG;IACH,oBARG;QAAuB,OAAO,EAAtB,MAAM;QACS,EAAE,EAAjB,MAAM;QACW,WAAW,GAA5B,OAAO;QACU,MAAM,GAAvB,OAAO;QACU,MAAM,GAAvB,OAAO;QACU,UAAU,GAA3B,OAAO;QACU,OAAO,GAAxB,OAAO;KACjB,EASA;IAPG,gBAA6B;IAC7B,WAAmB;IACnB,qBAA8C;IAC9C,gBAAoC;IACpC,gBAAoC;IACpC,iBAAsC;IACtC,oBAA2C;CAElD;mCA/QM,4BAA4B;uBARZ,mBAAmB"}
@@ -20,4 +20,8 @@ export * from "./generation/logits_process.js";
20
20
  export { FeatureExtractor } from "./base/feature_extraction_utils.js";
21
21
  export { ImageProcessor } from "./base/image_processors_utils.js";
22
22
  export { Processor } from "./base/processing_utils.js";
23
+ export type PretrainedModelOptions = import("./utils/hub.js").PretrainedModelOptions;
24
+ export type PretrainedProcessorOptions = import("./base/processing_utils.js").PretrainedProcessorOptions;
25
+ export type DataType = import("./utils/dtypes.js").DataType;
26
+ export type DeviceType = import("./utils/devices.js").DeviceType;
23
27
  //# sourceMappingURL=transformers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../src/transformers.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../src/transformers.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;qCA6Ca,OAAO,gBAAgB,EAAE,sBAAsB;yCAC/C,OAAO,4BAA4B,EAAE,0BAA0B;uBAC/D,OAAO,mBAAmB,EAAE,QAAQ;yBACpC,OAAO,oBAAoB,EAAE,UAAU"}