wikidata_id
stringlengths
2
10
name
stringlengths
0
250
name_origin
stringlengths
0
250
language
stringlengths
2
11
type
stringclasses
3 values
Q45
Portugal
Portugal
en
LOC
Q45
Portugal
Portugal
fr
LOC
Q45
Portugal
Portugal
nb
LOC
Q45
Portugal
Portogallo
it
LOC
Q45
Portugal
Португалия
ru
LOC
Q45
Portugal
Portugal
nl
LOC
Q45
Portugal
Portugal
es
LOC
Q45
Portugal
Portugal
de
LOC
Q45
Portugal
Portugalia
pl
LOC
Q45
Portugal
Партугалія
be-tarask
LOC
Q45
Portugal
Phû-tô-gâ
nan
LOC
Q45
Portugal
Portugal
en-gb
LOC
Q45
Portugal
ポルトガル
ja
LOC
Q45
Portugal
Portugal
en-ca
LOC
Q45
Portugal
Portugéh
ace
LOC
Q45
Portugal
Portugal
af
LOC
Q45
Portugal
Portugali
fi
LOC
Q45
Portugal
葡萄牙
zh
LOC
Q45
Portugal
葡萄牙
zh-cn
LOC
Q45
Portugal
葡萄牙
zh-hans
LOC
Q45
Portugal
葡萄牙
zh-hant
LOC
Q45
Portugal
ፖርቱጋል
am
LOC
Q45
Portugal
Португалија
mk
LOC
Q45
Portugal
Portugal
pt
LOC
Q45
Portugal
Portugal
ca
LOC
Q45
Portugal
Португалија
sr
LOC
Q45
Portugal
Portugal
hr
LOC
Q45
Portugal
Ureno
sw
LOC
Q45
Portugal
Portugal
an
LOC
Q45
Portugal
Portugal
ang
LOC
Q45
Portugal
البرتغال
ar
LOC
Q45
Portugal
ܦܘܪܛܘܓܠ
arc
LOC
Q45
Portugal
پورتوجال
arz
LOC
Q45
Portugal
Portugal
ast
LOC
Q45
Portugal
Purtuwal
ay
LOC
Q45
Portugal
Portuqaliya
az
LOC
Q45
Portugal
Португалия
ba
LOC
Q45
Portugal
Portugal
bar
LOC
Q45
Portugal
Portugal
bcl
LOC
Q45
Portugal
Партугалія
be
LOC
Q45
Portugal
Португалия
bg
LOC
Q45
Portugal
Portugal
bi
LOC
Q45
Portugal
পর্তুগাল
bn
LOC
Q45
Portugal
པོ་ཅུ་གྷལ།
bo
LOC
Q45
Portugal
পর্তুগাল
bpy
LOC
Q45
Portugal
Portugal
br
LOC
Q45
Portugal
Portugal
bs
LOC
Q45
Portugal
Portugal
cbk-zam
LOC
Q45
Portugal
Buò-dò̤-ngà
cdo
LOC
Q45
Portugal
Португали
ce
LOC
Q45
Portugal
Portugal
ceb
LOC
Q45
Portugal
ᏉᏧᎦᎵ
chr
LOC
Q45
Portugal
پورتوگال
ckb
LOC
Q45
Portugal
Portugallu
co
LOC
Q45
Portugal
Portugalsko
cs
LOC
Q45
Portugal
Pòrtugalskô
csb
LOC
Q45
Portugal
Портогалїꙗ
cu
LOC
Q45
Portugal
Португали
cv
LOC
Q45
Portugal
Portiwgal
cy
LOC
Q45
Portugal
Portugal
da
LOC
Q45
Portugal
Portekiz
diq
LOC
Q45
Portugal
Portugalska
dsb
LOC
Q45
Portugal
ޕޯޗުގަލް
dv
LOC
Q45
Portugal
པོར་ཅུ་གལ་
dz
LOC
Q45
Portugal
Portugal
ee
LOC
Q45
Portugal
Πορτογαλία
el
LOC
Q45
Portugal
Portugalio
eo
LOC
Q45
Portugal
Portugal
et
LOC
Q45
Portugal
Portugal
eu
LOC
Q45
Portugal
Portugal
ext
LOC
Q45
Portugal
پرتغال
fa
LOC
Q45
Portugal
Portugal
fo
LOC
Q45
Portugal
Portugal
frp
LOC
Q45
Portugal
Portugal
frr
LOC
Q45
Portugal
Portugal
fur
LOC
Q45
Portugal
Portegal
fy
LOC
Q45
Portugal
An Phortaingéil
ga
LOC
Q45
Portugal
Portugaliya
gag
LOC
Q45
Portugal
A' Phortagail
gd
LOC
Q45
Portugal
Portugal
gl
LOC
Q45
Portugal
Poytuga
gn
LOC
Q45
Portugal
𐍀𐌰𐌿𐍂𐍄𐌿𐌲𐌰𐌻𐌾𐌰
got
LOC
Q45
Portugal
પોર્ટુગલ
gu
LOC
Q45
Portugal
Yn Phortiugal
gv
LOC
Q45
Portugal
Phù-thò-ngà
hak
LOC
Q45
Portugal
Potugala
haw
LOC
Q45
Portugal
פורטוגל
he
LOC
Q45
Portugal
पुर्तगाल
hi
LOC
Q45
Portugal
Portugalska
hsb
LOC
Q45
Portugal
Pòtigal
ht
LOC
Q45
Portugal
Portugália
hu
LOC
Q45
Portugal
Պորտուգալիա
hy
LOC
Q45
Portugal
Portugal
ia
LOC
Q45
Portugal
Portugal
id
LOC
Q45
Portugal
Portugal
ie
LOC
Q45
Portugal
Portugal
ilo
LOC
Q45
Portugal
Portugal
io
LOC
Q45
Portugal
Portúgal
is
LOC
Q45
Portugal
potygu'e
jbo
LOC
Q45
Portugal
Portegal
jv
LOC
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

