shakeebshams's picture
Arabic NER Offset Validator 0.1.0
a5c967f
Raw History Blame Contribute Delete
8.45 kB
// Generated by scripts/build_web_examples.py from fixtures/dev/fixtures.jsonl (CC BY 4.0). Do not edit.
export const EXAMPLES = [
{
"id": "dev-a-01",
"title_en": "Emoji before the entity: UTF-16 offsets declared as code points",
"title_ar": "\u0631\u0645\u0632 \u062a\u0639\u0628\u064a\u0631\u064a \u0642\u0628\u0644 \u0627\u0644\u0643\u064a\u0627\u0646: \u0645\u0648\u0627\u0636\u0639 UTF-16 \u0645\u0639\u0644\u0646\u0629 \u0643\u0646\u0642\u0627\u0637 \u062a\u0631\u0645\u064a\u0632",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0648\u0635\u0644\u062a \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \ud83d\ude00 \u0645\u0646 \u0645\u062f\u064a\u0646\u0629 \u0627\u0644\u0631\u064a\u0627\u0636 \u0635\u0628\u0627\u062d \u0627\u0644\u064a\u0648\u0645\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 25, \"end\": 31, \"label\": \"LOC\", \"text\": \"\u0627\u0644\u0631\u064a\u0627\u0636\"}]}\n"
},
{
"id": "dev-c-01",
"title_en": "Alef + combining hamza: offsets from the NFC text",
"title_ar": "\u0623\u0644\u0641 \u0645\u0639 \u0647\u0645\u0632\u0629 \u0645\u0631\u0643\u0651\u0628\u0629: \u0645\u0648\u0627\u0636\u0639 \u0645\u0646 \u0627\u0644\u0646\u0635 \u0628\u0639\u062f NFC",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0633\u0627\u0654\u0644 \u0627\u0644\u0628\u0627\u062d\u062b \u0639\u0646 \u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0642\u0627\u0647\u0631\u0629\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 20, \"end\": 27, \"label\": \"LOC\", \"text\": \"\u0627\u0644\u0642\u0627\u0647\u0631\u0629\"}]}\n"
},
{
"id": "dev-d-01",
"title_en": "Lam-alef ligature: offsets from the NFKC text",
"title_ar": "\u062d\u0631\u0641 \u0644\u0627\u0645 \u0623\u0644\u0641 \u0627\u0644\u0645\u062f\u0645\u062c: \u0645\u0648\u0627\u0636\u0639 \u0645\u0646 \u0627\u0644\u0646\u0635 \u0628\u0639\u062f NFKC",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\ufefb \u064a\u0632\u0627\u0644 \u0627\u0644\u0645\u062a\u062d\u0641 \u0627\u0644\u0648\u0637\u0646\u064a \u0641\u064a \u0627\u0644\u0634\u0627\u0631\u0642\u0629 \u0645\u0641\u062a\u0648\u062d\u064b\u0627\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 25, \"end\": 32, \"label\": \"LOC\", \"text\": \"\u0627\u0644\u0634\u0627\u0631\u0642\u0629\"}]}\n"
},
{
"id": "dev-e-01",
"title_en": "Span ends before the last haraka",
"title_ar": "\u0627\u0645\u062a\u062f\u0627\u062f \u064a\u0646\u062a\u0647\u064a \u0642\u0628\u0644 \u0627\u0644\u062d\u0631\u0643\u0629 \u0627\u0644\u0623\u062e\u064a\u0631\u0629",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0633\u0627\u0641\u0631\u064e \u0627\u0644\u0648\u0641\u062f\u064f \u0625\u0644\u0649 \u062f\u0650\u0645\u064e\u0634\u0652\u0642\u064e \u0623\u0645\u0633\u0650\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 17, \"end\": 24, \"label\": \"LOC\", \"text\": \"\u062f\u0650\u0645\u064e\u0634\u0652\u0642\"}]}\n"
},
{
"id": "dev-f-01",
"title_en": "Offsets counted after tatweel removal",
"title_ar": "\u0645\u0648\u0627\u0636\u0639 \u0645\u062d\u0633\u0648\u0628\u0629 \u0628\u0639\u062f \u062d\u0630\u0641 \u0627\u0644\u062a\u0637\u0648\u064a\u0644",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0631\u062d\u0644\u0629 \u0645\u0646 \u062c\u0640\u0640\u0640\u062f\u0629 \u0625\u0644\u0649 \u0645\u0643\u0629 \u0627\u0644\u0645\u0643\u0631\u0645\u0629\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 8, \"end\": 11, \"label\": \"LOC\", \"text\": \"\u062c\u062f\u0629\"}, {\"start\": 16, \"end\": 27, \"label\": \"LOC\", \"text\": \"\u0645\u0643\u0629 \u0627\u0644\u0645\u0643\u0631\u0645\u0629\"}]}\n"
},
{
"id": "dev-h-02",
"title_en": "Clitic policy exclude: span starts with \u0648",
"title_ar": "\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u0633\u0648\u0627\u0628\u0642 exclude: \u0627\u0645\u062a\u062f\u0627\u062f \u064a\u0628\u062f\u0623 \u0628\u0627\u0644\u0648\u0627\u0648",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0632\u0631\u0646\u0627 \u062c\u062f\u0629 \u0648\u0627\u0644\u0631\u064a\u0627\u0636\", \"offset_unit\": \"codepoint\", \"clitic_policy\": \"exclude\", \"spans\": [{\"start\": 5, \"end\": 8, \"label\": \"LOC\", \"text\": \"\u062c\u062f\u0629\"}, {\"start\": 9, \"end\": 16, \"label\": \"LOC\", \"text\": \"\u0648\u0627\u0644\u0631\u064a\u0627\u0636\"}]}\n"
},
{
"id": "dev-n-01",
"title_en": "CRLF text, offsets counted with LF",
"title_ar": "\u0646\u0635 \u0628\u0641\u0648\u0627\u0635\u0644 CRLF \u0648\u0645\u0648\u0627\u0636\u0639 \u0645\u062d\u0633\u0648\u0628\u0629 \u0628\u0641\u0627\u0635\u0644 LF",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0627\u0644\u0633\u0637\u0631 \u0627\u0644\u0623\u0648\u0644 \u0639\u0646 \u0627\u0644\u0645\u0624\u062a\u0645\u0631\\r\\n\u0627\u0646\u0639\u0642\u062f \u0627\u0644\u0645\u0624\u062a\u0645\u0631 \u0641\u064a \u0627\u0644\u062f\u0648\u062d\u0629 \u0623\u0645\u0633\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 40, \"end\": 46, \"label\": \"LOC\", \"text\": \"\u0627\u0644\u062f\u0648\u062d\u0629\"}]}\n"
},
{
"id": "dev-m-02",
"title_en": "CoNLL IOB2: I-LOC after B-PER",
"title_ar": "CoNLL \u0628\u0645\u062e\u0637\u0637 IOB2: \u0627\u0644\u0648\u0633\u0645 I-LOC \u0628\u0639\u062f B-PER",
"format": "conll",
"options": {
"scheme": "IOB2"
},
"payload": "\u0632\u0627\u0631\tO\n\u0646\u062c\u064a\u0628\tB-PER\n\u0645\u062d\u0641\u0648\u0638\tI-LOC\n\u0627\u0644\u0625\u0633\u0643\u0646\u062f\u0631\u064a\u0629\tB-LOC\n\n"
},
{
"id": "dev-q-01",
"title_en": "Arabic comma inside the span",
"title_ar": "\u0641\u0627\u0635\u0644\u0629 \u0639\u0631\u0628\u064a\u0629 \u062f\u0627\u062e\u0644 \u0627\u0644\u0627\u0645\u062a\u062f\u0627\u062f",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u0632\u0631\u0646\u0627 \u0627\u0644\u0631\u064a\u0627\u0636\u060c \u062b\u0645 \u062c\u062f\u0629\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 5, \"end\": 12, \"label\": \"LOC\", \"text\": \"\u0627\u0644\u0631\u064a\u0627\u0636\u060c\"}, {\"start\": 16, \"end\": 19, \"label\": \"LOC\", \"text\": \"\u062c\u062f\u0629\"}]}\n"
},
{
"id": "dev-r-02",
"title_en": "Left-to-right marks around a Latin name",
"title_ar": "\u0639\u0644\u0627\u0645\u0627\u062a \u0627\u062a\u062c\u0627\u0647 \u062d\u0648\u0644 \u0627\u0633\u0645 \u0644\u0627\u062a\u064a\u0646\u064a",
"format": "canonical",
"options": {},
"payload": "{\"id\": \"r1\", \"text\": \"\u062a\u0639\u0627\u0648\u0646\u062a \u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0645\u0644\u0643 \u0639\u0628\u062f\u0627\u0644\u0644\u0647 \u0645\u0639 \u200eMIT\u200e \u0641\u064a \u0645\u0634\u0631\u0648\u0639 \u0628\u062d\u062b\u064a\", \"offset_unit\": \"codepoint\", \"spans\": [{\"start\": 30, \"end\": 35, \"label\": \"ORG\", \"text\": \"\u200eMIT\u200e\"}]}\n"
},
{
"id": "dev-v-03",
"title_en": "A valid Label Studio export",
"title_ar": "\u062a\u0635\u062f\u064a\u0631 \u0633\u0644\u064a\u0645 \u0645\u0646 Label Studio",
"format": "label_studio",
"options": {
"offset_unit": "codepoint"
},
"payload": "[{\"id\": 40, \"data\": {\"text\": \"\u0627\u0641\u062a\u062a\u062d\u062a \u0645\u0643\u062a\u0628\u0629 \u0627\u0644\u0645\u0644\u0643 \u0639\u0628\u062f\u0627\u0644\u0639\u0632\u064a\u0632 \u0627\u0644\u0639\u0627\u0645\u0629 \u0641\u0631\u0639\u064b\u0627 \u0641\u064a \u0628\u0643\u064a\u0646\"}, \"annotations\": [{\"id\": 1, \"result\": [{\"id\": \"reg1\", \"from_name\": \"label\", \"to_name\": \"text\", \"type\": \"labels\", \"value\": {\"start\": 7, \"end\": 35, \"labels\": [\"ORG\"], \"text\": \"\u0645\u0643\u062a\u0628\u0629 \u0627\u0644\u0645\u0644\u0643 \u0639\u0628\u062f\u0627\u0644\u0639\u0632\u064a\u0632 \u0627\u0644\u0639\u0627\u0645\u0629\"}}, {\"id\": \"reg2\", \"from_name\": \"label\", \"to_name\": \"text\", \"type\": \"labels\", \"value\": {\"start\": 45, \"end\": 49, \"labels\": [\"LOC\"], \"text\": \"\u0628\u0643\u064a\u0646\"}}]}, {\"id\": 2, \"result\": [{\"id\": \"reg1\", \"from_name\": \"label\", \"to_name\": \"text\", \"type\": \"labels\", \"value\": {\"start\": 45, \"end\": 49, \"labels\": [\"LOC\"], \"text\": \"\u0628\u0643\u064a\u0646\"}}]}]}]"
}
];