Skip to content

Commit

Permalink
Fix language tags resource file (#4882)
Browse files Browse the repository at this point in the history
* Fix language tags resource file

* Minor fix

* Remove languages with special or private-use scope
  • Loading branch information
albertvillanova committed Aug 24, 2022
1 parent 07a201c commit 9e9cf48
Showing 1 changed file with 7,335 additions and 733 deletions.

1 comment on commit 9e9cf48

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show benchmarks

PyArrow==6.0.0

Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.008158 / 0.011353 (-0.003195) 0.003969 / 0.011008 (-0.007040) 0.029749 / 0.038508 (-0.008759) 0.035740 / 0.023109 (0.012630) 0.291569 / 0.275898 (0.015671) 0.370024 / 0.323480 (0.046544) 0.006092 / 0.007986 (-0.001893) 0.003583 / 0.004328 (-0.000746) 0.006935 / 0.004250 (0.002684) 0.050566 / 0.037052 (0.013514) 0.309756 / 0.258489 (0.051267) 0.351933 / 0.293841 (0.058092) 0.031544 / 0.128546 (-0.097002) 0.009666 / 0.075646 (-0.065980) 0.257760 / 0.419271 (-0.161511) 0.052133 / 0.043533 (0.008600) 0.290826 / 0.255139 (0.035687) 0.316802 / 0.283200 (0.033603) 0.103903 / 0.141683 (-0.037780) 1.444709 / 1.452155 (-0.007445) 1.494850 / 1.492716 (0.002134)

Benchmark: benchmark_getitem_100B.json

metric get_batch_of_1024_random_rows get_batch_of_1024_rows get_first_row get_last_row
new / old (diff) 0.214096 / 0.018006 (0.196089) 0.474961 / 0.000490 (0.474471) 0.006002 / 0.000200 (0.005802) 0.000140 / 0.000054 (0.000086)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.025975 / 0.037411 (-0.011436) 0.106968 / 0.014526 (0.092442) 0.117833 / 0.176557 (-0.058723) 0.165195 / 0.737135 (-0.571940) 0.121443 / 0.296338 (-0.174896)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.394379 / 0.215209 (0.179170) 3.921084 / 2.077655 (1.843430) 1.777296 / 1.504120 (0.273176) 1.595539 / 1.541195 (0.054344) 1.678545 / 1.468490 (0.210055) 0.418975 / 4.584777 (-4.165802) 3.765237 / 3.745712 (0.019525) 2.043531 / 5.269862 (-3.226331) 1.224183 / 4.565676 (-3.341493) 0.051105 / 0.424275 (-0.373170) 0.010933 / 0.007607 (0.003326) 0.501427 / 0.226044 (0.275383) 5.007059 / 2.268929 (2.738130) 2.223506 / 55.444624 (-53.221118) 1.886720 / 6.876477 (-4.989757) 2.068087 / 2.142072 (-0.073986) 0.537822 / 4.805227 (-4.267406) 0.118255 / 6.500664 (-6.382409) 0.062034 / 0.075469 (-0.013435)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 1.447093 / 1.841788 (-0.394694) 14.105991 / 8.074308 (6.031683) 25.023405 / 10.191392 (14.832013) 0.864946 / 0.680424 (0.184522) 0.554421 / 0.534201 (0.020221) 0.385559 / 0.579283 (-0.193724) 0.439639 / 0.434364 (0.005275) 0.281887 / 0.540337 (-0.258451) 0.287223 / 1.386936 (-1.099713)
PyArrow==latest
Show updated benchmarks!

Benchmark: benchmark_array_xd.json

metric read_batch_formatted_as_numpy after write_array2d read_batch_formatted_as_numpy after write_flattened_sequence read_batch_formatted_as_numpy after write_nested_sequence read_batch_unformated after write_array2d read_batch_unformated after write_flattened_sequence read_batch_unformated after write_nested_sequence read_col_formatted_as_numpy after write_array2d read_col_formatted_as_numpy after write_flattened_sequence read_col_formatted_as_numpy after write_nested_sequence read_col_unformated after write_array2d read_col_unformated after write_flattened_sequence read_col_unformated after write_nested_sequence read_formatted_as_numpy after write_array2d read_formatted_as_numpy after write_flattened_sequence read_formatted_as_numpy after write_nested_sequence read_unformated after write_array2d read_unformated after write_flattened_sequence read_unformated after write_nested_sequence write_array2d write_flattened_sequence write_nested_sequence
new / old (diff) 0.006231 / 0.011353 (-0.005122) 0.003873 / 0.011008 (-0.007135) 0.030229 / 0.038508 (-0.008279) 0.035663 / 0.023109 (0.012554) 0.340744 / 0.275898 (0.064846) 0.429770 / 0.323480 (0.106290) 0.003961 / 0.007986 (-0.004024) 0.003367 / 0.004328 (-0.000962) 0.004999 / 0.004250 (0.000749) 0.044587 / 0.037052 (0.007535) 0.345553 / 0.258489 (0.087064) 0.394912 / 0.293841 (0.101071) 0.030543 / 0.128546 (-0.098003) 0.009548 / 0.075646 (-0.066098) 0.264124 / 0.419271 (-0.155148) 0.053720 / 0.043533 (0.010188) 0.340234 / 0.255139 (0.085095) 0.379533 / 0.283200 (0.096333) 0.104047 / 0.141683 (-0.037636) 1.494856 / 1.452155 (0.042701) 1.494202 / 1.492716 (0.001485)

Benchmark: benchmark_getitem_100B.json

metric get_batch_of_1024_random_rows get_batch_of_1024_rows get_first_row get_last_row
new / old (diff) 0.284093 / 0.018006 (0.266087) 0.452407 / 0.000490 (0.451918) 0.015030 / 0.000200 (0.014830) 0.000142 / 0.000054 (0.000088)

Benchmark: benchmark_indices_mapping.json

metric select shard shuffle sort train_test_split
new / old (diff) 0.026784 / 0.037411 (-0.010627) 0.106636 / 0.014526 (0.092110) 0.117659 / 0.176557 (-0.058897) 0.160565 / 0.737135 (-0.576570) 0.119782 / 0.296338 (-0.176556)

Benchmark: benchmark_iterating.json

metric read 5000 read 50000 read_batch 50000 10 read_batch 50000 100 read_batch 50000 1000 read_formatted numpy 5000 read_formatted pandas 5000 read_formatted tensorflow 5000 read_formatted torch 5000 read_formatted_batch numpy 5000 10 read_formatted_batch numpy 5000 1000 shuffled read 5000 shuffled read 50000 shuffled read_batch 50000 10 shuffled read_batch 50000 100 shuffled read_batch 50000 1000 shuffled read_formatted numpy 5000 shuffled read_formatted_batch numpy 5000 10 shuffled read_formatted_batch numpy 5000 1000
new / old (diff) 0.442143 / 0.215209 (0.226934) 4.423185 / 2.077655 (2.345530) 2.244563 / 1.504120 (0.740443) 2.057536 / 1.541195 (0.516341) 2.170960 / 1.468490 (0.702470) 0.424448 / 4.584777 (-4.160329) 3.782890 / 3.745712 (0.037178) 2.027839 / 5.269862 (-3.242023) 1.227398 / 4.565676 (-3.338279) 0.051186 / 0.424275 (-0.373089) 0.011570 / 0.007607 (0.003963) 0.546554 / 0.226044 (0.320509) 5.451091 / 2.268929 (3.182162) 2.697693 / 55.444624 (-52.746931) 2.354083 / 6.876477 (-4.522394) 2.483808 / 2.142072 (0.341736) 0.533480 / 4.805227 (-4.271747) 0.120389 / 6.500664 (-6.380275) 0.063223 / 0.075469 (-0.012246)

Benchmark: benchmark_map_filter.json

metric filter map fast-tokenizer batched map identity map identity batched map no-op batched map no-op batched numpy map no-op batched pandas map no-op batched pytorch map no-op batched tensorflow
new / old (diff) 1.536083 / 1.841788 (-0.305705) 14.252531 / 8.074308 (6.178223) 25.017441 / 10.191392 (14.826049) 0.958089 / 0.680424 (0.277665) 0.601663 / 0.534201 (0.067462) 0.387976 / 0.579283 (-0.191307) 0.438341 / 0.434364 (0.003977) 0.270293 / 0.540337 (-0.270044) 0.276028 / 1.386936 (-1.110908)

CML watermark

Please sign in to comment.