Datasets:
Download annotation/GUIDELINES.md from Phazel/fa-perdt-ner: direct link, hf CLI and curl.
- Browser
- Download file 12.6 kB
-
https://huggingface.co/datasets/Phazel/fa-perdt-ner/resolve/main/annotation/GUIDELINES.md
- Command line
-
hf download hf://datasets/Phazel/fa-perdt-ner/annotation/GUIDELINES.md
-
curl -L -o GUIDELINES.md https://huggingface.co/datasets/Phazel/fa-perdt-ner/resolve/main/annotation/GUIDELINES.md
Persian NER annotation guidelines, v2.2
Labels: PER, LOC, ORG, DAT. Everything else is O. Spans are contiguous token
sequences on the PerDT --merge-subtokens tokenization; an entity text must be reproducible
by joining consecutive tokens with single spaces.
These conventions were inferred from PerDT's silver NER layer (Beheshti-NER output with manual
corrections, corpus/perdt-ner-iob/train.txt, 26,196 sentences) so that new annotations agree
with the bulk of the existing data. Where the silver layer is inconsistent, the majority rule
is stated and the minority is called out as an error to correct. Counts are train-split.
General
- Annotate every mention, including repeats within a sentence.
- Do not nest or overlap. The longest span that is itself a name wins:
دانشگاه تهرانis oneORG, notORGaround aLOC;شرکت مخابرات ایرانis oneORG. - Coordinated names are separate spans:
ایران و عراقisLOC+LOC. - Nationality and language adjectives and demonyms are
O:ایرانی(181/181O),آمریکایی,ایرانیان,مسلمانان,فارسی,انگلیسی. - Religions, ideologies, scriptures and literary works are
O:اسلام,قرآن,شاهنامه. - Generic role nouns are
Oand sit outside the span:رئیس جمهور ایرانlabels onlyایران(LOC);وزیرandرئیسprecedeORGspans but are never inside them.
PER
- Personal names, including religious and historical figures:
علی,احمدینژاد,داریوش,اوباما,پیامبر,رسول خدا,امام حسین. - Secular honorifics and titles are
O, outside the span:آقای(140/141O),دکتر(104/107O),آیتالله,استاد,ارتشبد.آقای احمدینژاد→[احمدینژاد]. - Religious titles fused with the name are inside the span:
امام(217B-PER),حضرت(129B-PER),سید:[امام صادق],[حضرت علی],[سید محمدحسن ابوترابیفرد]. - Blessing formulas: the spelled-out
علیهالسلامdirectly after a name is inside the span (88/98):[امام صادق علیهالسلام]. The abbreviated parenthetical( ع )/( ص )is entirelyO:[امام حسین] ( ع ). (The silver layer tags the opening(asI-PER295 times; that is a tokenization artefact, correct it.) خداandاللهalone areO(520/566);رسول خداas a name of the Prophet isPER.- Patronymic chains are one span:
[احمد بن محمد بن عیسی].
LOC
- Countries, cities, provinces, regions, continents, bodies of water, planets:
ایران,تهران,خاورمیانه,اروپا,خلیج فارس,مریخ. - Geographic head nouns are INSIDE the span when directly followed by the name:
[شهر تهران](88 vs 4),[استان گلستان](69 vs 0),[منطقهٔ ...](32 vs 4),[کشور روسیه](27 vs 5). Alone, without a name, they areO(کشورalone 440O). جهان("the world") isLOCwhen it denotes the world as a place (در جهان,بزرگترین تالاب جهان), 202 vs 87.زمینisLOConly as the planet (کرهٔ زمین), otherwiseO(250O).- Metonymic country/capital names acting as governments stay
LOC:تهران اعلام کرد. مردم ایران,ملت ایران: onlyایرانis labelled.- Compass terms are
Ounless they are part of a named region:غربaloneO(84 vs 15), andغربmeaning "the West" as a civilisation or political bloc isOtoo (مدلبرداری از غرب,پوششهای مبتذل غرب).[غرب تهران],[خاورمیانه]areLOC.
ORG
- Companies, institutions, ministries, parties, armed groups, sports clubs, media outlets,
banks, universities, international bodies:
گوگل,طالبان,استقلال,سازمان ملل,بانک مرکزی,مجلس شورای اسلامی,صدا و سیما,اینترپل,ساواک. - Organisational head nouns are INSIDE the span when followed by a specifier:
[دولت ایران],[وزارت امور خارجه],[شرکت مخابرات ایران],[تیم استقلال],[سفارت ایران],[ارتش دریایی ایران],[دانشگاه تهران],[تیم ملی بوکس]. A head noun with no specifier isO, even when it clearly denotes one institution in context:دولتalone 221O,تیم129O,مجلس132O, and likewise bareشهرداری,فدراسیون,وزارت,سفارت,دانشگاه,تیم ملی. "The municipality collects its dues" labels nothing;[شهرداری تهران]isORG. - A country name inside such a phrase belongs to the
ORGspan, not a separateLOC(103ORGspans end inایران). - Political entities named as states are
ORG:جمهوری اسلامی,جمهوری اسلامی ایران,رژیم صهیونیستی,رژیم ایران. - News agencies cited as sources are
ORG:به گزارش خبرنگار [مهر].
DAT
- Absolute dates and years, including the head noun
سال/ماه/روزwhen present:[سال 1974],[ماه رمضان],[روز جمعه],[سیام اکتبر سال 1910],[سال هزار و هشتصد و یازده],[ماه ژوئن سال 2011]. - Relative date expressions are
DAT:امروز(149),فردا,دیروز,امسال,[سال گذشته],[سال جاری],[هفتهٔ آینده],[این هفته](10 vs 0),[روز گذشته]. The vague deicticsاین روزها(0/24),این ماه(0/6) andاین سال(0/3) areO: the silver layer treats them as "nowadays", not as a dated period. - Durations anchored to now are
DAT:[10 سال پیش],[سه دهه پیش],[یک ماه قبل]. Unanchored durations areO:به مدت سه سال. - A date range with
از ... تا/الی ...is ONE span includingازandتا:[از بهمن 1343 تا خرداد 1357],[از سال 1375 تا سال 1386],[از 420 تا 438 میلادی].[از آغاز امسال] تاکنون:تاکنونis outside. - Calendar suffixes are inside:
[سال 1251 شمسی],[438 میلادی]; the abbreviatedه . شafter a year is outside. - Eras and dynasties as periods are
O(هخامنشی,ساسانی), and so are historic empires named after them (امپراطوری پارس); named festivalsنوروز,عاشوراareOon their own (نوروز30Ovs 3DAT,عاشورا41/0), including attributive use (تشریفات نوروز). A festival phrase headed byسال/ماه/روز, or carrying a year, isDATunder rule 24:[ماه رمضان],[سال نو چینی],[نوروز امسال]. - Times of day, clock times, money and percentages are
Oin this label set.
Cases v1 left open, decided in v2
- Events are
O. The label set has no EVENT class, and an event is not the organisation that runs it:نمایشگاه CES,جام جهانی,المپیک,لیگ قهرمانان آسیاare allO. The organising or competing body is stillORGwhen named:[فدراسیون فوتبال]. - Habitual and frequency expressions are
O:هر روز,هر شب,هر هفته,روزانه,همهروزه. Only absolute dates (rule 24), relative dates (rule 25) and now-anchored durations (rule 26) areDAT.هر روزis a habit;امروزis a date. - A religious title is part of a
PERspan only when a personal name follows it (rule 9):[امام صادق],[حضرت علی],[امام خمینی]. Standing alone it isO, whatever it refers to in context:امامwith no name following isO128 times against 12PER,حضرت81 against 3. Soحضرت فرمودند,آن حضرت,به محضر حضرتandامام ( ع ) فرمودlabel nothing. Collective references areOas well:ائمهٔ اطهار,اهلبیت,معصومین.پیامبرandرسول خداstayPER(rule 7): they are used as the name of one person, not as a title before a name. - Peoples, tribes and ethnic groups are
O, consistent with rule 4:قوم مایا,ترکمن,اعراب,کردها. A place named after such a group is stillLOC. - A personal name used as an epithet is still
PER:[امیرکبیر] فوتبال ایران. The name is the entity; the metaphor does not change that. (The silver layer usually leaves these unlabelled; this is a deliberate deviation.) دنیاisO, and does NOT follow rule 15 the wayجهانdoes. The two words diverge sharply in the silver layer:جهانisLOC202 times against 87O, whileدنیاisO240 times against 20LOC. Soدر سراسر دنیاandقفس دنیاlabel nothing, whileدر جهانisLOC.- Century expressions are
DAT, including the head noun and any calendar suffix:[قرن سوم هجری],[قرن بیستم],[اوایل قرن نوزدهم]. - Brands, products, software and vehicle models are
O:بنز,فتوشاپ,ویندوز,فایرفاکس. The company behind them isORGwhen the sentence names the company ([شرکت مایکروسافت]), not when it names the product. - Deities, angels and mythological beings are
O, extending rule 11:خدا,الله,یزدان,شیطان,ابلیس,جبرئیل. Prophets and imams named as people stayPER. - Religious denominations, theological and philosophical schools, and political
movements are
O, extending rule 5:شیعه(41O),سنی(28),معتزله(5),اشاعره,صوفیه,مارکسیسم(4). A named organisation belonging to one is stillORG([حزب توده]).
Changelog
v2, derived from adjudicating 500 annotated sentences against the silver layer
(annotation/data/llm/ner-v1-default/pool-500.agreement.json):
- Rules 31–37 added. 31–34 close gaps that produced most of the real annotation errors
under v1 (events tagged
ORG, habituals taggedDAT, collective religious references taggedPER, ethnonyms taggedLOC). 35–37 decide cases where v1 was silent. - Rules 18, 20 and 29 were already correct but were violated repeatedly, so each now names
the exact forms that were mislabelled:
غربas "the West", bareشهرداری/فدراسیون/مجلس/تیم ملی, and bareنوروز. - Rules 1–17, 19, 21–28, 30 are unchanged from v1. Numbering is stable across versions.
- A first v2 draft over-corrected: it dropped
[کلینیک نور](ORGwith a name, rule 20). Rules 25 and 29 were re-checked against train-split counts (این روزها0/24O,نوروز30Ovs 3DAT) and now state both directions explicitly.
v2.1, after annotating the full 1455-sentence test split and adjudicating every disagreement:
- Rule 33 is reverted and rewritten. v2 claimed a bare
امام/حضرتdenoting a specific person isPER, generalising from 11 instances ofامام (. The base rate contradicts it: with no personal name following,امامisO128 times against 12PERandحضرت81 against 3. That single rule caused 7 of the 19 real annotation errors left on the full split. - Rules 38 (brands and products) and 39 (deities and mythological beings) added; they
cover 5 more of those 19 errors (
بنز,فتوشاپ,جاماسپ,شیطان,یزدان).
v2.2, after relabelling the first 2,000 train sentences (largely literary and memoir prose, a genre the test split barely contains):
- Rule 36 is reversed. v2.1 claimed
دنیاbehaves likeجهان; the silver layer says the opposite,دنیاO240 against 20LOCwhileجهانisLOC202 against 87O. - Rule 40 added: denominations, theological schools and political movements are
O(شیعه41O,سنی28,معتزله5,مارکسیسم4).معتزلهtaggedORGwas an error with no rule to prevent it.