Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1400, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 977, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

__key__
string
__url__
string
pkl
unknown
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/ar/em(...TRUNCATED)
"gAIoWAUAAAA8VU5LPnEBWAMAAAA8Uz5xAlgEAAAAPC9TPnEDWAUAAAA8UEFEPnEEWAIAAADYjFgEAAAA2YHZinEFWAEAAAAuWAQ(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/bg/em(...TRUNCATED)
"gAIoWAUAAAA8VU5LPnEBWAMAAAA8Uz5xAlgEAAAAPC9TPnEDWAUAAAA8UEFEPnEEWAEAAAAsWAQAAADQvdCwcQVYAQAAAC5YAgA(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/cs/em(...TRUNCATED)
"gAIoWAUAAAA8VU5LPnEBWAMAAAA8Uz5xAlgEAAAAPC9TPnEDWAUAAAA8UEFEPnEEWAEAAAAuWAEAAAAsWAEAAABhWAQAAAAjIyM(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/et/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAEAAAAuWAEAAAAsWAQAAAAjIyMjcQVYAgA(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/fa/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAIAAADZiFgEAAAA2K/YsXEFWAEAAAAuWAI(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/fi/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAEAAAAuWAEAAAAsWAIAAABqYXEFWAQAAAA(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/he/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAEAAAAsWAEAAAAuWAQAAADXqdeccQVYAQA(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/hi/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAYAAADgpJXgpYdxBVgBAAAALFgGAAAA4KS(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/hr/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAEAAAAuWAEAAAAsWAIAAABqZXEFWAEAAAB(...TRUNCATED)
./words_embeddings_32
"hf://datasets/dcipheranalytics/polyglot3@ed61d376663d6f56d5b124d7b0902b900c48fc66/embeddings2/hu/em(...TRUNCATED)
"gAIoWAQAAAA8L1M+cQFYBQAAADxVTks+cQJYBQAAADxQQUQ+cQNYAwAAADxTPnEEWAEAAAAsWAEAAAAuWAEAAABhWAEAAAAtWAQ(...TRUNCATED)
End of preview.

polyglot3 models

Pre-trained models for polyglot3, the maintained Python 3 continuation of polyglot: word embeddings, named entity recognition, part of speech tagging and sentiment lexicons.

These are the models originally published by the polyglot project at Stony Brook University, whose download server is no longer online. This dataset mirrors them, unchanged, so that polyglot3 can download them. It is maintained by Dcipher Analytics AB (info@dcipheranalytics.com).

Usage

The files are meant to be downloaded by polyglot3, which verifies each one against the checksums in index.json:

pip install polyglot3
polyglot3 download LANG:tr        # every model for Turkish
from polyglot3.text import Text

Text("Mustafa Kemal Atatürk Ankara'da yaşadı.").entities
# [I-PER(['Mustafa', 'Kemal', 'Atatürk'])]

See the polyglot3 documentation for details.

Contents

Package Contents Languages Size
embeddings2 64-dimensional word embeddings (100,000 words), NER/POS input 25 635 MB
ner2 named entity recognition (person, location, organization) 25 7 MB
pos2 part of speech tagging (universal POS tags) 7 1.5 MB
sentiment2 word polarity lexicons (positive, neutral, negative) 136 1.4 MB

Each package is a single file at <task>/<language>/<file>, e.g. ner2/tr/tr_ner.pkl.tar.bz2. index.json lists every file with its size and MD5.

Languages (ISO 639 codes):

  • Embeddings and NER: ar bg cs et fa fi he hi hr hu id ko lv ms no pt ru sk sl sr sv th tr uk vi
  • POS: bg cs fi hu id sl sv
  • Sentiment: af als am an ar arz as ast az ba bar be bg bn bo bpy br bs ca ce ceb cs cv cy da de diq dv el en eo es et eu fa fi fo fr fy ga gan gd gl gu gv he hi hif hr hsb ht hu hy ia id ilo io is it ja jv ka kk km kn ko ku ky la lb li lmo lt lv mg mk ml mn mr ms mt my ne nl nn no oc or os pa pam pl pms ps pt qu rm ro ru sa sah scn sco se sh si sk sl sq sr su sv sw szl ta te tg th tk tl tr tt ug uk ur uz vec vi vls vo wa war yi yo zh zhw

The original polyglot project published models for more languages. This mirror only contains the ones above.

Source and license

The models were created by Rami Al-Rfou, Bryan Perozzi, Vivek Kulkarni, Yanqing Chen, Steven Skiena and colleagues at the Data Science Lab, Stony Brook University, and released with polyglot. They were trained on Wikipedia (embeddings, NER, POS) and derived from it and other resources (sentiment); see the papers below.

The polyglot code is licensed under GPLv3. The models are redistributed here under the terms of their original release; refer to the polyglot project for those terms. If you are an author of these models and have questions about this mirror, contact info@dcipheranalytics.com.

Citation

If you use these models, please cite the original papers:

@InProceedings{polyglot:2013:ACL-CoNLL,
  author    = {Al-Rfou, Rami and Perozzi, Bryan and Skiena, Steven},
  title     = {Polyglot: Distributed Word Representations for Multilingual NLP},
  booktitle = {Proceedings of the Seventeenth Conference on Computational Natural Language Learning},
  month     = {August},
  year      = {2013},
  address   = {Sofia, Bulgaria},
  publisher = {Association for Computational Linguistics},
  pages     = {183--192},
  url       = {https://aclanthology.org/W13-3520}
}

@inproceedings{polyglotner,
  author    = {Al-Rfou, Rami and Kulkarni, Vivek and Perozzi, Bryan and Skiena, Steven},
  title     = {{Polyglot-NER}: Massive Multilingual Named Entity Recognition},
  booktitle = {Proceedings of the 2015 {SIAM} International Conference on Data Mining},
  month     = {April},
  year      = {2015},
  publisher = {SIAM}
}

@inproceedings{chen2014building,
  title     = {Building sentiment lexicons for all major languages},
  author    = {Chen, Yanqing and Skiena, Steven},
  booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Short Papers)},
  pages     = {383--389},
  year      = {2014}
}
Downloads last month
52