Datasets:
Publish fleurs in Lance format (#1)
Browse files- Publish fleurs in Lance format (a4f6d0eb021e452b934d8b5d910a601dc762eb99)
Files changed (31)
- .gitattributes+7
- LICENSE-CC-BY-4.0.txtAdded+396
- README.md+77-215
- lance/source-files.lance/_indices/6ae3200d-209d-4cda-bfe2-08326d51c18d/page_data.lanceAdded
- lance/source-files.lance/_indices/6ae3200d-209d-4cda-bfe2-08326d51c18d/page_lookup.lanceAdded
- lance/source-files.lance/_transactions/0-be45164e-5288-456e-a449-fc4b334ee4b1.txnAdded
- lance/source-files.lance/_transactions/1-b1cf49da-975e-496a-a525-044bccc2e022.txnAdded
- lance/source-files.lance/_versions/18446744073709551613.manifestAdded
- lance/source-files.lance/_versions/18446744073709551614.manifestAdded
- lance/source-files.lance/_versions/latest_version_hint.jsonAdded+1
- lance/source-files.lance/data/00000001001001010111111008f842429187a13312e8ddb985.lanceAdded+3
- lance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/auxiliary.idxAdded+3
- lance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/index.idxAdded+3
- lance/utterances.lance/_transactions/0-9c3d9e31-1ce2-457d-ba4b-1040e040a18e.txnAdded
- lance/utterances.lance/_transactions/1-af0da244-ea04-4e36-baa9-e68b6ecdc081.txnAdded
- lance/utterances.lance/_versions/18446744073709551613.manifestAdded
- lance/utterances.lance/_versions/18446744073709551614.manifestAdded
- lance/utterances.lance/_versions/latest_version_hint.jsonAdded+1
- lance/utterances.lance/data/001100101010000111101001c9d17a42cfbc54512f639b6677.lanceAdded+3
- lance/utterances.lance/data/001101111111001010001111e0c2a04bfdac12177e43fd528f.lanceAdded+3
- lance/utterances.lance/data/10001010011010111000011183cdbc4083a0f7e23d65a9922b.lanceAdded+3
- lance/utterances.lance/data/111111000010001001101101367f814e638d86680b59ebb1c3.lanceAdded+3
- release-info.jsonAdded+538
- source/.gitattributesAdded+38
- source/README.mdAdded
- source/flores101/LICENSE.txtAdded+427
- source/flores101/README.mdAdded+296
- source/flores101/metadata_dev.tsvAdded
- source/flores101/metadata_devtest.tsvAdded
- source/flores101/utterance-attribution.tsvAdded
- source/inventory.jsonlAdded
35 unmodified lines36373835 unmodified lines*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text35 unmodified lines3637383940414243444535 unmodified lines*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -textlance/source-files.lance/data/00000001001001010111111008f842429187a13312e8ddb985.lance filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/auxiliary.idx filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/index.idx filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/data/001100101010000111101001c9d17a42cfbc54512f639b6677.lance filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/data/001101111111001010001111e0c2a04bfdac12177e43fd528f.lance filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/data/10001010011010111000011183cdbc4083a0f7e23d65a9922b.lance filter=lfs diff=lfs merge=lfs -textlance/utterances.lance/data/111111000010001001101101367f814e638d86680b59ebb1c3.lance filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm anddoes not provide legal services or legal advice. Distribution ofCreative Commons public licenses does not create a lawyer-client orother relationship. Creative Commons makes its licenses and relatedinformation available on an "as-is" basis. Creative Commons gives nowarranties regarding its licenses, any material licensed under theirterms and conditions, or any related information. Creative Commonsdisclaims all liability for damages resulting from their use to thefullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms andconditions that creators and other rights holders may use to shareoriginal works of authorship and other material subject to copyrightand certain other rights specified in the public license below. Thefollowing considerations are for informational purposes only, are notexhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public: wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agreeto be bound by the terms and conditions of this Creative CommonsAttribution 4.0 International Public License ("Public License"). To theextent this Public License may be interpreted as a contract, You aregranted the Licensed Rights in consideration of Your acceptance ofthese terms and conditions, and the Licensor grants You such rights inconsideration of benefits the Licensor receives from making theLicensed Material available under these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
b. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to thefollowing conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
a. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
b. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights thatapply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does notreplace Your obligations under this Public License where the LicensedRights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its publiclicenses. Notwithstanding, Creative Commons may elect to apply one ofits public licenses to material it publishes and in those instanceswill be considered the “Licensor.” The text of the Creative Commonspublic licenses is dedicated to the public domain under the CC0 PublicDomain Dedication. Except for the limited purpose of indicating thatmaterial is shared under a Creative Commons public license or asotherwise permitted by the Creative Commons policies published atcreativecommons.org/policies, Creative Commons does not authorize theuse of the trademark "Creative Commons" or any other trademark or logoof Creative Commons without its prior written consent including,without limitation, in connection with any unauthorized modificationsto any of its public licenses or any other arrangements,understandings, or agreements concerning use of licensed material. Forthe avoidance of doubt, this paragraph does not form part of thepublic licenses.
Creative Commons may be contacted at creativecommons.org.
108 unmodified lines1091101111121131141151161 unmodified line11811912012112212312412512612712812913016787 unmodified lines1691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147108 unmodified lines- yor- yue- zullicense:- cc-by-4.0multilinguality:- multilingualsize_categories:1 unmodified linetask_categories:- automatic-speech-recognitiontask_ids: []pretty_name: 'The Cross-lingual TRansfer Evaluation of Multilingual Encoders for Speech(XTREME-S) benchmark is a benchmark designed to evaluate speech representationsacross languages, tasks, domains and data regimes. It covers 102 languages from10+ language families, 3 different domains and 4 task families: speech recognition,translation, classification and retrieval.'tags:- speech-recognitiondataset_info:- config_name: af_zafeatures:16787 unmodified linespath: parquet-data/zu_za/test-*---# FLEURS## Dataset Description- **Fine-Tuning script:** [pytorch/speech-recognition](https://github.com/huggingface/transformers/tree/main/examples/pytorch/speech-recognition)- **Paper:** [FLEURS: Few-shot Learning Evaluation ofUniversal Representations of Speech](https://arxiv.org/abs/2205.12446)- **Total amount of disk used:** ca. 350 GBFleurs is the speech version of the [FLoRes machine translation benchmark](https://arxiv.org/abs/2106.03193).We use 2009 n-way parallel sentences from the FLoRes dev and devtest publicly available sets, in 102 languages.Training sets have around 10 hours of supervision. Speakers of the train sets are different than speakers from the dev/test sets. Multilingual fine-tuning isused and ”unit error rate” (characters, signs) of all languages is averaged. Languages and results are also grouped into seven geographical areas:- **Western Europe**: *Asturian, Bosnian, Catalan, Croatian, Danish, Dutch, English, Finnish, French, Galician, German, Greek, Hungarian, Icelandic, Irish, Italian, Kabuverdianu, Luxembourgish, Maltese, Norwegian, Occitan, Portuguese, Spanish, Swedish, Welsh*- **Eastern Europe**: *Armenian, Belarusian, Bulgarian, Czech, Estonian, Georgian, Latvian, Lithuanian, Macedonian, Polish, Romanian, Russian, Serbian, Slovak, Slovenian, Ukrainian*- **Central-Asia/Middle-East/North-Africa**: *Arabic, Azerbaijani, Hebrew, Kazakh, Kyrgyz, Mongolian, Pashto, Persian, Sorani-Kurdish, Tajik, Turkish, Uzbek*- **Sub-Saharan Africa**: *Afrikaans, Amharic, Fula, Ganda, Hausa, Igbo, Kamba, Lingala, Luo, Northern-Sotho, Nyanja, Oromo, Shona, Somali, Swahili, Umbundu, Wolof, Xhosa, Yoruba, Zulu*- **South-Asia**: *Assamese, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Oriya, Punjabi, Sindhi, Tamil, Telugu, Urdu*- **South-East Asia**: *Burmese, Cebuano, Filipino, Indonesian, Javanese, Khmer, Lao, Malay, Maori, Thai, Vietnamese*- **CJK languages**: *Cantonese and Mandarin Chinese, Japanese, Korean*## How to use & Supported Tasks### How to useThe `datasets` library allows you to load and pre-process your dataset in pure Python, at scale. The dataset can be downloaded and prepared in one call to your local drive by using the `load_dataset` function.For example, to download the Hindi config, simply specify the corresponding language config name (i.e., "hi_in" for Hindi):```pythonfrom datasets import load_datasetfleurs = load_dataset("google/fleurs", "hi_in", split="train")```Using the datasets library, you can also stream the dataset on-the-fly by adding a `streaming=True` argument to the `load_dataset` function call. Loading a dataset in streaming mode loads individual samples of the dataset at a time, rather than downloading the entire dataset to disk.```pythonfrom datasets import load_datasetfleurs = load_dataset("google/fleurs", "hi_in", split="train", streaming=True)print(next(iter(fleurs)))```*Bonus*: create a [PyTorch dataloader](https://huggingface.co/docs/datasets/use_with_pytorch) directly with your own datasets (local/streamed).Local:```pythonfrom datasets import load_datasetfrom torch.utils.data.sampler import BatchSampler, RandomSamplerfleurs = load_dataset("google/fleurs", "hi_in", split="train")batch_sampler = BatchSampler(RandomSampler(fleurs), batch_size=32, drop_last=False)dataloader = DataLoader(fleurs, batch_sampler=batch_sampler)```Streaming:```pythonfrom datasets import load_datasetfrom torch.utils.data import DataLoaderfleurs = load_dataset("google/fleurs", "hi_in", split="train")dataloader = DataLoader(fleurs, batch_size=32)```To find out more about loading and preparing audio datasets, head over to [hf.co/blog/audio-datasets](https://huggingface.co/blog/audio-datasets).### Example scriptsTrain your own CTC or Seq2Seq Automatic Speech Recognition models on FLEURS with `transformers` - [here](https://github.com/huggingface/transformers/tree/main/examples/pytorch/speech-recognition).Fine-tune your own Language Identification models on FLEURS with `transformers` - [here](https://github.com/huggingface/transformers/tree/main/examples/pytorch/audio-classification)### 1. Speech Recognition (ASR)```pyfrom datasets import load_datasetfleurs_asr = load_dataset("google/fleurs", "af_za") # for Afrikaans# to download all data for multi-lingual fine-tuning uncomment following line# fleurs_asr = load_dataset("google/fleurs", "all")# see structureprint(fleurs_asr)# load audio sample on the flyaudio_input = fleurs_asr["train"][0]["audio"] # first decoded audio sampletranscription = fleurs_asr["train"][0]["transcription"] # first transcription# use `audio_input` and `transcription` to fine-tune your model for ASR# for analyses see language groupsall_language_groups = fleurs_asr["train"].features["lang_group_id"].nameslang_group_id = fleurs_asr["train"][0]["lang_group_id"]all_language_groups[lang_group_id]```### 2. Language IdentificationLangID can often be a domain classification, but in the case of FLEURS-LangID, recordings are done in a similar setting across languages and the utterances correspond to n-way parallel sentences, in the exact same domain, making this task particularly relevant for evaluating LangID. The setting is simple, FLEURS-LangID is splitted in train/valid/test for each language. We simply create a single train/valid/test for LangID by merging all.```pyfrom datasets import load_datasetfleurs_langID = load_dataset("google/fleurs", "all") # to download all data# see structureprint(fleurs_langID)# load audio sample on the flyaudio_input = fleurs_langID["train"][0]["audio"] # first decoded audio samplelanguage_class = fleurs_langID["train"][0]["lang_id"] # first id classlanguage = fleurs_langID["train"].features["lang_id"].names[language_class]# use audio_input and language_class to fine-tune your model for audio classification```### 3. RetrievalRetrieval provides n-way parallel speech and text data. Similar to how XTREME for text leverages Tatoeba to evaluate bitext mining a.k.a sentence translation retrieval, we use Retrieval to evaluate the quality of fixed-size representations of speech utterances. Our goal is to incentivize the creation of fixed-size speech encoder for speech retrieval. The system has to retrieve the English "key" utterance corresponding to the speech translation of "queries" in 15 languages. Results have to be reported on the test sets of Retrieval whose utterances are used as queries (and keys for English). We augment the English keys with a large number of utterances to make the task more difficult.```pyfrom datasets import load_datasetfleurs_retrieval = load_dataset("google/fleurs", "af_za") # for Afrikaans# to download all data for multi-lingual fine-tuning uncomment following line# fleurs_retrieval = load_dataset("google/fleurs", "all")# see structureprint(fleurs_retrieval)# load audio sample on the flyaudio_input = fleurs_retrieval["train"][0]["audio"] # decoded audio sampletext_sample_pos = fleurs_retrieval["train"][0]["transcription"] # positive text sampletext_sample_neg = fleurs_retrieval["train"][1:20]["transcription"] # negative text samples# use `audio_input`, `text_sample_pos`, and `text_sample_neg` to fine-tune your model for retrieval```Users can leverage the training (and dev) sets of FLEURS-Retrieval with a ranking loss to build better cross-lingual fixed-size representations of speech.## Dataset StructureWe show detailed information the example configurations `af_za` of the dataset.All other configurations have the same structure.### Data Instances**af_za**- Size of downloaded dataset files: 1.47 GB- Size of the generated dataset: 1 MB- Total amount of disk used: 1.47 GBAn example of a data instance of the config `af_za` looks as follows:```{'id': 91,'num_samples': 385920,'path': '/home/patrick/.cache/huggingface/datasets/downloads/extracted/310a663d52322700b3d3473cbc5af429bd92a23f9bc683594e70bc31232db39e/home/vaxelrod/FLEURS/oss2_obfuscated/af_za/audio/train/17797742076841560615.wav','audio': {'path': '/home/patrick/.cache/huggingface/datasets/downloads/extracted/310a663d52322700b3d3473cbc5af429bd92a23f9bc683594e70bc31232db39e/home/vaxelrod/FLEURS/oss2_obfuscated/af_za/audio/train/17797742076841560615.wav','array': array([ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,-1.1205673e-04, -8.4638596e-05, -1.2731552e-04], dtype=float32),'sampling_rate': 16000},'raw_transcription': 'Dit is nog nie huidiglik bekend watter aantygings gemaak sal word of wat owerhede na die seun gelei het nie maar jeugmisdaad-verrigtinge het in die federale hof begin','transcription': 'dit is nog nie huidiglik bekend watter aantygings gemaak sal word of wat owerhede na die seun gelei het nie maar jeugmisdaad-verrigtinge het in die federale hof begin','gender': 0,'lang_id': 0,'language': 'Afrikaans','lang_group_id': 3}```### Data FieldsThe data fields are the same among all splits.- **id** (int): ID of audio sample- **num_samples** (int): Number of float values- **path** (str): Path to the audio file- **audio** (dict): Audio object including loaded audio array, sampling rate and path ot audio- **raw_transcription** (str): The non-normalized transcription of the audio file- **transcription** (str): Transcription of the audio file- **gender** (int): Class id of gender- **lang_id** (int): Class id of language- **lang_group_id** (int): Class id of language group### Data SplitsEvery config only has the `"train"` split containing of *ca.* 1000 examples, and a `"validation"` and `"test"` split each containing of *ca.* 400 examples.## Dataset CreationWe collect between one and three recordings for each sentence (2.3 on average), and buildnew train-dev-test splits with 1509, 150 and 350 sentences fortrain, dev and test respectively.## Considerations for Using the Data### Social Impact of DatasetThis dataset is meant to encourage the development of speech technology in a lot more languages of the world. One of the goal is to give equal access to technologies like speech recognition or speech translation to everyone, meaning better dubbing or better access to content from the internet (like podcasts, streaming or videos).### Discussion of BiasesMost datasets have a fair distribution of gender utterances (e.g. the newly introduced FLEURS dataset). While many languages are covered from various regions of the world, the benchmark misses many languages that are all equally important. We believe technology built through FLEURS should generalize to all languages.### Other Known LimitationsThe dataset has a particular focus on read-speech because common evaluation benchmarks like CoVoST-2 or LibriSpeech evaluate on this type of speech. There is sometimes a known mismatch between performance obtained in a read-speech setting and a more noisy setting (in production for instance). Given the big progress that remains to be made on many languages, we believe better performance on FLEURS should still correlate well with actual progress made for speech understanding.## Additional InformationAll datasets are licensed under the [Creative Commons license (CC-BY)](https://creativecommons.org/licenses/).### Citation InformationYou can access the FLEURS paper at https://arxiv.org/abs/2205.12446.Please cite the paper when referencing the FLEURS corpus as:```@article{fleurs2022arxiv,title = {FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech},author = {Conneau, Alexis and Ma, Min and Khanuja, Simran and Zhang, Yu and Axelrod, Vera and Dalmia, Siddharth and Riesa, Jason and Rivera, Clara and Bapna, Ankur},journal={arXiv preprint arXiv:2205.12446},url = {https://arxiv.org/abs/2205.12446},year = {2022},```### ContributionsThanks to [@patrickvonplaten](https://github.com/patrickvonplaten) and [@aconneau](https://github.com/aconneau) for adding this dataset.108 unmodified lines1091101111121131141151 unmodified line11711811912012112212312412512616787 unmodified lines169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009108 unmodified lines- yor- yue- zullicense: cc-by-sa-4.0multilinguality:- multilingualsize_categories:1 unmodified linetask_categories:- automatic-speech-recognitiontask_ids: []pretty_name: FLEURS (Lance)tags:- speech-recognition- lancedataset_info:- config_name: af_zafeatures:16787 unmodified linespath: parquet-data/zu_za/test-*---# FLEURS in LanceFLEURS is Google's Few-shot Learning Evaluation of Universal Representations of Speech benchmark. This release preserves 384,060 original recordings and transcripts across 102 language configurations. The original train, validation, and test counts are 271,798, 34,452, and 77,810. The `all` configuration is the union of the language configurations for each split. [Pinned original dataset](https://huggingface.co/datasets/google/fleurs/tree/70bb2e84b976b7e960aa89f1c648e09c59f894dd) · [FLEURS paper](https://arxiv.org/abs/2205.12446)| Path | Contents || --- | --- || `lance/utterances.lance` | One row per recording, with the original sentence ID, transcript variants, language and speaker labels, original WAV filename, archive path, and attribution || `lance/source-files.lance` | 1,004 original files and their checksums, exposed as range-readable Lance Blob v2 values || `parquet-data/` | All 389 original prepared Parquet files used by Data Studio for the same 103 configurations and 309 split combinations |Open the utterances table and filter by `lang_code` and `split` to select a language split. To select an `all` split, filter by `split` alone. The `path` column is the portable WAV filename. The original prepared Parquets also retain the upstream builder's serialized path and audio features. The 306 byte-identical source WAV archives are under `data/<language>/audio/`. [Split counts and release metadata](release-info.json) · [Full file inventory](source/inventory.jsonl) · [Data Studio](https://huggingface.co/datasets/lance-format/fleurs-lance/viewer/en_us/test)## Search transcripts and locate recordingsThis release generates normalized 256-dimensional float32 vectors from each complete `raw_transcription` using the multilingual `minishlab/potion-multilingual-128M` checkpoint at revision `73908c3438cf03b6a01bcb9611d62b23d0726f08`. Recordings of the same transcript share the same vector. The table has a cosine IVF_PQ index for larger searches. The example computes exact cosine distances within the English test split. It prints the cosine similarity, the sentence ID, and the distinct recording filename for five matches. [Pinned query encoder](https://huggingface.co/minishlab/potion-multilingual-128M/tree/73908c3438cf03b6a01bcb9611d62b23d0726f08)Install the dependencies with `python -m pip install "pylance==14.0.3" "model2vec==0.10.0" huggingface_hub scipy`.```pythonimport lancefrom huggingface_hub import HfApi, snapshot_downloadfrom model2vec import StaticModelrepo = "lance-format/fleurs-lance"revision = HfApi(token=False).dataset_info(repo, token=False).shabase = f"hf://datasets/{repo}"options = {"hf_revision": revision}utterances = lance.dataset(f"{base}/lance/utterances.lance", storage_options=options)model_dir = snapshot_download("minishlab/potion-multilingual-128M",revision="73908c3438cf03b6a01bcb9611d62b23d0726f08",allow_patterns=["config.json", "tokenizer.json", "model.safetensors"],token=False,)encoder = StaticModel.from_pretrained(model_dir, max_length=None)query = "Fashion styles in the west lagged for decades because communication was slow."vector = encoder.encode(query, max_length=None, normalize=True)matches = utterances.to_table(columns=["id", "lang_code", "split", "path", "raw_transcription", "text_source_url", "_distance"],filter="lang_code = 'en_us' AND split = 'test'",prefilter=True,nearest={"column": "embedding", "q": vector, "k": 5, "metric": "cosine", "use_index": False},).to_pylist()for hit in matches:print(f"{1 - hit['_distance']:.4f} {hit['lang_code']}/{hit['split']} {hit['id']} {hit['path']} {hit['raw_transcription']}")```## Read an original WAV from LanceThe example reads a bounded prefix of the original English test archive as a Lance Blob v2 and exports the first WAV, one of the top matches above. For later members, stream the corresponding gzip archive and match the WAV filename in the utterance row.```pythonimport hashlibimport ioimport tarfilefrom pathlib import Pathimport lancefrom huggingface_hub import HfApifrom scipy.io import wavfilerepo = "lance-format/fleurs-lance"revision = HfApi(token=False).dataset_info(repo, token=False).shabase = f"hf://datasets/{repo}"options = {"hf_revision": revision}files = lance.dataset(f"{base}/lance/source-files.lance",storage_options=options,base_store_params={base: options},)entry, = files.to_table(columns=["source_path"],filter="source_path = 'data/en_us/audio/test.tar.gz'",with_row_id=True,).to_pylist()with files.take_blobs("payload", ids=[entry["_rowid"]])[0] as audio_archive:prefix = audio_archive.read(768000)with tarfile.open(fileobj=io.BytesIO(prefix), mode="r|gz") as archive:member = next(item for item in archive if item.isfile())assert member.name == "test/1003119935936341070.wav"with archive.extractfile(member) as stream:wav = stream.read()assert hashlib.sha256(wav).hexdigest() == "33aca50159ec2e3cbcc894eb26faa916d6badb1b49fb75994973561540a7f012"sample_rate, samples = wavfile.read(io.BytesIO(wav))assert sample_rate == 16000print(f"{sample_rate} Hz, {len(samples)} samples")Path("1003119935936341070.wav").write_bytes(wav)```## Source licenses and attributionGoogle and the FLEURS authors release the speech dataset under CC BY 4.0. The included text derives from Meta's FLORES-101 dev and devtest transcripts, which retain CC BY-SA 4.0. The native table credits the original Wikinews, Wikivoyage, or Wikibooks page on every row through `text_source_url`, matched against Meta's first-party metadata. The linked pages preserve source contributor and license history. This conversion adds Lance tables, range-access references, the provenance join, and search embeddings. Original WAVs, TSVs, and Parquets are byte-identical. [Original FLEURS card](source/README.md) · [CC BY 4.0 text](LICENSE-CC-BY-4.0.txt) · [FLORES-101 source and citation](source/flores101/README.md) · [FLORES-101 CC BY-SA 4.0 text](source/flores101/LICENSE.txt) · [Sentence-by-sentence attribution](source/flores101/utterance-attribution.tsv)
1{"version":2}123version https://git-lfs.github.com/spec/v1oid sha256:31aff761fac86ce53b10e3c74a3d8d22c1dc28bc86a6680632a408a415ad566asize 136217123version https://git-lfs.github.com/spec/v1oid sha256:84b5a333d4fff1a6ef30b8876e83d141c1408405dd99298951a55b63c971445asize 8051625123version https://git-lfs.github.com/spec/v1oid sha256:ec41eeed8e2e37ec5b263f1a94f476fa487909bdea004f786045585a501f6054size 1320421{"version":2}123version https://git-lfs.github.com/spec/v1oid sha256:90532c53c831e56f8fef6dd24ae132f154c39d4cca90d517d5ff2af2735da3e9size 189908024123version https://git-lfs.github.com/spec/v1oid sha256:ea11dd0802297d5b7ba8b876476d5833097bf5d089d02d0fb3ac95c010fe7156size 184250042123version https://git-lfs.github.com/spec/v1oid sha256:f45f9a4ec1d180d5766ea64a155bd442a2dcffcdbe0919994104106be6b8417asize 105409123version https://git-lfs.github.com/spec/v1oid sha256:b836ba01f817bd0ac2dc498da171b5162b6b5dac44b31c6c8388096a87ef256asize 186494312123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538{ "source": "google/fleurs", "source_revision": "70bb2e84b976b7e960aa89f1c648e09c59f894dd", "source_file_counts": { "metadata": 3, "audio_tar_gz": 306, "transcript_tsv": 306, "prepared_parquet": 389 }, "original_files": 1004, "original_bytes": 878377671348, "source_recording_rows": 384060, "source_split_counts_by_configuration": { "af_za": { "train": 1032, "validation": 198, "test": 264 }, "all": { "train": 271798, "validation": 34452, "test": 77810 }, "am_et": { "train": 3163, "validation": 223, "test": 516 }, "ar_eg": { "train": 2104, "validation": 295, "test": 428 }, "as_in": { "train": 2812, "validation": 418, "test": 984 }, "ast_es": { "train": 2511, "validation": 398, "test": 946 }, "az_az": { "train": 2665, "validation": 400, "test": 923 }, "be_by": { "train": 2433, "validation": 408, "test": 967 }, "bg_bg": { "train": 2973, "validation": 395, "test": 658 }, "bn_in": { "train": 3006, "validation": 402, "test": 920 }, "bs_ba": { "train": 3091, "validation": 400, "test": 925 }, "ca_es": { "train": 2300, "validation": 404, "test": 940 }, "ceb_ph": { "train": 3261, "validation": 225, "test": 541 }, "ckb_iq": { "train": 3040, "validation": 386, "test": 922 }, "cmn_hans_cn": { "train": 3246, "validation": 409, "test": 945 }, "cs_cz": { "train": 2811, "validation": 305, "test": 723 }, "cy_gb": { "train": 3427, "validation": 447, "test": 1021 }, "da_dk": { "train": 2465, "validation": 395, "test": 930 }, "de_de": { "train": 2987, "validation": 363, "test": 862 }, "el_gr": { "train": 3215, "validation": 271, "test": 650 }, "en_us": { "train": 2602, "validation": 394, "test": 647 }, "es_419": { "train": 2796, "validation": 408, "test": 908 }, "et_ee": { "train": 2501, "validation": 387, "test": 893 }, "fa_ir": { "train": 3101, "validation": 369, "test": 871 }, "ff_sn": { "train": 3235, "validation": 273, "test": 660 }, "fi_fi": { "train": 2704, "validation": 415, "test": 918 }, "fil_ph": { "train": 1884, "validation": 418, "test": 964 }, "fr_fr": { "train": 3193, "validation": 289, "test": 676 }, "ga_ie": { "train": 2845, "validation": 369, "test": 842 }, "gl_es": { "train": 2175, "validation": 395, "test": 927 }, "gu_in": { "train": 3145, "validation": 432, "test": 1000 }, "ha_ng": { "train": 3259, "validation": 296, "test": 621 }, "he_il": { "train": 3242, "validation": 328, "test": 792 }, "hi_in": { "train": 2120, "validation": 239, "test": 418 }, "hr_hr": { "train": 3461, "validation": 377, "test": 914 }, "hu_hu": { "train": 3095, "validation": 407, "test": 905 }, "hy_am": { "train": 3053, "validation": 395, "test": 932 }, "id_id": { "train": 2579, "validation": 350, "test": 687 }, "ig_ng": { "train": 2839, "validation": 413, "test": 969 }, "is_is": { "train": 926, "validation": 36, "test": 46 }, "it_it": { "train": 3030, "validation": 391, "test": 865 }, "ja_jp": { "train": 2292, "validation": 266, "test": 650 }, "jv_id": { "train": 3051, "validation": 295, "test": 728 }, "ka_ge": { "train": 1491, "validation": 409, "test": 979 }, "kam_ke": { "train": 3340, "validation": 338, "test": 827 }, "kea_cv": { "train": 2715, "validation": 366, "test": 864 }, "kk_kz": { "train": 3200, "validation": 369, "test": 856 }, "km_kh": { "train": 1675, "validation": 326, "test": 771 }, "kn_in": { "train": 2283, "validation": 368, "test": 838 }, "ko_kr": { "train": 2307, "validation": 226, "test": 382 }, "ky_kg": { "train": 2818, "validation": 422, "test": 977 }, "lb_lu": { "train": 2502, "validation": 408, "test": 934 }, "lg_ug": { "train": 2478, "validation": 306, "test": 723 }, "ln_cd": { "train": 3350, "validation": 209, "test": 478 }, "lo_la": { "train": 1809, "validation": 191, "test": 405 }, "lt_lt": { "train": 2937, "validation": 416, "test": 986 }, "luo_ke": { "train": 2384, "validation": 102, "test": 256 }, "lv_lv": { "train": 2110, "validation": 356, "test": 851 }, "mi_nz": { "train": 3249, "validation": 429, "test": 1008 }, "mk_mk": { "train": 2337, "validation": 415, "test": 973 }, "ml_in": { "train": 3043, "validation": 418, "test": 958 }, "mn_mn": { "train": 3074, "validation": 405, "test": 949 }, "mr_in": { "train": 3269, "validation": 443, "test": 1015 }, "ms_my": { "train": 2667, "validation": 324, "test": 749 }, "mt_mt": { "train": 2895, "validation": 404, "test": 926 }, "my_mm": { "train": 3058, "validation": 384, "test": 880 }, "nb_no": { "train": 3167, "validation": 163, "test": 357 }, "ne_np": { "train": 3332, "validation": 305, "test": 726 }, "nl_nl": { "train": 2918, "validation": 171, "test": 364 }, "nso_za": { "train": 1990, "validation": 363, "test": 790 }, "ny_mw": { "train": 2694, "validation": 311, "test": 761 }, "oc_fr": { "train": 3379, "validation": 427, "test": 998 }, "om_et": { "train": 1701, "validation": 19, "test": 41 }, "or_in": { "train": 1081, "validation": 392, "test": 883 }, "pa_in": { "train": 1923, "validation": 251, "test": 574 }, "pl_pl": { "train": 2841, "validation": 338, "test": 758 }, "ps_af": { "train": 2513, "validation": 217, "test": 512 }, "pt_br": { "train": 2793, "validation": 386, "test": 919 }, "ro_ro": { "train": 2891, "validation": 387, "test": 883 }, "ru_ru": { "train": 2562, "validation": 356, "test": 775 }, "sd_in": { "train": 3443, "validation": 426, "test": 980 }, "sk_sk": { "train": 1957, "validation": 352, "test": 792 }, "sl_si": { "train": 2512, "validation": 349, "test": 834 }, "sn_zw": { "train": 2463, "validation": 393, "test": 925 }, "so_so": { "train": 3149, "validation": 432, "test": 1019 }, "sr_rs": { "train": 2944, "validation": 290, "test": 700 }, "sv_se": { "train": 2385, "validation": 330, "test": 759 }, "sw_ke": { "train": 3070, "validation": 211, "test": 487 }, "ta_in": { "train": 2367, "validation": 377, "test": 591 }, "te_in": { "train": 2302, "validation": 311, "test": 472 }, "tg_tj": { "train": 2298, "validation": 240, "test": 600 }, "th_th": { "train": 2602, "validation": 439, "test": 1021 }, "tr_tr": { "train": 2526, "validation": 338, "test": 743 }, "uk_ua": { "train": 2810, "validation": 325, "test": 750 }, "umb_ao": { "train": 1597, "validation": 135, "test": 379 }, "ur_pk": { "train": 2109, "validation": 267, "test": 299 }, "uz_uz": { "train": 2943, "validation": 363, "test": 862 }, "vi_vn": { "train": 2994, "validation": 361, "test": 857 }, "wo_sn": { "train": 2279, "validation": 169, "test": 371 }, "xh_za": { "train": 3466, "validation": 446, "test": 1041 }, "yo_ng": { "train": 2339, "validation": 378, "test": 831 }, "yue_hant_hk": { "train": 1939, "validation": 362, "test": 819 }, "zu_za": { "train": 2858, "validation": 354, "test": 854 } }, "source_audio_sample_hz": 16000, "flores_aligned_ids": 2009, "unique_embedded_transcripts": 189898, "model": "minishlab/potion-multilingual-128M", "model_revision": "73908c3438cf03b6a01bcb9611d62b23d0726f08", "dimension": 256, "metric": "cosine", "working_representation": "native utterances with archive links and original assets as Lance Blob v2"}1234567891011121314151617181920212223242526272829303132333435363738*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427Attribution-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm anddoes not provide legal services or legal advice. Distribution ofCreative Commons public licenses does not create a lawyer-client orother relationship. Creative Commons makes its licenses and relatedinformation available on an "as-is" basis. Creative Commons gives nowarranties regarding its licenses, any material licensed under theirterms and conditions, or any related information. Creative Commonsdisclaims all liability for damages resulting from their use to thefullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms andconditions that creators and other rights holders may use to shareoriginal works of authorship and other material subject to copyrightand certain other rights specified in the public license below. Thefollowing considerations are for informational purposes only, are notexhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason--for example, because of any applicable exception or limitation to copyright--then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More_considerations for the public: wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution-ShareAlike 4.0 International PublicLicense
By exercising the Licensed Rights (defined below), You accept and agreeto be bound by the terms and conditions of this Creative CommonsAttribution-ShareAlike 4.0 International Public License ("PublicLicense"). To the extent this Public License may be interpreted as acontract, You are granted the Licensed Rights in consideration of Youracceptance of these terms and conditions, and the Licensor grants Yousuch rights in consideration of benefits the Licensor receives frommaking the Licensed Material available under these terms andconditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
j. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a) (4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
b. Additional offer from the Licensor -- Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter's License You apply.
c. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to thefollowing conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
a. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
b. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
b. ShareAlike.
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
1. The Adapter's License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights thatapply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material,
including for purposes of Section 3(b); and c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does notreplace Your obligations under this Public License where the LicensedRights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its publiclicenses. Notwithstanding, Creative Commons may elect to apply one ofits public licenses to material it publishes and in those instanceswill be considered the “Licensor.” The text of the Creative Commonspublic licenses is dedicated to the public domain under the CC0 PublicDomain Dedication. Except for the limited purpose of indicating thatmaterial is shared under a Creative Commons public license or asotherwise permitted by the Creative Commons policies published atcreativecommons.org/policies, Creative Commons does not authorize theuse of the trademark "Creative Commons" or any other trademark or logoof Creative Commons without its prior written consent including,without limitation, in connection with any unauthorized modificationsto any of its public licenses or any other arrangements,understandings, or agreements concerning use of licensed material. Forthe avoidance of doubt, this paragraph does not form part of thepublic licenses.
Creative Commons may be contacted at creativecommons.org.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296<p align="center"><img src="flores_logo.png" width="500"></p>
--------------------------------------------------------------------------------
# The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translation`FLORES-101` is a Many-to-Many multilingual translation benchmark dataset for 101 languages.
* **Paper:** [The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translation](https://ai.facebook.com/research/publications/the-flores-101-evaluation-benchmark-for-low-resource-and-multilingual-machine-translation).
* Download `FLORES-101` [**dataset**](https://dl.fbaipublicfiles.com/flores101/dataset/flores101_dataset.tar.gz) and the [WMT22 supplement](https://dl.fbaipublicfiles.com/flores101/dataset/flores_wmt22_supplement.tar.gz).
* Read the [**blogpost**](https://ai.facebook.com/blog/the-flores-101-data-set-helping-build-better-translation-systems-around-the-world) and [**paper**](https://ai.facebook.com/research/publications/the-flores-101-evaluation-benchmark-for-low-resource-and-multilingual-machine-translation).
* Evaluation server: [dynabench](https://dynabench.org/flores), [Instructions to submit model](./dynalab/README.md)
Looking for FLORESv1, which included Nepali, Sinhala, Pashto, and Khmer? Click [here](floresv1/)
## Learn More in This Intro Video[](https://www.youtube.com/watch?v=mq3keaYhzag)
## AbstractOne of the biggest challenges hindering progress in low-resource and multilingual machine translation is the lack of good evaluation benchmarks. Current evaluation benchmarks either lack good coverage of low-resource languages, consider only restricted domains, or are low quality because they are constructed using semi-automatic procedures. In this work, we introduce the FLORES evaluation benchmark, consisting of 3001 sentences extracted from English Wikipedia and covering a variety of different topics and domains. These sentences have been translated in 101 languages by professional translators through a carefully controlled process. The resulting dataset enables better assessment of model quality on the long tail of low-resource languages, including the evaluation of many-to-many multilingual translation systems, as all translations are multilingually aligned. By publicly releasing such a high-quality and high-coverage dataset, we hope to foster progress in the machine translation community and beyond.
## Download FLORES-101 Dataset The data can be downloaded from: [Here](https://dl.fbaipublicfiles.com/flores101/dataset/flores101_dataset.tar.gz).
A supplement to FLORES-101 was released for the WMT22 Shared Task on [Large-Scale Machine Translation Evaluation for African Languages](https://statmt.org/wmt22/large-scale-multilingual-translation-task.html) and can be downloaded from [here](https://dl.fbaipublicfiles.com/flores101/dataset/flores_wmt22_supplement.tar.gz).
## Evaluation
### SPM-BLEU For evaluation, we use SentencePiece BLEU (spBLEU) which uses a SentencePiece (SPM) tokenizer with 256K tokens and then BLEU score is computed on the sentence-piece tokenized text. This requires installing sacrebleu using a specific branch:```bashgit clone --single-branch --branch adding_spm_tokenized_bleu https://github.com/ngoyal2707/sacrebleu.gitcd sacrebleupython setup.py install```
### Offline Evaluation
#### Download FLORES-101 dev and devtest dataset
```bashcd ~/wget https://dl.fbaipublicfiles.com/flores101/dataset/flores101_dataset.tar.gztar -xvzf flores101_dataset.tar.gz```
#### Compute spBLEU
Instructions for computing spBLEU for detokenized translations generated by a model
```bashflores101_devtest=flores101_dataset/devtest
# Path to generated detokenized translations filetranslation_file=/path/to/detok_trans.txt
# Set the target language (for this example, English)trg_lang=eng
cat $translation_file | sacrebleu -tok spm $flores101_devtest/${trg_lang}.devtest```
### Example walkthrough of Generation and Evaluation using a pre-trained model in fairseq
Following example walks shows evaluating released `M2M-124 615M` model on an example language pair of `Nyanja -> Swahili` on `FLORES-101` `devtest` which achieves `12.4` spBLEU.
#### Download model, sentencepiece vocab
```bashfairseq=/path/to/fairseqcd $fairseq
# Download 615M param model.wget https://dl.fbaipublicfiles.com/flores101/pretrained_models/flores101_mm100_615M.tar.gz
# Extract tar -xvzf flores101_mm100_615M.tar.gz```
#### Encode using our SentencePiece ModelNote: Install SentencePiece from [here](https://github.com/google/sentencepiece)
```bashflores101_dataset=/path/to/flores_datasetfairseq=/path/to/fairseqcd $fairseq
# Example lang pair translation: Nyanja -> Swahili# MM100 code for Nyanja and Swahili: ny, sw
SRC_LANG_CODE=nyaTRG_LANG_CODE=swh
SRC_MM100_LANG_CODE=nyTRG_MM100_LANG_CODE=sw
python scripts/spm_encode.py \ --model flores101_mm100_615M/sentencepiece.bpe.model \ --output_format=piece \ --inputs=$flores101_dataset/devtest/${SRC_LANG_CODE}.devtest \ --outputs=spm.${SRC_MM100_LANG_CODE}-${TRG_MM100_LANG_CODE}.${SRC_MM100_LANG_CODE}
python scripts/spm_encode.py \ --model flores101_mm100_615M/sentencepiece.bpe.model \ --output_format=piece \ --inputs=$flores101_dataset/devtest/${TRG_LANG_CODE}.devtest \ --outputs=spm.${SRC_MM100_LANG_CODE}-${TRG_MM100_LANG_CODE}.${TRG_MM100_LANG_CODE}```
#### Binarization
```bashfairseq-preprocess \ --source-lang ${SRC_MM100_LANG_CODE} --target-lang ${TRG_MM100_LANG_CODE} \ --testpref spm.${SRC_MM100_LANG_CODE}-${TRG_MM100_LANG_CODE} \ --thresholdsrc 0 --thresholdtgt 0 \ --destdir data_bin_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE} \ --srcdict flores101_mm100_615M/dict.txt --tgtdict flores101_mm100_615M/dict.txt```
#### Generation
```bashfairseq-generate \ data_bin_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE} \ --batch-size 1 \ --path flores101_mm100_615M/model.pt \ --fixed-dictionary flores101_mm100_615M/dict.txt \ -s ${SRC_MM100_LANG_CODE} -t ${TRG_MM100_LANG_CODE} \ --remove-bpe 'sentencepiece' \ --beam 5 \ --task translation_multi_simple_epoch \ --lang-pairs flores101_mm100_615M/language_pairs.txt \ --decoder-langtok --encoder-langtok src \ --gen-subset test \ --fp16 \ --dataset-impl mmap \ --distributed-world-size 1 --distributed-no-spawn \ --results-path generation_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE}
# clean fairseq generated file to only create hypotheses file.cat generation_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE}/generate-test.txt | grep -P '^H-' | cut -c 3- | sort -n -k 1 | awk -F "\t" '{print $NF}' > generation_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE}/sys.txt```
#### spBLEU Evaluation
```bash# Get scoresacrebleu flores101_dataset/devtest/${TRG_LANG_CODE}.devtest < generation_${SRC_MM100_LANG_CODE}_${TRG_MM100_LANG_CODE}/sys.txt --tokenize spm# Expected Outcome:# BLEU+case.mixed+numrefs.1+smooth.exp+tok.spm+version.1.5.0 = 12.4 34.9/15.8/8.7/4.9 (BP = 1.000 ratio = 1.007 hyp_len = 37247 ref_len = 36999)```
## List of Languages
Language | FLORES-101 code | MM100 lang code---|---|---Akrikaans | afr | afAmharic | amh | amArabic | ara | arArmenian | hye | hyAssamese | asm | asAsturian | ast | astAzerbaijani | azj | azBelarusian | bel | beBengali | ben | bnBosnian | bos | bsBulgarian | bul | bgBurmese | mya | myCatalan | cat | caCebuano | ceb | cebChinese Simpl | zho_simpl | zhoChinese Trad | zho_trad | zhoCroatian | hrv | hrCzech | ces | csDanish | dan | daDutch | nld | nlEnglish | eng | enEstonian | est | etFilipino (Tagalog) | tgl | tlFinnish | fin | fiFrench | fra | frFulah | ful | ffGalician | glg | glGanda | lug | lgGeorgian | kat | kaGerman | deu | deGreek | ell | elGujarati | guj | guHausa | hau | haHebrew | heb | heHindi | hin | hiHungarian | hun | huIcelandic | isl | isIgbo | ibo | igIndonesian | ind | idIrish | gle | gaItalian | ita | itJapanese | jpn | jaJavanese | jav | jvKabuverdianu | kea | keaKamba | kam | kamKannada | kan | knKazakh | kaz | kkKhmer | khm | kmKorean | kor | koKyrgyz | kir | kyLao | lao | loLatvian | lav | lvLingala | lin | lnLithuanian | lit | ltLuo | luo | luoLuxembourgish | ltz | lbMacedonian | mkd | mk Malay | msa | msMalayalam | mal | mlMaltese | mlt | mtMaori | mri | miMarathi | mar | mrMongolian | mon | mnNepali | npi | neNorthern Sotho | nso | nsNorwegian | nob | noNyanja | nya | nyOccitan | oci | ocOriya | ory | orOromo | orm | omPashto | pus | psPersian | fas | faPolish | pol | plPortuguese (Brazil) | por | ptPunjabi | pan | paRomanian | ron | roRussian | rus | ruSerbian | srp | srShona | sna | snSindhi | snd | sdSlovak | slk | skSlovenian | slv | slSomali | som | soSorani Kurdish | ckb | kuSpanish (Latin American) | spa | esSwahili | swh | swSwedish | swe | svTajik | tgk | tgTamil | tam | taTelugu | tel | teThai | tha | thTurkish | tur | trUkrainian | ukr | ukUmbundu | umb | umbUrdu | urd | urUzbek | uzb | uzVietnamese | vie | viWelsh | cym | cyWolof | wol | woXhosa | xho | xhYoruba | yor | yoZulu | zul | zu
## WMT TaskThe FLORES-101 dataset is being used for the WMT2021 Large-Scale Multilingual Machine Translation Shared Task. You can learn more about the task [HERE](http://www.statmt.org/wmt21/large-scale-multilingual-translation-task.html). We also provide two pretrained models, downloadable from the WMT task page.
## Citation
If you use this data in your work, please cite:
```bibtex@inproceedings{, title={The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translation}, author={Goyal, Naman and Gao, Cynthia and Chaudhary, Vishrav and Chen, Peng-Jen and Wenzek, Guillaume and Ju, Da and Krishnan, Sanjana and Ranzato, Marc'Aurelio and Guzm\'{a}n, Francisco and Fan, Angela}, year={2021}}
@inproceedings{, title={Two New Evaluation Datasets for Low-Resource Machine Translation: Nepali-English and Sinhala-English}, author={Guzm\'{a}n, Francisco and Chen, Peng-Jen and Ott, Myle and Pino, Juan and Lample, Guillaume and Koehn, Philipp and Chaudhary, Vishrav and Ranzato, Marc'Aurelio}, journal={arXiv preprint arXiv:1902.01382}, year={2019}}```
## Changelog- 2021-06-04: Released FLORES-101
## LicenseThe dataset is licenced under CC-BY-SA, see the LICENSE file for details..gitattributes+7
LICENSE-CC-BY-4.0.txtAdded+396
README.md+77-215
lance/source-files.lance/_indices/6ae3200d-209d-4cda-bfe2-08326d51c18d/page_data.lanceAdded
lance/source-files.lance/_indices/6ae3200d-209d-4cda-bfe2-08326d51c18d/page_lookup.lanceAdded
lance/source-files.lance/_transactions/0-be45164e-5288-456e-a449-fc4b334ee4b1.txnAdded
lance/source-files.lance/_transactions/1-b1cf49da-975e-496a-a525-044bccc2e022.txnAdded
lance/source-files.lance/_versions/18446744073709551613.manifestAdded
lance/source-files.lance/_versions/18446744073709551614.manifestAdded
lance/source-files.lance/_versions/latest_version_hint.jsonAdded+1
lance/source-files.lance/data/00000001001001010111111008f842429187a13312e8ddb985.lanceAdded+3
lance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/auxiliary.idxAdded+3
lance/utterances.lance/_indices/b35082e2-4aff-40b4-af2d-f2e5328dac51/index.idxAdded+3
lance/utterances.lance/_transactions/0-9c3d9e31-1ce2-457d-ba4b-1040e040a18e.txnAdded
lance/utterances.lance/_transactions/1-af0da244-ea04-4e36-baa9-e68b6ecdc081.txnAdded
lance/utterances.lance/_versions/18446744073709551613.manifestAdded
lance/utterances.lance/_versions/18446744073709551614.manifestAdded
lance/utterances.lance/_versions/latest_version_hint.jsonAdded+1
lance/utterances.lance/data/001100101010000111101001c9d17a42cfbc54512f639b6677.lanceAdded+3
lance/utterances.lance/data/001101111111001010001111e0c2a04bfdac12177e43fd528f.lanceAdded+3
lance/utterances.lance/data/10001010011010111000011183cdbc4083a0f7e23d65a9922b.lanceAdded+3
lance/utterances.lance/data/111111000010001001101101367f814e638d86680b59ebb1c3.lanceAdded+3
release-info.jsonAdded+538
source/.gitattributesAdded+38
source/README.mdAdded
source/flores101/LICENSE.txtAdded+427
source/flores101/README.mdAdded+296
source/flores101/metadata_dev.tsvAdded
source/flores101/metadata_devtest.tsvAdded
source/flores101/utterance-attribution.tsvAdded
source/inventory.jsonlAdded