Spaces:
No application file
No application file
File size: 62,772 Bytes
f418a33 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "3564591f-25e4-4be6-9104-acec74b5a120",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting datasets\n",
" Using cached datasets-2.16.1-py3-none-any.whl (507 kB)\n",
"Collecting pandas\n",
" Downloading pandas-2.2.0-cp310-cp310-win_amd64.whl (11.6 MB)\n",
" ---------------------------------------- 0.0/11.6 MB ? eta -:--:--\n",
" --------------------------------------- 0.0/11.6 MB 640.0 kB/s eta 0:00:19\n",
" --------------------------------------- 0.0/11.6 MB 640.0 kB/s eta 0:00:19\n",
" --------------------------------------- 0.0/11.6 MB 195.7 kB/s eta 0:00:59\n",
" --------------------------------------- 0.1/11.6 MB 381.3 kB/s eta 0:00:31\n",
" --------------------------------------- 0.1/11.6 MB 435.7 kB/s eta 0:00:27\n",
" --------------------------------------- 0.1/11.6 MB 399.4 kB/s eta 0:00:29\n",
" -------------------------------------- 0.2/11.6 MB 591.4 kB/s eta 0:00:20\n",
" -------------------------------------- 0.2/11.6 MB 602.4 kB/s eta 0:00:19\n",
" -------------------------------------- 0.2/11.6 MB 602.4 kB/s eta 0:00:19\n",
" - ------------------------------------- 0.3/11.6 MB 696.7 kB/s eta 0:00:17\n",
" - ------------------------------------- 0.4/11.6 MB 673.7 kB/s eta 0:00:17\n",
" - ------------------------------------- 0.4/11.6 MB 636.7 kB/s eta 0:00:18\n",
" - ------------------------------------- 0.5/11.6 MB 702.9 kB/s eta 0:00:16\n",
" -- ------------------------------------ 0.6/11.6 MB 893.0 kB/s eta 0:00:13\n",
" -- ------------------------------------ 0.6/11.6 MB 863.8 kB/s eta 0:00:13\n",
" -- ------------------------------------ 0.8/11.6 MB 955.9 kB/s eta 0:00:12\n",
" --- ------------------------------------ 0.9/11.6 MB 1.1 MB/s eta 0:00:10\n",
" ---- ----------------------------------- 1.2/11.6 MB 1.3 MB/s eta 0:00:09\n",
" ---- ----------------------------------- 1.2/11.6 MB 1.3 MB/s eta 0:00:08\n",
" ----- ---------------------------------- 1.5/11.6 MB 1.5 MB/s eta 0:00:07\n",
" ----- ---------------------------------- 1.6/11.6 MB 1.6 MB/s eta 0:00:07\n",
" ------ --------------------------------- 1.8/11.6 MB 1.6 MB/s eta 0:00:06\n",
" ------ --------------------------------- 2.0/11.6 MB 1.7 MB/s eta 0:00:06\n",
" ------- -------------------------------- 2.2/11.6 MB 1.9 MB/s eta 0:00:06\n",
" -------- ------------------------------- 2.3/11.6 MB 1.9 MB/s eta 0:00:05\n",
" -------- ------------------------------- 2.4/11.6 MB 1.9 MB/s eta 0:00:05\n",
" --------- ------------------------------ 2.6/11.6 MB 1.9 MB/s eta 0:00:05\n",
" --------- ------------------------------ 2.7/11.6 MB 1.9 MB/s eta 0:00:05\n",
" --------- ------------------------------ 2.8/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 3.0/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 3.1/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 3.2/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 3.3/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 3.3/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 3.4/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ------------ --------------------------- 3.5/11.6 MB 1.9 MB/s eta 0:00:05\n",
" ------------ --------------------------- 3.6/11.6 MB 2.0 MB/s eta 0:00:05\n",
" ------------- -------------------------- 3.9/11.6 MB 2.0 MB/s eta 0:00:04\n",
" ------------- -------------------------- 4.0/11.6 MB 2.1 MB/s eta 0:00:04\n",
" -------------- ------------------------- 4.2/11.6 MB 2.1 MB/s eta 0:00:04\n",
" -------------- ------------------------- 4.3/11.6 MB 2.1 MB/s eta 0:00:04\n",
" --------------- ------------------------ 4.6/11.6 MB 2.2 MB/s eta 0:00:04\n",
" ---------------- ----------------------- 4.8/11.6 MB 2.2 MB/s eta 0:00:04\n",
" ---------------- ----------------------- 4.9/11.6 MB 2.2 MB/s eta 0:00:03\n",
" ------------------ --------------------- 5.3/11.6 MB 2.4 MB/s eta 0:00:03\n",
" ------------------- -------------------- 5.7/11.6 MB 2.5 MB/s eta 0:00:03\n",
" -------------------- ------------------- 5.8/11.6 MB 2.5 MB/s eta 0:00:03\n",
" -------------------- ------------------- 5.9/11.6 MB 2.5 MB/s eta 0:00:03\n",
" -------------------- ------------------- 6.1/11.6 MB 2.5 MB/s eta 0:00:03\n",
" --------------------- ------------------ 6.3/11.6 MB 2.5 MB/s eta 0:00:03\n",
" --------------------- ------------------ 6.3/11.6 MB 2.5 MB/s eta 0:00:03\n",
" ---------------------- ----------------- 6.5/11.6 MB 2.5 MB/s eta 0:00:03\n",
" ----------------------- ---------------- 6.7/11.6 MB 2.5 MB/s eta 0:00:02\n",
" ------------------------ --------------- 7.0/11.6 MB 2.6 MB/s eta 0:00:02\n",
" ------------------------ --------------- 7.1/11.6 MB 2.6 MB/s eta 0:00:02\n",
" ------------------------- -------------- 7.4/11.6 MB 2.6 MB/s eta 0:00:02\n",
" -------------------------- ------------- 7.6/11.6 MB 2.7 MB/s eta 0:00:02\n",
" --------------------------- ------------ 7.9/11.6 MB 2.7 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 8.1/11.6 MB 2.8 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 8.3/11.6 MB 2.8 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 8.6/11.6 MB 2.8 MB/s eta 0:00:02\n",
" ------------------------------ --------- 8.8/11.6 MB 2.8 MB/s eta 0:00:01\n",
" ------------------------------- -------- 9.1/11.6 MB 2.9 MB/s eta 0:00:01\n",
" -------------------------------- ------- 9.3/11.6 MB 2.9 MB/s eta 0:00:01\n",
" -------------------------------- ------- 9.4/11.6 MB 2.9 MB/s eta 0:00:01\n",
" -------------------------------- ------- 9.5/11.6 MB 2.9 MB/s eta 0:00:01\n",
" --------------------------------- ------ 9.6/11.6 MB 2.9 MB/s eta 0:00:01\n",
" --------------------------------- ------ 9.8/11.6 MB 2.9 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 10.1/11.6 MB 3.0 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 10.3/11.6 MB 3.1 MB/s eta 0:00:01\n",
" ------------------------------------ --- 10.5/11.6 MB 3.3 MB/s eta 0:00:01\n",
" ------------------------------------ --- 10.7/11.6 MB 3.5 MB/s eta 0:00:01\n",
" ------------------------------------- -- 10.9/11.6 MB 3.5 MB/s eta 0:00:01\n",
" -------------------------------------- - 11.0/11.6 MB 3.6 MB/s eta 0:00:01\n",
" --------------------------------------- 11.3/11.6 MB 3.6 MB/s eta 0:00:01\n",
" --------------------------------------- 11.5/11.6 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 11.6/11.6 MB 3.6 MB/s eta 0:00:01\n",
" ---------------------------------------- 11.6/11.6 MB 3.6 MB/s eta 0:00:00\n",
"Collecting filelock\n",
" Using cached filelock-3.13.1-py3-none-any.whl (11 kB)\n",
"Requirement already satisfied: requests>=2.19.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (2.31.0)\n",
"Collecting multiprocess\n",
" Downloading multiprocess-0.70.15-py310-none-any.whl (134 kB)\n",
" ---------------------------------------- 0.0/134.8 kB ? eta -:--:--\n",
" ---------------------------------- --- 122.9/134.8 kB 3.5 MB/s eta 0:00:01\n",
" -------------------------------------- 134.8/134.8 kB 2.0 MB/s eta 0:00:00\n",
"Collecting huggingface-hub>=0.19.4\n",
" Using cached huggingface_hub-0.20.3-py3-none-any.whl (330 kB)\n",
"Collecting pyarrow>=8.0.0\n",
" Downloading pyarrow-15.0.0-cp310-cp310-win_amd64.whl (24.8 MB)\n",
" ---------------------------------------- 0.0/24.8 MB ? eta -:--:--\n",
" ---------------------------------------- 0.1/24.8 MB 3.3 MB/s eta 0:00:08\n",
" ---------------------------------------- 0.2/24.8 MB 3.5 MB/s eta 0:00:08\n",
" --------------------------------------- 0.5/24.8 MB 4.2 MB/s eta 0:00:06\n",
" - -------------------------------------- 0.6/24.8 MB 4.1 MB/s eta 0:00:06\n",
" - -------------------------------------- 0.8/24.8 MB 4.2 MB/s eta 0:00:06\n",
" - -------------------------------------- 1.0/24.8 MB 4.2 MB/s eta 0:00:06\n",
" - -------------------------------------- 1.2/24.8 MB 4.4 MB/s eta 0:00:06\n",
" -- ------------------------------------- 1.4/24.8 MB 4.4 MB/s eta 0:00:06\n",
" -- ------------------------------------- 1.6/24.8 MB 4.5 MB/s eta 0:00:06\n",
" -- ------------------------------------- 1.8/24.8 MB 4.6 MB/s eta 0:00:05\n",
" --- ------------------------------------ 2.0/24.8 MB 4.5 MB/s eta 0:00:06\n",
" --- ------------------------------------ 2.2/24.8 MB 4.6 MB/s eta 0:00:05\n",
" --- ------------------------------------ 2.3/24.8 MB 4.5 MB/s eta 0:00:06\n",
" ---- ----------------------------------- 2.6/24.8 MB 4.5 MB/s eta 0:00:05\n",
" ---- ----------------------------------- 2.7/24.8 MB 4.5 MB/s eta 0:00:05\n",
" ---- ----------------------------------- 2.8/24.8 MB 4.4 MB/s eta 0:00:06\n",
" ---- ----------------------------------- 3.0/24.8 MB 4.5 MB/s eta 0:00:05\n",
" ---- ----------------------------------- 3.1/24.8 MB 4.4 MB/s eta 0:00:05\n",
" ----- ---------------------------------- 3.3/24.8 MB 4.4 MB/s eta 0:00:05\n",
" ----- ---------------------------------- 3.4/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ----- ---------------------------------- 3.7/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ------ --------------------------------- 3.9/24.8 MB 4.5 MB/s eta 0:00:05\n",
" ------ --------------------------------- 4.2/24.8 MB 4.5 MB/s eta 0:00:05\n",
" ------- -------------------------------- 4.4/24.8 MB 4.7 MB/s eta 0:00:05\n",
" ------- -------------------------------- 4.7/24.8 MB 4.7 MB/s eta 0:00:05\n",
" ------- -------------------------------- 4.8/24.8 MB 4.6 MB/s eta 0:00:05\n",
" ------- -------------------------------- 4.9/24.8 MB 4.5 MB/s eta 0:00:05\n",
" -------- ------------------------------- 5.0/24.8 MB 4.5 MB/s eta 0:00:05\n",
" -------- ------------------------------- 5.1/24.8 MB 4.4 MB/s eta 0:00:05\n",
" -------- ------------------------------- 5.2/24.8 MB 4.3 MB/s eta 0:00:05\n",
" -------- ------------------------------- 5.3/24.8 MB 4.3 MB/s eta 0:00:05\n",
" -------- ------------------------------- 5.5/24.8 MB 4.3 MB/s eta 0:00:05\n",
" --------- ------------------------------ 5.7/24.8 MB 4.3 MB/s eta 0:00:05\n",
" --------- ------------------------------ 5.9/24.8 MB 4.4 MB/s eta 0:00:05\n",
" --------- ------------------------------ 6.1/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 6.3/24.8 MB 4.4 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 6.5/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 6.6/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ---------- ----------------------------- 6.8/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 7.0/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 7.1/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 7.2/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ----------- ---------------------------- 7.3/24.8 MB 4.2 MB/s eta 0:00:05\n",
" ------------ --------------------------- 7.5/24.8 MB 4.3 MB/s eta 0:00:05\n",
" ------------ --------------------------- 7.7/24.8 MB 4.2 MB/s eta 0:00:05\n",
" ------------ --------------------------- 7.9/24.8 MB 4.3 MB/s eta 0:00:04\n",
" ------------- -------------------------- 8.1/24.8 MB 4.3 MB/s eta 0:00:04\n",
" ------------- -------------------------- 8.2/24.8 MB 4.2 MB/s eta 0:00:04\n",
" ------------- -------------------------- 8.5/24.8 MB 4.3 MB/s eta 0:00:04\n",
" -------------- ------------------------- 8.7/24.8 MB 4.3 MB/s eta 0:00:04\n",
" -------------- ------------------------- 8.9/24.8 MB 4.3 MB/s eta 0:00:04\n",
" -------------- ------------------------- 9.1/24.8 MB 4.3 MB/s eta 0:00:04\n",
" -------------- ------------------------- 9.2/24.8 MB 4.3 MB/s eta 0:00:04\n",
" --------------- ------------------------ 9.5/24.8 MB 4.3 MB/s eta 0:00:04\n",
" --------------- ------------------------ 9.6/24.8 MB 4.3 MB/s eta 0:00:04\n",
" --------------- ------------------------ 9.9/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ---------------- ----------------------- 10.0/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ---------------- ----------------------- 10.3/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ---------------- ----------------------- 10.4/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ----------------- ---------------------- 10.6/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ----------------- ---------------------- 10.7/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ----------------- ---------------------- 10.9/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ----------------- ---------------------- 11.1/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ------------------ --------------------- 11.3/24.8 MB 4.4 MB/s eta 0:00:04\n",
" ------------------ --------------------- 11.6/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ------------------ --------------------- 11.6/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ------------------ --------------------- 11.7/24.8 MB 4.3 MB/s eta 0:00:04\n",
" ------------------- -------------------- 12.0/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ------------------- -------------------- 12.2/24.8 MB 4.4 MB/s eta 0:00:03\n",
" -------------------- ------------------- 12.5/24.8 MB 4.4 MB/s eta 0:00:03\n",
" -------------------- ------------------- 12.7/24.8 MB 4.5 MB/s eta 0:00:03\n",
" -------------------- ------------------- 12.9/24.8 MB 4.5 MB/s eta 0:00:03\n",
" --------------------- ------------------ 13.1/24.8 MB 4.5 MB/s eta 0:00:03\n",
" --------------------- ------------------ 13.3/24.8 MB 4.5 MB/s eta 0:00:03\n",
" --------------------- ------------------ 13.5/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ---------------------- ----------------- 13.7/24.8 MB 4.6 MB/s eta 0:00:03\n",
" ---------------------- ----------------- 13.8/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ---------------------- ----------------- 14.0/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ---------------------- ----------------- 14.2/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ----------------------- ---------------- 14.3/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ----------------------- ---------------- 14.5/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ----------------------- ---------------- 14.7/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ------------------------ --------------- 15.0/24.8 MB 4.4 MB/s eta 0:00:03\n",
" ------------------------ --------------- 15.2/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ------------------------ --------------- 15.4/24.8 MB 4.6 MB/s eta 0:00:03\n",
" ------------------------- -------------- 15.5/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ------------------------- -------------- 15.7/24.8 MB 4.5 MB/s eta 0:00:03\n",
" ------------------------- -------------- 15.9/24.8 MB 4.5 MB/s eta 0:00:02\n",
" -------------------------- ------------- 16.1/24.8 MB 4.5 MB/s eta 0:00:02\n",
" -------------------------- ------------- 16.3/24.8 MB 4.5 MB/s eta 0:00:02\n",
" -------------------------- ------------- 16.4/24.8 MB 4.5 MB/s eta 0:00:02\n",
" -------------------------- ------------- 16.6/24.8 MB 4.4 MB/s eta 0:00:02\n",
" --------------------------- ------------ 16.8/24.8 MB 4.5 MB/s eta 0:00:02\n",
" --------------------------- ------------ 17.0/24.8 MB 4.5 MB/s eta 0:00:02\n",
" --------------------------- ------------ 17.1/24.8 MB 4.5 MB/s eta 0:00:02\n",
" --------------------------- ------------ 17.2/24.8 MB 4.4 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 17.4/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 17.6/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 17.8/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 18.0/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 18.2/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 18.4/24.8 MB 4.5 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 18.6/24.8 MB 4.4 MB/s eta 0:00:02\n",
" ------------------------------ --------- 18.7/24.8 MB 4.4 MB/s eta 0:00:02\n",
" ------------------------------ --------- 18.9/24.8 MB 4.4 MB/s eta 0:00:02\n",
" ------------------------------ --------- 19.0/24.8 MB 4.3 MB/s eta 0:00:02\n",
" ------------------------------ --------- 19.2/24.8 MB 4.3 MB/s eta 0:00:02\n",
" ------------------------------- -------- 19.4/24.8 MB 4.3 MB/s eta 0:00:02\n",
" ------------------------------- -------- 19.6/24.8 MB 4.3 MB/s eta 0:00:02\n",
" ------------------------------- -------- 19.8/24.8 MB 4.3 MB/s eta 0:00:02\n",
" -------------------------------- ------- 20.0/24.8 MB 4.3 MB/s eta 0:00:02\n",
" -------------------------------- ------- 20.2/24.8 MB 4.3 MB/s eta 0:00:02\n",
" -------------------------------- ------- 20.4/24.8 MB 4.2 MB/s eta 0:00:02\n",
" --------------------------------- ------ 20.5/24.8 MB 4.2 MB/s eta 0:00:02\n",
" --------------------------------- ------ 20.6/24.8 MB 4.2 MB/s eta 0:00:01\n",
" --------------------------------- ------ 20.7/24.8 MB 4.1 MB/s eta 0:00:01\n",
" --------------------------------- ------ 20.8/24.8 MB 4.1 MB/s eta 0:00:01\n",
" --------------------------------- ------ 21.0/24.8 MB 4.1 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 21.1/24.8 MB 4.1 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 21.3/24.8 MB 4.1 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 21.4/24.8 MB 4.1 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 21.4/24.8 MB 4.1 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 21.6/24.8 MB 4.0 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 21.8/24.8 MB 4.0 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 22.0/24.8 MB 4.0 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 22.1/24.8 MB 4.0 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 22.3/24.8 MB 4.0 MB/s eta 0:00:01\n",
" ------------------------------------ --- 22.5/24.8 MB 3.9 MB/s eta 0:00:01\n",
" ------------------------------------ --- 22.6/24.8 MB 3.9 MB/s eta 0:00:01\n",
" ------------------------------------ --- 22.7/24.8 MB 3.9 MB/s eta 0:00:01\n",
" ------------------------------------ --- 22.8/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------ --- 22.9/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.0/24.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.1/24.8 MB 3.5 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.2/24.8 MB 3.5 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.4/24.8 MB 3.5 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.5/24.8 MB 3.4 MB/s eta 0:00:01\n",
" ------------------------------------- -- 23.5/24.8 MB 3.4 MB/s eta 0:00:01\n",
" -------------------------------------- - 23.6/24.8 MB 3.4 MB/s eta 0:00:01\n",
" -------------------------------------- - 23.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" -------------------------------------- - 24.0/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.2/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.4/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.6/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.7/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 24.8/24.8 MB 3.4 MB/s eta 0:00:01\n",
" ---------------------------------------- 24.8/24.8 MB 3.1 MB/s eta 0:00:00\n",
"Collecting fsspec[http]<=2023.10.0,>=2023.1.0\n",
" Using cached fsspec-2023.10.0-py3-none-any.whl (166 kB)\n",
"Collecting aiohttp\n",
" Downloading aiohttp-3.9.1-cp310-cp310-win_amd64.whl (364 kB)\n",
" ---------------------------------------- 0.0/364.6 kB ? eta -:--:--\n",
" ----------- -------------------------- 112.6/364.6 kB 3.2 MB/s eta 0:00:01\n",
" --------------------- ---------------- 204.8/364.6 kB 3.1 MB/s eta 0:00:01\n",
" ----------------------------------- -- 337.9/364.6 kB 3.0 MB/s eta 0:00:01\n",
" -------------------------------------- 364.6/364.6 kB 2.8 MB/s eta 0:00:00\n",
"Collecting numpy>=1.17\n",
" Downloading numpy-1.26.3-cp310-cp310-win_amd64.whl (15.8 MB)\n",
" ---------------------------------------- 0.0/15.8 MB ? eta -:--:--\n",
" --------------------------------------- 0.2/15.8 MB 4.6 MB/s eta 0:00:04\n",
" --------------------------------------- 0.3/15.8 MB 4.1 MB/s eta 0:00:04\n",
" - -------------------------------------- 0.5/15.8 MB 3.9 MB/s eta 0:00:04\n",
" - -------------------------------------- 0.7/15.8 MB 3.8 MB/s eta 0:00:04\n",
" -- ------------------------------------- 0.8/15.8 MB 3.6 MB/s eta 0:00:05\n",
" -- ------------------------------------- 1.0/15.8 MB 3.9 MB/s eta 0:00:04\n",
" -- ------------------------------------- 1.1/15.8 MB 3.8 MB/s eta 0:00:04\n",
" --- ------------------------------------ 1.3/15.8 MB 3.7 MB/s eta 0:00:04\n",
" --- ------------------------------------ 1.4/15.8 MB 3.8 MB/s eta 0:00:04\n",
" --- ------------------------------------ 1.6/15.8 MB 3.8 MB/s eta 0:00:04\n",
" ---- ----------------------------------- 1.7/15.8 MB 3.8 MB/s eta 0:00:04\n",
" ---- ----------------------------------- 1.9/15.8 MB 3.7 MB/s eta 0:00:04\n",
" ----- ---------------------------------- 2.0/15.8 MB 3.7 MB/s eta 0:00:04\n",
" ----- ---------------------------------- 2.1/15.8 MB 3.6 MB/s eta 0:00:04\n",
" ----- ---------------------------------- 2.3/15.8 MB 3.6 MB/s eta 0:00:04\n",
" ------ --------------------------------- 2.5/15.8 MB 3.7 MB/s eta 0:00:04\n",
" ------ --------------------------------- 2.6/15.8 MB 3.7 MB/s eta 0:00:04\n",
" ------- -------------------------------- 2.8/15.8 MB 3.7 MB/s eta 0:00:04\n",
" ------- -------------------------------- 3.0/15.8 MB 3.8 MB/s eta 0:00:04\n",
" -------- ------------------------------- 3.2/15.8 MB 3.9 MB/s eta 0:00:04\n",
" -------- ------------------------------- 3.4/15.8 MB 3.9 MB/s eta 0:00:04\n",
" --------- ------------------------------ 3.6/15.8 MB 3.9 MB/s eta 0:00:04\n",
" --------- ------------------------------ 3.8/15.8 MB 4.0 MB/s eta 0:00:04\n",
" ---------- ----------------------------- 4.0/15.8 MB 4.0 MB/s eta 0:00:03\n",
" ---------- ----------------------------- 4.2/15.8 MB 4.0 MB/s eta 0:00:03\n",
" ----------- ---------------------------- 4.4/15.8 MB 4.1 MB/s eta 0:00:03\n",
" ----------- ---------------------------- 4.6/15.8 MB 4.1 MB/s eta 0:00:03\n",
" ------------ --------------------------- 4.8/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ------------- -------------------------- 5.1/15.8 MB 4.3 MB/s eta 0:00:03\n",
" ------------- -------------------------- 5.2/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ------------- -------------------------- 5.4/15.8 MB 4.1 MB/s eta 0:00:03\n",
" -------------- ------------------------- 5.6/15.8 MB 4.2 MB/s eta 0:00:03\n",
" -------------- ------------------------- 5.8/15.8 MB 4.2 MB/s eta 0:00:03\n",
" --------------- ------------------------ 6.1/15.8 MB 4.3 MB/s eta 0:00:03\n",
" --------------- ------------------------ 6.3/15.8 MB 4.3 MB/s eta 0:00:03\n",
" ---------------- ----------------------- 6.5/15.8 MB 4.3 MB/s eta 0:00:03\n",
" ---------------- ----------------------- 6.6/15.8 MB 4.3 MB/s eta 0:00:03\n",
" ----------------- ---------------------- 6.7/15.8 MB 4.3 MB/s eta 0:00:03\n",
" ----------------- ---------------------- 6.7/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ----------------- ---------------------- 7.0/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ------------------ --------------------- 7.1/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ------------------ --------------------- 7.2/15.8 MB 4.2 MB/s eta 0:00:03\n",
" ------------------ --------------------- 7.5/15.8 MB 4.2 MB/s eta 0:00:02\n",
" ------------------- -------------------- 7.7/15.8 MB 4.2 MB/s eta 0:00:02\n",
" -------------------- ------------------- 7.9/15.8 MB 4.2 MB/s eta 0:00:02\n",
" -------------------- ------------------- 8.0/15.8 MB 4.2 MB/s eta 0:00:02\n",
" -------------------- ------------------- 8.2/15.8 MB 4.2 MB/s eta 0:00:02\n",
" --------------------- ------------------ 8.3/15.8 MB 4.2 MB/s eta 0:00:02\n",
" --------------------- ------------------ 8.4/15.8 MB 4.2 MB/s eta 0:00:02\n",
" --------------------- ------------------ 8.6/15.8 MB 4.2 MB/s eta 0:00:02\n",
" ---------------------- ----------------- 8.7/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ---------------------- ----------------- 8.9/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ----------------------- ---------------- 9.1/15.8 MB 4.2 MB/s eta 0:00:02\n",
" ----------------------- ---------------- 9.3/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ----------------------- ---------------- 9.5/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ------------------------ --------------- 9.6/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ------------------------ --------------- 9.8/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ------------------------- -------------- 9.9/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ------------------------- -------------- 10.1/15.8 MB 4.2 MB/s eta 0:00:02\n",
" -------------------------- ------------- 10.3/15.8 MB 4.1 MB/s eta 0:00:02\n",
" -------------------------- ------------- 10.4/15.8 MB 4.1 MB/s eta 0:00:02\n",
" -------------------------- ------------- 10.5/15.8 MB 4.1 MB/s eta 0:00:02\n",
" -------------------------- ------------- 10.7/15.8 MB 4.1 MB/s eta 0:00:02\n",
" --------------------------- ------------ 10.9/15.8 MB 4.1 MB/s eta 0:00:02\n",
" --------------------------- ------------ 10.9/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 11.1/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 11.3/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ---------------------------- ----------- 11.4/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 11.6/15.8 MB 4.1 MB/s eta 0:00:02\n",
" ----------------------------- ---------- 11.8/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------ --------- 11.9/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------ --------- 12.1/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------ --------- 12.2/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.3/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.3/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.4/15.8 MB 4.1 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.5/15.8 MB 4.0 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.6/15.8 MB 4.0 MB/s eta 0:00:01\n",
" ------------------------------- -------- 12.6/15.8 MB 3.9 MB/s eta 0:00:01\n",
" -------------------------------- ------- 12.7/15.8 MB 3.9 MB/s eta 0:00:01\n",
" -------------------------------- ------- 12.9/15.8 MB 3.9 MB/s eta 0:00:01\n",
" --------------------------------- ------ 13.0/15.8 MB 3.9 MB/s eta 0:00:01\n",
" --------------------------------- ------ 13.1/15.8 MB 3.9 MB/s eta 0:00:01\n",
" --------------------------------- ------ 13.3/15.8 MB 3.9 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 13.5/15.8 MB 3.9 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 13.6/15.8 MB 3.9 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 13.8/15.8 MB 3.8 MB/s eta 0:00:01\n",
" ---------------------------------- ----- 13.8/15.8 MB 3.8 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 14.0/15.8 MB 3.8 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 14.2/15.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------ --- 14.3/15.8 MB 3.8 MB/s eta 0:00:01\n",
" ------------------------------------ --- 14.5/15.8 MB 3.7 MB/s eta 0:00:01\n",
" ------------------------------------ --- 14.6/15.8 MB 3.7 MB/s eta 0:00:01\n",
" ------------------------------------- -- 14.8/15.8 MB 3.7 MB/s eta 0:00:01\n",
" ------------------------------------- -- 15.0/15.8 MB 3.7 MB/s eta 0:00:01\n",
" -------------------------------------- - 15.1/15.8 MB 3.7 MB/s eta 0:00:01\n",
" -------------------------------------- - 15.3/15.8 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 15.4/15.8 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 15.6/15.8 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 15.7/15.8 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 15.8/15.8 MB 3.7 MB/s eta 0:00:01\n",
" --------------------------------------- 15.8/15.8 MB 3.7 MB/s eta 0:00:01\n",
" ---------------------------------------- 15.8/15.8 MB 3.5 MB/s eta 0:00:00\n",
"Collecting tqdm>=4.62.1\n",
" Using cached tqdm-4.66.1-py3-none-any.whl (78 kB)\n",
"Collecting xxhash\n",
" Downloading xxhash-3.4.1-cp310-cp310-win_amd64.whl (29 kB)\n",
"Collecting pyarrow-hotfix\n",
" Using cached pyarrow_hotfix-0.6-py3-none-any.whl (7.9 kB)\n",
"Collecting dill<0.3.8,>=0.3.0\n",
" Using cached dill-0.3.7-py3-none-any.whl (115 kB)\n",
"Requirement already satisfied: pyyaml>=5.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (6.0.1)\n",
"Requirement already satisfied: packaging in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from datasets) (23.2)\n",
"Collecting frozenlist>=1.1.1\n",
" Downloading frozenlist-1.4.1-cp310-cp310-win_amd64.whl (50 kB)\n",
" ---------------------------------------- 0.0/50.4 kB ? eta -:--:--\n",
" ---------------------------------------- 50.4/50.4 kB 2.7 MB/s eta 0:00:00\n",
"Collecting aiosignal>=1.1.2\n",
" Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
"Collecting multidict<7.0,>=4.5\n",
" Downloading multidict-6.0.4-cp310-cp310-win_amd64.whl (28 kB)\n",
"Requirement already satisfied: attrs>=17.3.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from aiohttp->datasets) (23.2.0)\n",
"Collecting yarl<2.0,>=1.0\n",
" Downloading yarl-1.9.4-cp310-cp310-win_amd64.whl (76 kB)\n",
" ---------------------------------------- 0.0/76.4 kB ? eta -:--:--\n",
" ---------------------------------------- 76.4/76.4 kB 2.1 MB/s eta 0:00:00\n",
"Collecting async-timeout<5.0,>=4.0\n",
" Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)\n",
"Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from huggingface-hub>=0.19.4->datasets) (4.9.0)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (3.3.2)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (3.6)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (2.1.0)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from requests>=2.19.0->datasets) (2023.11.17)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from tqdm>=4.62.1->datasets) (0.4.6)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from pandas->datasets) (2.8.2)\n",
"Collecting pytz>=2020.1\n",
" Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)\n",
"Collecting tzdata>=2022.7\n",
" Using cached tzdata-2023.4-py2.py3-none-any.whl (346 kB)\n",
"Requirement already satisfied: six>=1.5 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n",
"Installing collected packages: pytz, xxhash, tzdata, tqdm, pyarrow-hotfix, numpy, multidict, fsspec, frozenlist, filelock, dill, async-timeout, yarl, pyarrow, pandas, multiprocess, huggingface-hub, aiosignal, aiohttp, datasets\n",
"Successfully installed aiohttp-3.9.1 aiosignal-1.3.1 async-timeout-4.0.3 datasets-2.16.1 dill-0.3.7 filelock-3.13.1 frozenlist-1.4.1 fsspec-2023.10.0 huggingface-hub-0.20.3 multidict-6.0.4 multiprocess-0.70.15 numpy-1.26.3 pandas-2.2.0 pyarrow-15.0.0 pyarrow-hotfix-0.6 pytz-2023.3.post1 tqdm-4.66.1 tzdata-2023.4 xxhash-3.4.1 yarl-1.9.4\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
"!pip install datasets"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "bd4b0343-d24f-4ca0-9fcb-94307eaaf732",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting ipywidgetsNote: you may need to restart the kernel to use updated packages.\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Downloading ipywidgets-8.1.1-py3-none-any.whl (139 kB)\n",
" ---------------------------------------- 0.0/139.4 kB ? eta -:--:--\n",
" -- ------------------------------------- 10.2/139.4 kB ? eta -:--:--\n",
" -------- ---------------------------- 30.7/139.4 kB 445.2 kB/s eta 0:00:01\n",
" -------- ---------------------------- 30.7/139.4 kB 445.2 kB/s eta 0:00:01\n",
" ---------------- -------------------- 61.4/139.4 kB 299.4 kB/s eta 0:00:01\n",
" ----------------------------- ------ 112.6/139.4 kB 469.7 kB/s eta 0:00:01\n",
" ----------------------------- ------ 112.6/139.4 kB 469.7 kB/s eta 0:00:01\n",
" ------------------------------------ 139.4/139.4 kB 414.0 kB/s eta 0:00:00\n",
"Requirement already satisfied: traitlets>=4.3.1 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (5.14.1)\n",
"Requirement already satisfied: comm>=0.1.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (0.2.1)\n",
"Collecting jupyterlab-widgets~=3.0.9\n",
" Downloading jupyterlab_widgets-3.0.9-py3-none-any.whl (214 kB)\n",
" ---------------------------------------- 0.0/214.9 kB ? eta -:--:--\n",
" ----------- --------------------------- 61.4/214.9 kB 1.7 MB/s eta 0:00:01\n",
" ------------------- ------------------ 112.6/214.9 kB 2.2 MB/s eta 0:00:01\n",
" ------------------- ------------------ 112.6/214.9 kB 2.2 MB/s eta 0:00:01\n",
" ----------------------------- ------ 174.1/214.9 kB 958.1 kB/s eta 0:00:01\n",
" -------------------------------------- 214.9/214.9 kB 1.0 MB/s eta 0:00:00\n",
"Requirement already satisfied: ipython>=6.1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipywidgets) (8.20.0)\n",
"Collecting widgetsnbextension~=4.0.9\n",
" Downloading widgetsnbextension-4.0.9-py3-none-any.whl (2.3 MB)\n",
" ---------------------------------------- 0.0/2.3 MB ? eta -:--:--\n",
" - -------------------------------------- 0.1/2.3 MB 3.2 MB/s eta 0:00:01\n",
" ---- ----------------------------------- 0.3/2.3 MB 3.1 MB/s eta 0:00:01\n",
" ---- ----------------------------------- 0.3/2.3 MB 3.1 MB/s eta 0:00:01\n",
" ----- ---------------------------------- 0.3/2.3 MB 1.9 MB/s eta 0:00:02\n",
" -------- ------------------------------- 0.5/2.3 MB 2.0 MB/s eta 0:00:01\n",
" ------------ --------------------------- 0.7/2.3 MB 2.7 MB/s eta 0:00:01\n",
" --------------- ------------------------ 0.9/2.3 MB 2.8 MB/s eta 0:00:01\n",
" ------------------- -------------------- 1.1/2.3 MB 3.0 MB/s eta 0:00:01\n",
" ---------------------- ----------------- 1.3/2.3 MB 3.1 MB/s eta 0:00:01\n",
" -------------------------- ------------- 1.5/2.3 MB 3.3 MB/s eta 0:00:01\n",
" ------------------------------ --------- 1.7/2.3 MB 3.5 MB/s eta 0:00:01\n",
" -------------------------------- ------- 1.8/2.3 MB 3.3 MB/s eta 0:00:01\n",
" ----------------------------------- ---- 2.1/2.3 MB 3.4 MB/s eta 0:00:01\n",
" --------------------------------------- 2.2/2.3 MB 3.5 MB/s eta 0:00:01\n",
" ---------------------------------------- 2.3/2.3 MB 3.4 MB/s eta 0:00:00\n",
"Requirement already satisfied: pygments>=2.4.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (2.17.2)\n",
"Requirement already satisfied: stack-data in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.6.3)\n",
"Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (3.0.43)\n",
"Requirement already satisfied: matplotlib-inline in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.1.6)\n",
"Requirement already satisfied: jedi>=0.16 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.19.1)\n",
"Requirement already satisfied: colorama in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (0.4.6)\n",
"Requirement already satisfied: decorator in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (5.1.1)\n",
"Requirement already satisfied: exceptiongroup in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from ipython>=6.1.0->ipywidgets) (1.2.0)\n",
"Requirement already satisfied: parso<0.9.0,>=0.8.3 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets) (0.8.3)\n",
"Requirement already satisfied: wcwidth in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=6.1.0->ipywidgets) (0.2.13)\n",
"Requirement already satisfied: pure-eval in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (0.2.2)\n",
"Requirement already satisfied: asttokens>=2.1.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (2.4.1)\n",
"Requirement already satisfied: executing>=1.2.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from stack-data->ipython>=6.1.0->ipywidgets) (2.0.1)\n",
"Requirement already satisfied: six>=1.12.0 in c:\\users\\dell\\appdata\\local\\programs\\python\\python310\\lib\\site-packages (from asttokens>=2.1.0->stack-data->ipython>=6.1.0->ipywidgets) (1.16.0)\n",
"Installing collected packages: widgetsnbextension, jupyterlab-widgets, ipywidgets\n",
"Successfully installed ipywidgets-8.1.1 jupyterlab-widgets-3.0.9 widgetsnbextension-4.0.9\n"
]
}
],
"source": [
"pip install ipywidgets"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "9995b754-58c9-4c1d-8e8f-9e55741186c5",
"metadata": {},
"outputs": [],
"source": [
"import datasets"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "87a513e0-f880-4219-9ffb-9a8c40707a69",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"100641"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"all_ds = datasets.list_datasets()\n",
"len(all_ds)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "f20dcb4d-bd17-4bf4-839f-3013b4f40c84",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['acronym_identification',\n",
" 'ade_corpus_v2',\n",
" 'adversarial_qa',\n",
" 'aeslc',\n",
" 'afrikaans_ner_corpus']"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"all_ds[:5]"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "63e676b3-0ce3-462a-b9e3-cc37c2f33703",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Dell\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\datasets\\load.py:1429: FutureWarning: The repository for oscar contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/oscar\n",
"You can avoid this message in future by passing the argument `trust_remote_code=True`.\n",
"Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.\n",
" warnings.warn(\n",
"Downloading builder script: 100%|█████████████████████████████████████████████████| 14.8k/14.8k [00:00<00:00, 14.8MB/s]\n",
"Downloading readme: 100%|████████████████████████████████████████████████████████████| 303k/303k [00:00<00:00, 412kB/s]\n",
"Downloading data: 100%|█████████████████████████████████████████████████████████████████████| 81.0/81.0 [00:00<?, ?B/s]\n",
"Downloading data: 100%|█████████████████████████████████████████████████████████████| 176M/176M [00:54<00:00, 3.21MB/s]\n",
"Generating train split: 100%|█████████████████████████████████████████| 120684/120684 [00:15<00:00, 7824.51 examples/s]\n"
]
}
],
"source": [
"dataset = datasets.load_dataset('oscar', 'unshuffled_deduplicated_si')"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "b6593b70-5caa-4da2-92bb-594e67bd964c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"DatasetDict({\n",
" train: Dataset({\n",
" features: ['id', 'text'],\n",
" num_rows: 120684\n",
" })\n",
"})"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dataset"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "d80f383a-3928-48cb-9218-50b2e6a5577b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'id': 0,\n",
" 'text': 'ජනාධිපතිවරයා දුෂණයට ඔතරම් විරුද්ධ නම් ශ්\\u200dරී ලංකා ටෙලිකොම් – මොබිටෙල් සඳහා ජනාධිපති විමර්ශන කොමිසමක් පත්කළ යුතු බව එම ආයතනයේ සේවකයින් සඳහන් කරයි.\\nඒ මේ වන විට එම ආයතනය බරපතල සැක සහිත ගනුදෙනු වලින් පිරීගත් අන්ත දුෂිත මෙන්ම ඉතිහාසයේ කිසිදා නොවූවිරූ පාඩුවක් ලබන තැනට පත්ව ඇති නිසාය.\\nවාර්තා වන තොරතුරු අතුරින් ශ්\\u200dරී ලංකා ටෙලිකොම් – මොබිටෙල් හී සිදුව තිබෙන එවැනි අතිශය සැකසහිත ගනුදෙනුවක් වන්නේ Mobitel – stage 8 (upgrade) ටෙන්ඩරය Huawei සමාගමට සහ ZTE සමාගමට ලබාදී ඇති ආකාරයයි.\\nHuawei සමාගමට ලබාදී ඇති ටෙන්ඩරයේ වටිනාකම ඇමරිකානු ඩොලර් මිලියන 79 ක් වන අතර ZTE සමාගමට ලබාදී ඇති ටෙන්ඩරයේ වටිනාකම ඇමරිකානු ඩොලර් මිලියන 6 කි.\\nමෙහි ඇති ගැටළුව වන්නේ ඇමරිකානු ඩොලර් මිලියන 85ක් තරම් ඇති විශාල වටිනාකමකින් යුතු අදාළ ගනුදෙනුව සිදුකිරීමේදී කිසිඳු ටෙන්ඩර් පටිපාටියක් අනුගමනය කර නොතිබීමය. මෙවැනි අධික වැයක් දරන්නට සිදුවන ගනුදෙනුවකදී ඒ සඳහා කැබිනට් අනුමැතිය මෙන්ම විධිමත් ප්\\u200dරසම්පාදන ක්\\u200dරියාවලියක් තුළ සිදුකිරීම නෛතික අවශ්\\u200dයතාවක් වුවත් ඒ ගැන කිසිඳු තැකීමක් ටෙලිකොම්- මොබිටෙල් පරිපාලනය සිදුකර නොමැත.\\nසේවක පිරිස් සඳහන් කරන ආකාරයට මෙම ගනුදෙනුව මුළුමනින්ම පසුගිය වසරේ සිදුකොට ඇත්තේ ටෙලිකොම් සභාපති කුමාරසිංහ සිරිසේනගේ මැදිහත්වීම මතය.\\nඑසේම මෙම ගනුදෙනුව තවදුරටත් සැක උපදවන කාරණයක් වන්නේ පසුගිය සිංහල – හින්දු අවුරුදු සමයේ එනම් අප්\\u200dරේල් 16 සිට 22 දක්වා පී.ජී කුමාරසිංහගේ සමස්ථ පවුලටම චීන සංචාරයක් සඳහා Huawei සමාගම අනුග්\\u200dරහය දක්වා ඇති බවද සේවක පිරිස් එල්ල කරන චෝදනාවය.\\nඑපමණක් නොව මේ වන විට ශ්\\u200dරී ලංකා ටෙලිකොම් හී IT අංශය නංවාලීම සඳහා කියමින් Virtusa සමාගමට ලබාදීමේ සුදානමක් පවතින බවද වාර්තා වෙයි. ඒ පිළිබඳ සේවක පිරිස් අනාවරණය කරමින් සඳහන් කරන්නේ IT අංශයේ සමස්ථ ක්\\u200dරියාවලිය වසරකට රුපියල් බිලියන 1ක් ගෙවා අදාළ සමගම හරහා සිදුකර ගැනීමේ අපේක්ෂාවෙන් මෙම කටයුත්ත දියත්කර ඇති බවය.\\nඑහිදීද කිසිඳු ටෙන්ඩර් කැඳවීමක් හෝ විධිමත් ප්\\u200dරසම්පාදන ක්\\u200dරියාවලියක් සිදුව නොමැති බවද ඔවුන් සඳහන් කරයි. එපමණක් නොව ශ්\\u200dරී ලංකා ටෙලිකොම් හී හදවත බඳු IT අංශය පෞද්ගලික සමාගමක් හරහා කරවා ගැනීමට යාම තුළ සමස්ත ආයතන පද්ධතියම අවධානමේ වැටීමක් සිදුවන බවද ඔවුන් පෙන්වා දෙයි.\\nමේ පිළිබඳ තොරතුරු අනාවරණය කරන පාර්ශව සඳහන් කර සිටින්නේ මේ කිසිඳු සැකකටයුතු ගනුදෙනුවක් සම්බන්ධව මාධ්\\u200dය හෝ වගකිවයුතු පාර්ශව කතා නොකරන බවත් ශ්\\u200dරී ලංකා ටෙලිකොම් සභාපති පී.ජී.කුමාරසිංහ , ජනාධිපති මෛත්\\u200dරීපාල සිරිසේනගේ සහෝදරයාවීම ඊට හේතුවී ඇති බව තමන් විශ්වාස කරන බවය.\\nඑසේම වත්මන් සභාපතිවරයා යටතේ ශ්\\u200dරී ලංකා ටෙලිකොම් හී කඩාවැටීම පෙන්වා දෙමින් තොරතුරු මුලාශ්\\u200dර සඳහන් කරන්නේ මේ වන විට රුපියල් බිලියන 35 කට අධික ණයක් සහිතව ආයතනය මුල්\\u200dය අර්බුදයකට ගමන් කර ඇති බවත් ආයතනය පවත්වාගෙන යන්නේ මහජන බැංකුවෙන් ලබාගත් බැංකු අයිරාවකින් බවය.\\nඑහෙත් වත්මන් ආණ්ඩුව බලයට පත්වන විට ශ්\\u200dරී ටෙලිකොම් හී ණය ප්\\u200dරමාණය රුපියල් බිලියන 6.9 ක් පමණක් වූ බවත් ඒ ණයද සමාගම ගෙන ඇත්තේ ආයතනය වර්ධනය කිරීමට අවශ්\\u200dය ව්\\u200dයාපෘති සඳහා බවද වාර්තා වෙයි.\\nඒ අනුව ආයතනයේ ණය 5 ගුණයකින් පමණ වැඩිකිරීම හැර ආයතනයේ යහපත වෙනුවෙන් වත්මන් සභාපතිවරයා සිදුකළ කිසිඳු සේවයක් නොමැති බවද සඳහන් වෙයි. එසේම ආයතනය රුපියල් මිලියන 500ක පමණ බරපතල පාඩුවක් ලබමින් සිටින බව ඒ හේතුවෙන් සේවකයින්ගේ බෝනස් ගෙවීමට පවා නොහැකි තත්ත්වයක් උද්ගතව පවතින බවත් සඳහන් කරන තොරතුරු මුලාශ්\\u200dර වැඩිදුරටත් සඳහන් කර සිටින්නේ මේ ආකාරයට තවත් කාලයක් ගියහොත් ශ්\\u200dරී ලංකා ටෙලිකොම් බංකොලොත්වීමේ අවධානමක්ද පවතින බවය.\\nමේ අතර ශ්\\u200dරී ලංකා ටෙලිකොම් හී විධායක නිලධාරී කිත්ති පෙරේරා මේ වන විටත් පුරප්පාඩුව පවතින ප්\\u200dරධාන විධායක නිලධාරී තනතුර සඳහා යොදා ගැනීමේ උත්සාහයකද සභාපතිවරයා නිරතව සිටින බව වාර්තා වෙයි.\\nටෙලිකොම් සභාපති කුමාරසිංහ මේ සම්බන්ධව “කිත්තිව CEO කරමු. මට ඒකට ඔයාලගේ උදව් ඕන” යනුවෙන් අධ්\\u200dයක්ෂ මණ්ඩලයටද පවසා ඇති බවත් වාර්තා වෙයි. අයතා ඉපයීම් සම්බන්ධව දුෂණ චෝදනා ලාභියකු වන කිත්ති පෙරේරා ප්\\u200dරධාන විධායක නිලධාරියා ලෙස පත්වුවහොත් ශ්\\u200dරී ලංකා ටෙලිකොම් පවතින තත්ත්වයද ඊට අහිමි වන බව මෙන්ම මේ වන විටත් ප්\\u200dරධාන විධායක නිලධාරී තනතුර සඳහා ඇබෑර්තු නිවේදනයේ දැක්වෙන සුදුසුකම් ද කිත්ති පෙරේරා සපුරා නොමැති බවද වැඩිදුරටත් වාර්තා වෙයි.\\nඑසේම කිත්ති පෙරේරා ඇතුළු රාජපක්ෂ හිතවාදී නඩයක්ම මේ වන විට සභාපතිවරයා සමඟ මෙම දුෂිත ගනුදෙනු රැසක නිරතව සිටින බවත් එය ජනාධිපතිවරයාගේ දේශපාලන කීර්ති නාමයට බරපතල හානිකර තත්ත්වයක් බවද ඔවුන් සඳහන් කරයි.\\nඒ අනුව තොරතුරු මුලාශ්\\u200dර සඳහන් කර සිටින්නේ මේවා ගැන කෝපනොවී එල්ලවන චෝදනා ඇත්තද නැත්තද යන්න ගැන විමර්ශනය කිරීමේ යුතුකමක් ජනාධිපතිවරයාට ඇති බවය. එසේම එවැනි විධිමත් විමර්ශනයක් සිදුකළ විට ශ්\\u200dරී ලංකා ටෙලිකොම්- මොබිටෙල් හී සිදුව තිබෙන දුෂණ සම්බන්ධවද ජනාධිපති විමර්ශන කොමිසමක් අවශ්\\u200dය බවට කරන යෝජනාවේ සාධාරණත්වයක් ඇති බව පෙනීයනු ඇති බවද ඔවුන් සඳහන් කරයි.\\n← තේරෙයි.., කල් යයි..! වැලිකඩ සමූහ ඝාතනයට සම්බන්ධ පොලිසියේ රංගජීව සහ බන්ධනාගාරයේ එමිල් රන්ජන්ට බඩු බනිස්..! ගෝඩ් ෆාදර්ට කවදා ද?\\nශ්\\u200dරී ලංකා ප්\\u200dරජාතන්ත්\\u200dරවාදී සමාජවාදී ජනරජයේ නිතියානුකුල අග්\\u200dරාමාත්\\u200dය ලෙස ඔබ පිළිගන්නේ? (මත විමසුම) October 28, 2018\\nලංකා ඊ නිව්ස් කර්තෘ සඳරුවන් සේනාධීර අත් අඩංගුවට ගන්න නැතිනම් පිටුවහල් කරන්න – ජනාධිපති ගමරාළ බ්\\u200dරිතාන්\\u200dයයෙන් ඉල්ලයි June 10, 2018\\nරටේ බිහි වූ දූෂිතම සහ භයංකරම රාජ්\\u200dය නිලධාරියා වූ ගෝඨා මැරී ඉපදිලා වගේ කතා කරමින් රට යලි විපත් මගකට ඇද දාන්න හදනවා – ෂැන්ග්\\u200dරිලා දේශණයට මුදල් ඇමැති මංගලගෙන් පිළිතුරක් May 20, 2018'}"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dataset['train'][0]"
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "b6c82283-ce4c-491e-81c1-ba0e512f0704",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|████████████████████████████████████████████████████████████████████████| 120684/120684 [00:13<00:00, 8667.09it/s]\n"
]
}
],
"source": [
"from tqdm.auto import tqdm\n",
"\n",
"text_data = []\n",
"file_count = 0\n",
"\n",
"for sample in tqdm(dataset['train']):\n",
" sample = sample['text'].replace('\\n', '')\n",
" text_data.append(sample)\n",
" if len(text_data) == 10_000:\n",
" with open(f'sinhala_{file_count}.txt','w' , encoding='utf-8') as fp:\n",
" fp.write('\\n'.join(text_data))\n",
" text_data = []\n",
" file_count += 1\n",
"with open(f'sinhala_{file_count}.txt','w' , encoding='utf-8') as fp:\n",
" fp.write('\\n'.join(text_data))"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|