
How can I sort by property using a collator ? (Java)
Jul 25, 2019 · Collator spCollator = Collator.getInstance(new Locale("es", "ES")); I expect the output to be a sublist sorted by alphabetical order by the property which you can access with …
What should collator do exactly? - Stack Overflow
Mar 12, 2024 · What should collator do exactly? Asked 1 year, 10 months ago Modified 1 year, 9 months ago Viewed 248 times
python - How to use huggingface HF trainer train with custom …
Aug 10, 2023 · I have some custom data set with custom table entries and wanted to deal with it with a custom collate. But it didn't work when I pass a collate function I wrote (that DOES work …
java - Sort List of Strings with Localization - Stack Overflow
31 I think this what you should be using - Collator The Collator class performs locale-sensitive String comparison. You use this class to build searching and sorting routines for natural …
How to deal with DataCollator and DataLoaders in Huggingface?
Feb 2, 2023 · I have issues combining a DataLoader and DataCollator. The following code with DataCollatorWithPadding results in a ValueError: Unable to create tensor, you should probably …
How to use Huggingface Data Collator - Stack Overflow
Apr 20, 2022 · If you look at this, you'll see that their collator uses the return_tensors="tf" argument. If you add this to your collator, your code for using the collator will work. In short, …
Huggingface SFT for completion only not working - Stack Overflow
Aug 8, 2023 · 1 I have a similar issue. I think you're forgetting to add formatting_func function. Also, by default setting dataset_text_field overrides the use of the collator, so try without that …
How to use 'collate_fn' with dataloaders? - Stack Overflow
Dec 13, 2020 · Basically, the collate_fn receives a list of tuples if your __getitem__ function from a Dataset subclass returns a tuple, or just a normal list if your Dataset subclass returns only one …
Where can I find a specific set of collation rules for equality ...
Dec 6, 2011 · 3 I can't find any existing Collator for danish; the built-in one for the Danish locale is supposed to be correct. I am not sure that your assumption that ae should be sorted with æ …
ValueError: expected sequence of length 129 at dim 1 (got 46)
Jul 18, 2024 · from transformers import VisionEncoderDecoderModel, AutoTokenizer, AutoFeatureExtractor, Seq2SeqTrainer, Seq2SeqTrainingArguments, default_data_collator …