ParaNames: A multilingual resource for parallel names

This repository contains releases for the ParaNames corpus, consisting of parallel names of over 12 million named entities in over 400 languages.

ParaNames was introduced in Sälevä, J. and Lignos, C., 2022. ParaNames: A Massively Multilingual Entity Name Corpus. arXiv preprint arXiv:2202.14035.

Please cite as:

@article{saleva2022paranames,
  title={ParaNames: A Massively Multilingual Entity Name Corpus},
  author={S{\"a}lev{\"a}, Jonne and Lignos, Constantine},
  journal={arXiv preprint arXiv:2202.14035},
  year={2022}
}

See the Releases page for the downloadable release.

Using the data release

Release format

The corpus is released as a gzipped TSV file which is produced by the pipeline included in this repository.

Release notes

Repeated entities

In current releases, any entity that is associated with multiple named entity types (PER, LOC, ORG) in the Wikidata type hierarchy will appear multiple times in the output, once with each type. This affects less than 3% of the entities in the data.

If you want a unique set of entities, you should deduplicate the data using the wikidata_id field.

If you only want to use entities that are associated with a single named entity type, you should remove any wikidata_id that appears in multiple rows.

Using the code

First, install the following non-Python dependencies:

  • MongoDB
  • xsv
  • ICU support for your computer (e.g. libicu-dev)

Next, install ParaNames and its Python dependencies by running pip install -e ..

It is recommended that you use a Conda environment for package management.

Creating the ParaNames corpus

To create a corpus following our approach, follow the steps below:

  1. Download the latest Wikidata dump from the Wikimedia page and extract it. Note that this may take up several TB of disk space.
  2. Use recipes/paranames_pipeline.sh which ingests the Wikidata JSON to MongoDB and then dumps and postprocesses it to our final TSV resource.

The call to recipes/paranames_pipeline.sh works as follows:

recipes/paranames_pipeline.sh <path_to_extracted_json_dump> <output_folder> <n_workers>

Set the number of workers based on the number of CPUs your machine has. By default, only 1 CPU is used.

The output folder will contain one subfolder per language, inside of which paranames_<language_code>.tsv can be found. The entire resource is located in <output_folder>/combined/paranames.tsv.

Notes

ParaNames offers several options for customization:

  • If your MongoDB instance uses a non-standard port, you should change the value of mongodb_port accordingly inside paranames_pipeline.sh.

  • Setting should_collapse_languages=yes will cause Wikimedia language codes to be "collapsed" to the top-level Wikimedia language code, i.e. kk-cyrl will be converted to kk, en-ca to en etc.

  • Setting should_keep_intermediate_files=yes will cause intermediate files to be deleted. This includes the raw per-type TSV dumps ({PER,LOC,ORG}.tsv) from MongoDB, as well as outputs of postprocess.py.

  • Within recipes/dump.sh, it is also possible to define languages to be excluded and whether entity types should be disambiguated. By default, no languages are excluded and no disambiguation is done.

  • After the pipeline completes, <output_folder> will contain one folder per language, inside of which is a TSV file containing the subset of names in that language. Combined TSVs with names in all languages are available in the combined folder.

Downloads last month
17
Edit dataset card