{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Stanza pipeline\n",
    "\n",
    "If `gatenlp` has been installed with the stanza extra (`pip install gatenlp[stanza]` or `pip install gatenlp[all]`) you can run a Stanford Stanza pipeline on a document and get the result as `gatenlp` annotations. \n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from gatenlp import Document\n",
    "from gatenlp.lib_stanza import AnnStanza\n",
    "import stanza\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Downloading https://raw.githubusercontent.com/stanfordnlp/stanza-resources/master/resources_1.1.0.json: 122kB [00:00, 6.98MB/s]                    \n",
      "INFO:stanza:Downloading default packages for language: en (English)...\n",
      "INFO:stanza:File exists: /home/johann/stanza_resources/en/default.zip.\n",
      "INFO:stanza:Finished downloading models and saved to /home/johann/stanza_resources.\n"
     ]
    }
   ],
   "source": [
    "# In order to use the English pipeline with stanza, the model has to get downloaded first\n",
    "stanza.download('en')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><style>#LEHDAEOERM-wrapper { color: black !important; }</style>\n",
       "<div id=\"LEHDAEOERM-wrapper\">\n",
       "\n",
       "<div>\n",
       "<style>\n",
       "#LEHDAEOERM-content {\n",
       "    width: 100%;\n",
       "    height: 100%;\n",
       "    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-row {\n",
       "    width: 100%;\n",
       "    display: flex;\n",
       "    flex-direction: row;\n",
       "    flex-wrap: nowrap;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-col {\n",
       "    border: 1px solid grey;\n",
       "    display: inline-block;\n",
       "    min-width: 200px;\n",
       "    padding: 5px;\n",
       "    /* white-space: normal; */\n",
       "    /* white-space: pre-wrap; */\n",
       "    overflow-y: auto;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-hdr {\n",
       "    font-size: 1.2rem;\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-label {\n",
       "    margin-bottom: -15px;\n",
       "    display: block;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-input {\n",
       "    vertical-align: middle;\n",
       "    position: relative;\n",
       "    *overflow: hidden;\n",
       "}\n",
       "\n",
       "#LEHDAEOERM-popup {\n",
       "    display: none;\n",
       "    color: black;\n",
       "    position: absolute;\n",
       "    margin-top: 10%;\n",
       "    margin-left: 10%;\n",
       "    background: #aaaaaa;\n",
       "    width: 60%;\n",
       "    height: 60%;\n",
       "    z-index: 50;\n",
       "    padding: 25px 25px 25px;\n",
       "    border: 1px solid black;\n",
       "    overflow: auto;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-selection {\n",
       "    margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-featuretable {\n",
       "    margin-top: 10px;\n",
       "}\n",
       "\n",
       ".LEHDAEOERM-fname {\n",
       "    text-align: left !important;\n",
       "    font-weight: bold;\n",
       "    margin-right: 10px;\n",
       "}\n",
       ".LEHDAEOERM-fvalue {\n",
       "    text-align: left !important;\n",
       "}\n",
       "</style>\n",
       "  <div id=\"LEHDAEOERM-content\">\n",
       "        <div id=\"LEHDAEOERM-popup\" style=\"display: none;\">\n",
       "        </div>\n",
       "        <div class=\"LEHDAEOERM-row\" id=\"LEHDAEOERM-row1\" style=\"height:67vh; min-height:100px;\">\n",
       "            <div id=\"LEHDAEOERM-text-wrapper\" class=\"LEHDAEOERM-col\" style=\"width:70%;\">\n",
       "                <div class=\"LEHDAEOERM-hdr\" id=\"LEHDAEOERM-dochdr\"></div>\n",
       "                <div id=\"LEHDAEOERM-text\">\n",
       "                </div>\n",
       "            </div>\n",
       "            <div id=\"LEHDAEOERM-chooser\" class=\"LEHDAEOERM-col\" style=\"width:30%; border-left-width: 0px;\"></div>\n",
       "        </div>\n",
       "        <div class=\"LEHDAEOERM-row\" id=\"LEHDAEOERM-row2\" style=\"height:30vh; min-height: 100px;\">\n",
       "            <div id=\"LEHDAEOERM-details\" class=\"LEHDAEOERM-col\" style=\"width:100%; border-top-width: 0px;\">\n",
       "            </div>\n",
       "        </div>\n",
       "    </div>\n",
       "    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script><script src=\"https://unpkg.com/gatenlp-ann-viewer@1.0.9/gatenlp-ann-viewer.js\"></script>\n",
       "    <script type=\"application/json\" id=\"LEHDAEOERM-data\">\n",
       "    {\"annotation_sets\": {}, \"text\": \"This is just a sample document for experimenting with gatenlp. \\nIt mentions a few named entities like the persons Barack Obama, \\nAlbert Einstein and Wolfgang Amadeus Mozart and the geographical \\nlocations and countries America, United States of America, \\nHungary, the Atlantic Ocean, and Helskinki. \\n\\nIt also contains mentions of various numbers and amounts like \\n12 degrees, 12.83$, 25 km/h or fortytwo kilos and mentions\\norganizations and companies like the UNO, Microsoft, Apple, which\\nhas an apple as it's logo, or Google. \\n\\n\\n\", \"features\": {}, \"offset_type\": \"j\", \"name\": \"\"}\n",
       "    </script>\n",
       "    <script type=\"text/javascript\">\n",
       "        gatenlp_run(\"LEHDAEOERM-\");\n",
       "    </script>\n",
       "  </div>\n",
       "\n",
       "</div></div>"
      ],
      "text/plain": [
       "Document(This is just a sample document for experimenting with gatenlp. \n",
       "It mentions a few named entities like the persons Barack Obama, \n",
       "Albert Einstein and Wolfgang Amadeus Mozart and the geographical \n",
       "locations and countries America, United States of America, \n",
       "Hungary, the Atlantic Ocean, and Helskinki. \n",
       "\n",
       "It also contains mentions of various numbers and amounts like \n",
       "12 degrees, 12.83$, 25 km/h or fortytwo kilos and mentions\n",
       "organizations and companies like the UNO, Microsoft, Apple, which\n",
       "has an apple as it's logo, or Google. \n",
       "\n",
       "\n",
       ",features=Features({}),anns={})"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "doc = Document.load(\"https://gatenlp.github.io/python-gatenlp/testdocument2.txt\")\n",
    "doc"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Annotating the document using Stanza\n",
    "\n",
    "In order to annotate one or more documents using Stanza, first create a AnnStanza annotator object\n",
    "and the run the document(s) through this annotator:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "INFO:stanza:Loading these models for language: en (English):\n",
      "=========================\n",
      "| Processor | Package   |\n",
      "-------------------------\n",
      "| tokenize  | ewt       |\n",
      "| pos       | ewt       |\n",
      "| lemma     | ewt       |\n",
      "| depparse  | ewt       |\n",
      "| sentiment | sstplus   |\n",
      "| ner       | ontonotes |\n",
      "=========================\n",
      "\n",
      "INFO:stanza:Use device: cpu\n",
      "INFO:stanza:Loading: tokenize\n",
      "INFO:stanza:Loading: pos\n",
      "INFO:stanza:Loading: lemma\n",
      "INFO:stanza:Loading: depparse\n",
      "INFO:stanza:Loading: sentiment\n",
      "INFO:stanza:Loading: ner\n",
      "INFO:stanza:Done loading processors!\n"
     ]
    }
   ],
   "source": [
    "stanza_annotator = AnnStanza(lang=\"en\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div><style>#QIUNTDRRJE-wrapper { color: black !important; }</style>\n",
       "<div id=\"QIUNTDRRJE-wrapper\">\n",
       "\n",
       "<div>\n",
       "<style>\n",
       "#QIUNTDRRJE-content {\n",
       "    width: 100%;\n",
       "    height: 100%;\n",
       "    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-row {\n",
       "    width: 100%;\n",
       "    display: flex;\n",
       "    flex-direction: row;\n",
       "    flex-wrap: nowrap;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-col {\n",
       "    border: 1px solid grey;\n",
       "    display: inline-block;\n",
       "    min-width: 200px;\n",
       "    padding: 5px;\n",
       "    /* white-space: normal; */\n",
       "    /* white-space: pre-wrap; */\n",
       "    overflow-y: auto;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-hdr {\n",
       "    font-size: 1.2rem;\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-label {\n",
       "    margin-bottom: -15px;\n",
       "    display: block;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-input {\n",
       "    vertical-align: middle;\n",
       "    position: relative;\n",
       "    *overflow: hidden;\n",
       "}\n",
       "\n",
       "#QIUNTDRRJE-popup {\n",
       "    display: none;\n",
       "    color: black;\n",
       "    position: absolute;\n",
       "    margin-top: 10%;\n",
       "    margin-left: 10%;\n",
       "    background: #aaaaaa;\n",
       "    width: 60%;\n",
       "    height: 60%;\n",
       "    z-index: 50;\n",
       "    padding: 25px 25px 25px;\n",
       "    border: 1px solid black;\n",
       "    overflow: auto;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-selection {\n",
       "    margin-bottom: 5px;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-featuretable {\n",
       "    margin-top: 10px;\n",
       "}\n",
       "\n",
       ".QIUNTDRRJE-fname {\n",
       "    text-align: left !important;\n",
       "    font-weight: bold;\n",
       "    margin-right: 10px;\n",
       "}\n",
       ".QIUNTDRRJE-fvalue {\n",
       "    text-align: left !important;\n",
       "}\n",
       "</style>\n",
       "  <div id=\"QIUNTDRRJE-content\">\n",
       "        <div id=\"QIUNTDRRJE-popup\" style=\"display: none;\">\n",
       "        </div>\n",
       "        <div class=\"QIUNTDRRJE-row\" id=\"QIUNTDRRJE-row1\" style=\"height:67vh; min-height:100px;\">\n",
       "            <div id=\"QIUNTDRRJE-text-wrapper\" class=\"QIUNTDRRJE-col\" style=\"width:70%;\">\n",
       "                <div class=\"QIUNTDRRJE-hdr\" id=\"QIUNTDRRJE-dochdr\"></div>\n",
       "                <div id=\"QIUNTDRRJE-text\">\n",
       "                </div>\n",
       "            </div>\n",
       "            <div id=\"QIUNTDRRJE-chooser\" class=\"QIUNTDRRJE-col\" style=\"width:30%; border-left-width: 0px;\"></div>\n",
       "        </div>\n",
       "        <div class=\"QIUNTDRRJE-row\" id=\"QIUNTDRRJE-row2\" style=\"height:30vh; min-height: 100px;\">\n",
       "            <div id=\"QIUNTDRRJE-details\" class=\"QIUNTDRRJE-col\" style=\"width:100%; border-top-width: 0px;\">\n",
       "            </div>\n",
       "        </div>\n",
       "    </div>\n",
       "    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"></script><script src=\"https://unpkg.com/gatenlp-ann-viewer@1.0.9/gatenlp-ann-viewer.js\"></script>\n",
       "    <script type=\"application/json\" id=\"QIUNTDRRJE-data\">\n",
       "    {\"annotation_sets\": {\"\": {\"name\": \"detached-from:\", \"annotations\": [{\"type\": \"Token\", \"start\": 0, \"end\": 4, \"id\": 0, \"features\": {\"id\": 1, \"text\": \"This\", \"lemma\": \"this\", \"upos\": \"PRON\", \"xpos\": \"DT\", \"head\": 5, \"deprel\": \"nsubj\", \"ner\": \"O\", \"Number\": \"Sing\", \"PronType\": \"Dem\"}}, {\"type\": \"Token\", \"start\": 5, \"end\": 7, \"id\": 1, \"features\": {\"id\": 2, \"text\": \"is\", \"lemma\": \"be\", \"upos\": \"AUX\", \"xpos\": \"VBZ\", \"head\": 5, \"deprel\": \"cop\", \"ner\": \"O\", \"Mood\": \"Ind\", \"Number\": \"Sing\", \"Person\": \"3\", \"Tense\": \"Pres\", \"VerbForm\": \"Fin\"}}, {\"type\": \"Token\", \"start\": 8, \"end\": 12, \"id\": 2, \"features\": {\"id\": 3, \"text\": \"just\", \"lemma\": \"just\", \"upos\": \"ADV\", \"xpos\": \"RB\", \"head\": 5, \"deprel\": \"advmod\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 13, \"end\": 14, \"id\": 3, \"features\": {\"id\": 4, \"text\": \"a\", \"lemma\": \"a\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 5, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Ind\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 15, \"end\": 21, \"id\": 4, \"features\": {\"id\": 5, \"text\": \"sample\", \"lemma\": \"sample\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 5, \"deprel\": \"compound\", \"ner\": \"O\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 22, \"end\": 30, \"id\": 5, \"features\": {\"id\": 6, \"text\": \"document\", \"lemma\": \"document\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 11, \"deprel\": \"root\", \"ner\": \"O\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 31, \"end\": 34, \"id\": 6, \"features\": {\"id\": 7, \"text\": \"for\", \"lemma\": \"for\", \"upos\": \"SCONJ\", \"xpos\": \"IN\", \"head\": 7, \"deprel\": \"mark\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 35, \"end\": 48, \"id\": 7, \"features\": {\"id\": 8, \"text\": \"experimenting\", \"lemma\": \"experiment\", \"upos\": \"VERB\", \"xpos\": \"VBG\", \"head\": 5, \"deprel\": \"acl\", \"ner\": \"O\", \"VerbForm\": \"Ger\"}}, {\"type\": \"Token\", \"start\": 49, \"end\": 53, \"id\": 8, \"features\": {\"id\": 9, \"text\": \"with\", \"lemma\": \"with\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 9, \"deprel\": \"case\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 54, \"end\": 61, \"id\": 9, \"features\": {\"id\": 10, \"text\": \"gatenlp\", \"lemma\": \"gatenlp\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 7, \"deprel\": \"obl\", \"ner\": \"O\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 61, \"end\": 62, \"id\": 10, \"features\": {\"id\": 11, \"text\": \".\", \"lemma\": \".\", \"upos\": \"PUNCT\", \"xpos\": \".\", \"head\": 5, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Sentence\", \"start\": 0, \"end\": 62, \"id\": 11, \"features\": {}}, {\"type\": \"Token\", \"start\": 64, \"end\": 66, \"id\": 12, \"features\": {\"id\": 1, \"text\": \"It\", \"lemma\": \"it\", \"upos\": \"PRON\", \"xpos\": \"PRP\", \"head\": 13, \"deprel\": \"nsubj\", \"ner\": \"O\", \"Case\": \"Nom\", \"Gender\": \"Neut\", \"Number\": \"Sing\", \"Person\": \"3\", \"PronType\": \"Prs\"}}, {\"type\": \"Token\", \"start\": 67, \"end\": 75, \"id\": 13, \"features\": {\"id\": 2, \"text\": \"mentions\", \"lemma\": \"mention\", \"upos\": \"VERB\", \"xpos\": \"VBZ\", \"head\": 52, \"deprel\": \"root\", \"ner\": \"O\", \"Mood\": \"Ind\", \"Number\": \"Sing\", \"Person\": \"3\", \"Tense\": \"Pres\", \"VerbForm\": \"Fin\"}}, {\"type\": \"Token\", \"start\": 76, \"end\": 77, \"id\": 14, \"features\": {\"id\": 3, \"text\": \"a\", \"lemma\": \"a\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 17, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Ind\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 78, \"end\": 81, \"id\": 15, \"features\": {\"id\": 4, \"text\": \"few\", \"lemma\": \"few\", \"upos\": \"ADJ\", \"xpos\": \"JJ\", \"head\": 17, \"deprel\": \"amod\", \"ner\": \"O\", \"Degree\": \"Pos\"}}, {\"type\": \"Token\", \"start\": 82, \"end\": 87, \"id\": 16, \"features\": {\"id\": 5, \"text\": \"named\", \"lemma\": \"name\", \"upos\": \"VERB\", \"xpos\": \"VBN\", \"head\": 17, \"deprel\": \"amod\", \"ner\": \"O\", \"Tense\": \"Past\", \"VerbForm\": \"Part\"}}, {\"type\": \"Token\", \"start\": 88, \"end\": 96, \"id\": 17, \"features\": {\"id\": 6, \"text\": \"entities\", \"lemma\": \"entity\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 13, \"deprel\": \"obj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 97, \"end\": 101, \"id\": 18, \"features\": {\"id\": 7, \"text\": \"like\", \"lemma\": \"like\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 20, \"deprel\": \"case\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 102, \"end\": 105, \"id\": 19, \"features\": {\"id\": 8, \"text\": \"the\", \"lemma\": \"the\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 20, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Def\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 106, \"end\": 113, \"id\": 20, \"features\": {\"id\": 9, \"text\": \"persons\", \"lemma\": \"person\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 17, \"deprel\": \"nmod\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 114, \"end\": 120, \"id\": 21, \"features\": {\"id\": 10, \"text\": \"Barack\", \"lemma\": \"Barack\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"appos\", \"ner\": \"B-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 121, \"end\": 126, \"id\": 22, \"features\": {\"id\": 11, \"text\": \"Obama\", \"lemma\": \"Obama\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 21, \"deprel\": \"flat\", \"ner\": \"E-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 126, \"end\": 127, \"id\": 23, \"features\": {\"id\": 12, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 24, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 129, \"end\": 135, \"id\": 24, \"features\": {\"id\": 13, \"text\": \"Albert\", \"lemma\": \"Albert\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 21, \"deprel\": \"conj\", \"ner\": \"B-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 136, \"end\": 144, \"id\": 25, \"features\": {\"id\": 14, \"text\": \"Einstein\", \"lemma\": \"Einstein\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 24, \"deprel\": \"flat\", \"ner\": \"E-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 145, \"end\": 148, \"id\": 26, \"features\": {\"id\": 15, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 27, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 149, \"end\": 157, \"id\": 27, \"features\": {\"id\": 16, \"text\": \"Wolfgang\", \"lemma\": \"Wolfgang\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"B-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 158, \"end\": 165, \"id\": 28, \"features\": {\"id\": 17, \"text\": \"Amadeus\", \"lemma\": \"Amadeus\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 27, \"deprel\": \"flat\", \"ner\": \"I-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 166, \"end\": 172, \"id\": 29, \"features\": {\"id\": 18, \"text\": \"Mozart\", \"lemma\": \"Mozart\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 27, \"deprel\": \"flat\", \"ner\": \"E-PERSON\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 173, \"end\": 176, \"id\": 30, \"features\": {\"id\": 19, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 33, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 177, \"end\": 180, \"id\": 31, \"features\": {\"id\": 20, \"text\": \"the\", \"lemma\": \"the\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 33, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Def\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 181, \"end\": 193, \"id\": 32, \"features\": {\"id\": 21, \"text\": \"geographical\", \"lemma\": \"geographical\", \"upos\": \"ADJ\", \"xpos\": \"JJ\", \"head\": 33, \"deprel\": \"amod\", \"ner\": \"O\", \"Degree\": \"Pos\"}}, {\"type\": \"Token\", \"start\": 195, \"end\": 204, \"id\": 33, \"features\": {\"id\": 22, \"text\": \"locations\", \"lemma\": \"location\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 205, \"end\": 208, \"id\": 34, \"features\": {\"id\": 23, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 36, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 209, \"end\": 218, \"id\": 35, \"features\": {\"id\": 24, \"text\": \"countries\", \"lemma\": \"country\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 36, \"deprel\": \"compound\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 219, \"end\": 226, \"id\": 36, \"features\": {\"id\": 25, \"text\": \"America\", \"lemma\": \"America\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"S-GPE\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 226, \"end\": 227, \"id\": 37, \"features\": {\"id\": 26, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 39, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 228, \"end\": 234, \"id\": 38, \"features\": {\"id\": 27, \"text\": \"United\", \"lemma\": \"United\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 39, \"deprel\": \"compound\", \"ner\": \"B-GPE\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 235, \"end\": 241, \"id\": 39, \"features\": {\"id\": 28, \"text\": \"States\", \"lemma\": \"States\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"I-GPE\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 242, \"end\": 244, \"id\": 40, \"features\": {\"id\": 29, \"text\": \"of\", \"lemma\": \"of\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 41, \"deprel\": \"case\", \"ner\": \"I-GPE\"}}, {\"type\": \"Token\", \"start\": 245, \"end\": 252, \"id\": 41, \"features\": {\"id\": 30, \"text\": \"America\", \"lemma\": \"America\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 39, \"deprel\": \"nmod\", \"ner\": \"E-GPE\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 252, \"end\": 253, \"id\": 42, \"features\": {\"id\": 31, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 43, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 255, \"end\": 262, \"id\": 43, \"features\": {\"id\": 32, \"text\": \"Hungary\", \"lemma\": \"Hungary\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 41, \"deprel\": \"conj\", \"ner\": \"S-GPE\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 262, \"end\": 263, \"id\": 44, \"features\": {\"id\": 33, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 47, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 264, \"end\": 267, \"id\": 45, \"features\": {\"id\": 34, \"text\": \"the\", \"lemma\": \"the\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 47, \"deprel\": \"det\", \"ner\": \"B-LOC\", \"Definite\": \"Def\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 268, \"end\": 276, \"id\": 46, \"features\": {\"id\": 35, \"text\": \"Atlantic\", \"lemma\": \"Atlantic\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 47, \"deprel\": \"compound\", \"ner\": \"I-LOC\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 277, \"end\": 282, \"id\": 47, \"features\": {\"id\": 36, \"text\": \"Ocean\", \"lemma\": \"Ocean\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"E-LOC\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 282, \"end\": 283, \"id\": 48, \"features\": {\"id\": 37, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 50, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 284, \"end\": 287, \"id\": 49, \"features\": {\"id\": 38, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 50, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 288, \"end\": 297, \"id\": 50, \"features\": {\"id\": 39, \"text\": \"Helskinki\", \"lemma\": \"Helskinki\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 20, \"deprel\": \"conj\", \"ner\": \"S-ORG\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 297, \"end\": 298, \"id\": 51, \"features\": {\"id\": 40, \"text\": \".\", \"lemma\": \".\", \"upos\": \"PUNCT\", \"xpos\": \".\", \"head\": 13, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Sentence\", \"start\": 64, \"end\": 298, \"id\": 52, \"features\": {}}, {\"type\": \"Token\", \"start\": 301, \"end\": 303, \"id\": 53, \"features\": {\"id\": 1, \"text\": \"It\", \"lemma\": \"it\", \"upos\": \"PRON\", \"xpos\": \"PRP\", \"head\": 55, \"deprel\": \"nsubj\", \"ner\": \"O\", \"Case\": \"Nom\", \"Gender\": \"Neut\", \"Number\": \"Sing\", \"Person\": \"3\", \"PronType\": \"Prs\"}}, {\"type\": \"Token\", \"start\": 304, \"end\": 308, \"id\": 54, \"features\": {\"id\": 2, \"text\": \"also\", \"lemma\": \"also\", \"upos\": \"ADV\", \"xpos\": \"RB\", \"head\": 55, \"deprel\": \"advmod\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 309, \"end\": 317, \"id\": 55, \"features\": {\"id\": 3, \"text\": \"contains\", \"lemma\": \"contain\", \"upos\": \"VERB\", \"xpos\": \"VBZ\", \"head\": 101, \"deprel\": \"root\", \"ner\": \"O\", \"Mood\": \"Ind\", \"Number\": \"Sing\", \"Person\": \"3\", \"Tense\": \"Pres\", \"VerbForm\": \"Fin\"}}, {\"type\": \"Token\", \"start\": 318, \"end\": 326, \"id\": 56, \"features\": {\"id\": 4, \"text\": \"mentions\", \"lemma\": \"mention\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 55, \"deprel\": \"obj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 327, \"end\": 329, \"id\": 57, \"features\": {\"id\": 5, \"text\": \"of\", \"lemma\": \"of\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 59, \"deprel\": \"case\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 330, \"end\": 337, \"id\": 58, \"features\": {\"id\": 6, \"text\": \"various\", \"lemma\": \"various\", \"upos\": \"ADJ\", \"xpos\": \"JJ\", \"head\": 59, \"deprel\": \"amod\", \"ner\": \"O\", \"Degree\": \"Pos\"}}, {\"type\": \"Token\", \"start\": 338, \"end\": 345, \"id\": 59, \"features\": {\"id\": 7, \"text\": \"numbers\", \"lemma\": \"number\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 56, \"deprel\": \"nmod\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 346, \"end\": 349, \"id\": 60, \"features\": {\"id\": 8, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 61, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 350, \"end\": 357, \"id\": 61, \"features\": {\"id\": 9, \"text\": \"amounts\", \"lemma\": \"amount\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 59, \"deprel\": \"conj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 358, \"end\": 362, \"id\": 62, \"features\": {\"id\": 10, \"text\": \"like\", \"lemma\": \"like\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 64, \"deprel\": \"case\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 364, \"end\": 366, \"id\": 63, \"features\": {\"id\": 11, \"text\": \"12\", \"lemma\": \"12\", \"upos\": \"NUM\", \"xpos\": \"CD\", \"head\": 64, \"deprel\": \"nummod\", \"ner\": \"B-QUANTITY\", \"NumType\": \"Card\"}}, {\"type\": \"Token\", \"start\": 367, \"end\": 374, \"id\": 64, \"features\": {\"id\": 12, \"text\": \"degrees\", \"lemma\": \"degree\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 59, \"deprel\": \"nmod\", \"ner\": \"E-QUANTITY\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 374, \"end\": 375, \"id\": 65, \"features\": {\"id\": 13, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 67, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 376, \"end\": 381, \"id\": 66, \"features\": {\"id\": 14, \"text\": \"12.83\", \"lemma\": \"12.83\", \"upos\": \"NUM\", \"xpos\": \"CD\", \"head\": 67, \"deprel\": \"nummod\", \"ner\": \"O\", \"NumType\": \"Card\"}}, {\"type\": \"Token\", \"start\": 381, \"end\": 382, \"id\": 67, \"features\": {\"id\": 15, \"text\": \"$\", \"lemma\": \"$\", \"upos\": \"SYM\", \"xpos\": \"$\", \"head\": 59, \"deprel\": \"conj\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 382, \"end\": 383, \"id\": 68, \"features\": {\"id\": 16, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 70, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 384, \"end\": 386, \"id\": 69, \"features\": {\"id\": 17, \"text\": \"25\", \"lemma\": \"25\", \"upos\": \"NUM\", \"xpos\": \"CD\", \"head\": 70, \"deprel\": \"nummod\", \"ner\": \"B-QUANTITY\", \"NumType\": \"Card\"}}, {\"type\": \"Token\", \"start\": 387, \"end\": 389, \"id\": 70, \"features\": {\"id\": 18, \"text\": \"km\", \"lemma\": \"km\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 67, \"deprel\": \"conj\", \"ner\": \"I-QUANTITY\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 389, \"end\": 390, \"id\": 71, \"features\": {\"id\": 19, \"text\": \"/\", \"lemma\": \"/\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 72, \"deprel\": \"punct\", \"ner\": \"I-QUANTITY\"}}, {\"type\": \"Token\", \"start\": 390, \"end\": 391, \"id\": 72, \"features\": {\"id\": 20, \"text\": \"h\", \"lemma\": \"h\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 67, \"deprel\": \"conj\", \"ner\": \"E-QUANTITY\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 392, \"end\": 394, \"id\": 73, \"features\": {\"id\": 21, \"text\": \"or\", \"lemma\": \"or\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 75, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 395, \"end\": 403, \"id\": 74, \"features\": {\"id\": 22, \"text\": \"fortytwo\", \"lemma\": \"fortytwo\", \"upos\": \"ADJ\", \"xpos\": \"JJ\", \"head\": 75, \"deprel\": \"amod\", \"ner\": \"B-QUANTITY\", \"Degree\": \"Pos\"}}, {\"type\": \"Token\", \"start\": 404, \"end\": 409, \"id\": 75, \"features\": {\"id\": 23, \"text\": \"kilos\", \"lemma\": \"kilo\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 67, \"deprel\": \"conj\", \"ner\": \"E-QUANTITY\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 410, \"end\": 413, \"id\": 76, \"features\": {\"id\": 24, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 78, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 414, \"end\": 422, \"id\": 77, \"features\": {\"id\": 25, \"text\": \"mentions\", \"lemma\": \"mention\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 78, \"deprel\": \"compound\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 423, \"end\": 436, \"id\": 78, \"features\": {\"id\": 26, \"text\": \"organizations\", \"lemma\": \"organization\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 59, \"deprel\": \"conj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 437, \"end\": 440, \"id\": 79, \"features\": {\"id\": 27, \"text\": \"and\", \"lemma\": \"and\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 80, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 441, \"end\": 450, \"id\": 80, \"features\": {\"id\": 28, \"text\": \"companies\", \"lemma\": \"company\", \"upos\": \"NOUN\", \"xpos\": \"NNS\", \"head\": 59, \"deprel\": \"conj\", \"ner\": \"O\", \"Number\": \"Plur\"}}, {\"type\": \"Token\", \"start\": 451, \"end\": 455, \"id\": 81, \"features\": {\"id\": 29, \"text\": \"like\", \"lemma\": \"like\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 83, \"deprel\": \"case\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 456, \"end\": 459, \"id\": 82, \"features\": {\"id\": 30, \"text\": \"the\", \"lemma\": \"the\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 83, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Def\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 460, \"end\": 463, \"id\": 83, \"features\": {\"id\": 31, \"text\": \"UNO\", \"lemma\": \"UNO\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 80, \"deprel\": \"nmod\", \"ner\": \"S-ORG\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 463, \"end\": 464, \"id\": 84, \"features\": {\"id\": 32, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 83, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 465, \"end\": 474, \"id\": 85, \"features\": {\"id\": 33, \"text\": \"Microsoft\", \"lemma\": \"Microsoft\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 83, \"deprel\": \"appos\", \"ner\": \"S-ORG\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 474, \"end\": 475, \"id\": 86, \"features\": {\"id\": 34, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 85, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 476, \"end\": 481, \"id\": 87, \"features\": {\"id\": 35, \"text\": \"Apple\", \"lemma\": \"Apple\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 83, \"deprel\": \"appos\", \"ner\": \"S-ORG\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 481, \"end\": 482, \"id\": 88, \"features\": {\"id\": 36, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 83, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 483, \"end\": 488, \"id\": 89, \"features\": {\"id\": 37, \"text\": \"which\", \"lemma\": \"which\", \"upos\": \"PRON\", \"xpos\": \"WDT\", \"head\": 90, \"deprel\": \"nsubj\", \"ner\": \"O\", \"PronType\": \"Rel\"}}, {\"type\": \"Token\", \"start\": 489, \"end\": 492, \"id\": 90, \"features\": {\"id\": 38, \"text\": \"has\", \"lemma\": \"have\", \"upos\": \"VERB\", \"xpos\": \"VBZ\", \"head\": 83, \"deprel\": \"acl:relcl\", \"ner\": \"O\", \"Mood\": \"Ind\", \"Number\": \"Sing\", \"Person\": \"3\", \"Tense\": \"Pres\", \"VerbForm\": \"Fin\"}}, {\"type\": \"Token\", \"start\": 493, \"end\": 495, \"id\": 91, \"features\": {\"id\": 39, \"text\": \"an\", \"lemma\": \"a\", \"upos\": \"DET\", \"xpos\": \"DT\", \"head\": 92, \"deprel\": \"det\", \"ner\": \"O\", \"Definite\": \"Ind\", \"PronType\": \"Art\"}}, {\"type\": \"Token\", \"start\": 496, \"end\": 501, \"id\": 92, \"features\": {\"id\": 40, \"text\": \"apple\", \"lemma\": \"apple\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 90, \"deprel\": \"obj\", \"ner\": \"O\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 502, \"end\": 504, \"id\": 93, \"features\": {\"id\": 41, \"text\": \"as\", \"lemma\": \"as\", \"upos\": \"ADP\", \"xpos\": \"IN\", \"head\": 96, \"deprel\": \"mark\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 505, \"end\": 507, \"id\": 94, \"features\": {\"id\": 42, \"text\": \"it\", \"lemma\": \"it\", \"upos\": \"PRON\", \"xpos\": \"PRP\", \"head\": 96, \"deprel\": \"nsubj\", \"ner\": \"O\", \"Case\": \"Nom\", \"Gender\": \"Neut\", \"Number\": \"Sing\", \"Person\": \"3\", \"PronType\": \"Prs\"}}, {\"type\": \"Token\", \"start\": 507, \"end\": 509, \"id\": 95, \"features\": {\"id\": 43, \"text\": \"'s\", \"lemma\": \"be\", \"upos\": \"AUX\", \"xpos\": \"VBZ\", \"head\": 96, \"deprel\": \"cop\", \"ner\": \"O\", \"Mood\": \"Ind\", \"Number\": \"Sing\", \"Person\": \"3\", \"Tense\": \"Pres\", \"VerbForm\": \"Fin\"}}, {\"type\": \"Token\", \"start\": 510, \"end\": 514, \"id\": 96, \"features\": {\"id\": 44, \"text\": \"logo\", \"lemma\": \"logo\", \"upos\": \"NOUN\", \"xpos\": \"NN\", \"head\": 90, \"deprel\": \"advcl\", \"ner\": \"O\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 514, \"end\": 515, \"id\": 97, \"features\": {\"id\": 45, \"text\": \",\", \"lemma\": \",\", \"upos\": \"PUNCT\", \"xpos\": \",\", \"head\": 99, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 516, \"end\": 518, \"id\": 98, \"features\": {\"id\": 46, \"text\": \"or\", \"lemma\": \"or\", \"upos\": \"CCONJ\", \"xpos\": \"CC\", \"head\": 99, \"deprel\": \"cc\", \"ner\": \"O\"}}, {\"type\": \"Token\", \"start\": 519, \"end\": 525, \"id\": 99, \"features\": {\"id\": 47, \"text\": \"Google\", \"lemma\": \"Google\", \"upos\": \"PROPN\", \"xpos\": \"NNP\", \"head\": 96, \"deprel\": \"conj\", \"ner\": \"S-ORG\", \"Number\": \"Sing\"}}, {\"type\": \"Token\", \"start\": 525, \"end\": 526, \"id\": 100, \"features\": {\"id\": 48, \"text\": \".\", \"lemma\": \".\", \"upos\": \"PUNCT\", \"xpos\": \".\", \"head\": 55, \"deprel\": \"punct\", \"ner\": \"O\"}}, {\"type\": \"Sentence\", \"start\": 301, \"end\": 526, \"id\": 101, \"features\": {}}, {\"type\": \"PERSON\", \"start\": 114, \"end\": 126, \"id\": 102, \"features\": {}}, {\"type\": \"PERSON\", \"start\": 129, \"end\": 144, \"id\": 103, \"features\": {}}, {\"type\": \"PERSON\", \"start\": 149, \"end\": 172, \"id\": 104, \"features\": {}}, {\"type\": \"GPE\", \"start\": 219, \"end\": 226, \"id\": 105, \"features\": {}}, {\"type\": \"GPE\", \"start\": 228, \"end\": 252, \"id\": 106, \"features\": {}}, {\"type\": \"GPE\", \"start\": 255, \"end\": 262, \"id\": 107, \"features\": {}}, {\"type\": \"LOC\", \"start\": 264, \"end\": 282, \"id\": 108, \"features\": {}}, {\"type\": \"ORG\", \"start\": 288, \"end\": 297, \"id\": 109, \"features\": {}}, {\"type\": \"QUANTITY\", \"start\": 364, \"end\": 374, \"id\": 110, \"features\": {}}, {\"type\": \"QUANTITY\", \"start\": 384, \"end\": 391, \"id\": 111, \"features\": {}}, {\"type\": \"QUANTITY\", \"start\": 395, \"end\": 409, \"id\": 112, \"features\": {}}, {\"type\": \"ORG\", \"start\": 460, \"end\": 463, \"id\": 113, \"features\": {}}, {\"type\": \"ORG\", \"start\": 465, \"end\": 474, \"id\": 114, \"features\": {}}, {\"type\": \"ORG\", \"start\": 476, \"end\": 481, \"id\": 115, \"features\": {}}, {\"type\": \"ORG\", \"start\": 519, \"end\": 525, \"id\": 116, \"features\": {}}], \"next_annid\": 117}}, \"text\": \"This is just a sample document for experimenting with gatenlp. \\nIt mentions a few named entities like the persons Barack Obama, \\nAlbert Einstein and Wolfgang Amadeus Mozart and the geographical \\nlocations and countries America, United States of America, \\nHungary, the Atlantic Ocean, and Helskinki. \\n\\nIt also contains mentions of various numbers and amounts like \\n12 degrees, 12.83$, 25 km/h or fortytwo kilos and mentions\\norganizations and companies like the UNO, Microsoft, Apple, which\\nhas an apple as it's logo, or Google. \\n\\n\\n\", \"features\": {}, \"offset_type\": \"j\", \"name\": \"\"}\n",
       "    </script>\n",
       "    <script type=\"text/javascript\">\n",
       "        gatenlp_run(\"QIUNTDRRJE-\");\n",
       "    </script>\n",
       "  </div>\n",
       "\n",
       "</div></div>"
      ],
      "text/plain": [
       "Document(This is just a sample document for experimenting with gatenlp. \n",
       "It mentions a few named entities like the persons Barack Obama, \n",
       "Albert Einstein and Wolfgang Amadeus Mozart and the geographical \n",
       "locations and countries America, United States of America, \n",
       "Hungary, the Atlantic Ocean, and Helskinki. \n",
       "\n",
       "It also contains mentions of various numbers and amounts like \n",
       "12 degrees, 12.83$, 25 km/h or fortytwo kilos and mentions\n",
       "organizations and companies like the UNO, Microsoft, Apple, which\n",
       "has an apple as it's logo, or Google. \n",
       "\n",
       "\n",
       ",features=Features({}),anns={'': AnnotationSet([Annotation(0,4,Token,features=Features({'id': 1, 'text': 'This', 'lemma': 'this', 'upos': 'PRON', 'xpos': 'DT', 'head': 5, 'deprel': 'nsubj', 'ner': 'O', 'Number': 'Sing', 'PronType': 'Dem'}),id=0), Annotation(0,62,Sentence,features=Features({}),id=11), Annotation(5,7,Token,features=Features({'id': 2, 'text': 'is', 'lemma': 'be', 'upos': 'AUX', 'xpos': 'VBZ', 'head': 5, 'deprel': 'cop', 'ner': 'O', 'Mood': 'Ind', 'Number': 'Sing', 'Person': '3', 'Tense': 'Pres', 'VerbForm': 'Fin'}),id=1), Annotation(8,12,Token,features=Features({'id': 3, 'text': 'just', 'lemma': 'just', 'upos': 'ADV', 'xpos': 'RB', 'head': 5, 'deprel': 'advmod', 'ner': 'O'}),id=2), Annotation(13,14,Token,features=Features({'id': 4, 'text': 'a', 'lemma': 'a', 'upos': 'DET', 'xpos': 'DT', 'head': 5, 'deprel': 'det', 'ner': 'O', 'Definite': 'Ind', 'PronType': 'Art'}),id=3), Annotation(15,21,Token,features=Features({'id': 5, 'text': 'sample', 'lemma': 'sample', 'upos': 'NOUN', 'xpos': 'NN', 'head': 5, 'deprel': 'compound', 'ner': 'O', 'Number': 'Sing'}),id=4), Annotation(22,30,Token,features=Features({'id': 6, 'text': 'document', 'lemma': 'document', 'upos': 'NOUN', 'xpos': 'NN', 'head': 11, 'deprel': 'root', 'ner': 'O', 'Number': 'Sing'}),id=5), Annotation(31,34,Token,features=Features({'id': 7, 'text': 'for', 'lemma': 'for', 'upos': 'SCONJ', 'xpos': 'IN', 'head': 7, 'deprel': 'mark', 'ner': 'O'}),id=6), Annotation(35,48,Token,features=Features({'id': 8, 'text': 'experimenting', 'lemma': 'experiment', 'upos': 'VERB', 'xpos': 'VBG', 'head': 5, 'deprel': 'acl', 'ner': 'O', 'VerbForm': 'Ger'}),id=7), Annotation(49,53,Token,features=Features({'id': 9, 'text': 'with', 'lemma': 'with', 'upos': 'ADP', 'xpos': 'IN', 'head': 9, 'deprel': 'case', 'ner': 'O'}),id=8), Annotation(54,61,Token,features=Features({'id': 10, 'text': 'gatenlp', 'lemma': 'gatenlp', 'upos': 'NOUN', 'xpos': 'NN', 'head': 7, 'deprel': 'obl', 'ner': 'O', 'Number': 'Sing'}),id=9), Annotation(61,62,Token,features=Features({'id': 11, 'text': '.', 'lemma': '.', 'upos': 'PUNCT', 'xpos': '.', 'head': 5, 'deprel': 'punct', 'ner': 'O'}),id=10), Annotation(64,66,Token,features=Features({'id': 1, 'text': 'It', 'lemma': 'it', 'upos': 'PRON', 'xpos': 'PRP', 'head': 13, 'deprel': 'nsubj', 'ner': 'O', 'Case': 'Nom', 'Gender': 'Neut', 'Number': 'Sing', 'Person': '3', 'PronType': 'Prs'}),id=12), Annotation(64,298,Sentence,features=Features({}),id=52), Annotation(67,75,Token,features=Features({'id': 2, 'text': 'mentions', 'lemma': 'mention', 'upos': 'VERB', 'xpos': 'VBZ', 'head': 52, 'deprel': 'root', 'ner': 'O', 'Mood': 'Ind', 'Number': 'Sing', 'Person': '3', 'Tense': 'Pres', 'VerbForm': 'Fin'}),id=13), Annotation(76,77,Token,features=Features({'id': 3, 'text': 'a', 'lemma': 'a', 'upos': 'DET', 'xpos': 'DT', 'head': 17, 'deprel': 'det', 'ner': 'O', 'Definite': 'Ind', 'PronType': 'Art'}),id=14), Annotation(78,81,Token,features=Features({'id': 4, 'text': 'few', 'lemma': 'few', 'upos': 'ADJ', 'xpos': 'JJ', 'head': 17, 'deprel': 'amod', 'ner': 'O', 'Degree': 'Pos'}),id=15), Annotation(82,87,Token,features=Features({'id': 5, 'text': 'named', 'lemma': 'name', 'upos': 'VERB', 'xpos': 'VBN', 'head': 17, 'deprel': 'amod', 'ner': 'O', 'Tense': 'Past', 'VerbForm': 'Part'}),id=16), Annotation(88,96,Token,features=Features({'id': 6, 'text': 'entities', 'lemma': 'entity', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 13, 'deprel': 'obj', 'ner': 'O', 'Number': 'Plur'}),id=17), Annotation(97,101,Token,features=Features({'id': 7, 'text': 'like', 'lemma': 'like', 'upos': 'ADP', 'xpos': 'IN', 'head': 20, 'deprel': 'case', 'ner': 'O'}),id=18), Annotation(102,105,Token,features=Features({'id': 8, 'text': 'the', 'lemma': 'the', 'upos': 'DET', 'xpos': 'DT', 'head': 20, 'deprel': 'det', 'ner': 'O', 'Definite': 'Def', 'PronType': 'Art'}),id=19), Annotation(106,113,Token,features=Features({'id': 9, 'text': 'persons', 'lemma': 'person', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 17, 'deprel': 'nmod', 'ner': 'O', 'Number': 'Plur'}),id=20), Annotation(114,120,Token,features=Features({'id': 10, 'text': 'Barack', 'lemma': 'Barack', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'appos', 'ner': 'B-PERSON', 'Number': 'Sing'}),id=21), Annotation(114,126,PERSON,features=Features({}),id=102), Annotation(121,126,Token,features=Features({'id': 11, 'text': 'Obama', 'lemma': 'Obama', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 21, 'deprel': 'flat', 'ner': 'E-PERSON', 'Number': 'Sing'}),id=22), Annotation(126,127,Token,features=Features({'id': 12, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 24, 'deprel': 'punct', 'ner': 'O'}),id=23), Annotation(129,135,Token,features=Features({'id': 13, 'text': 'Albert', 'lemma': 'Albert', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 21, 'deprel': 'conj', 'ner': 'B-PERSON', 'Number': 'Sing'}),id=24), Annotation(129,144,PERSON,features=Features({}),id=103), Annotation(136,144,Token,features=Features({'id': 14, 'text': 'Einstein', 'lemma': 'Einstein', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 24, 'deprel': 'flat', 'ner': 'E-PERSON', 'Number': 'Sing'}),id=25), Annotation(145,148,Token,features=Features({'id': 15, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 27, 'deprel': 'cc', 'ner': 'O'}),id=26), Annotation(149,157,Token,features=Features({'id': 16, 'text': 'Wolfgang', 'lemma': 'Wolfgang', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'conj', 'ner': 'B-PERSON', 'Number': 'Sing'}),id=27), Annotation(149,172,PERSON,features=Features({}),id=104), Annotation(158,165,Token,features=Features({'id': 17, 'text': 'Amadeus', 'lemma': 'Amadeus', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 27, 'deprel': 'flat', 'ner': 'I-PERSON', 'Number': 'Sing'}),id=28), Annotation(166,172,Token,features=Features({'id': 18, 'text': 'Mozart', 'lemma': 'Mozart', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 27, 'deprel': 'flat', 'ner': 'E-PERSON', 'Number': 'Sing'}),id=29), Annotation(173,176,Token,features=Features({'id': 19, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 33, 'deprel': 'cc', 'ner': 'O'}),id=30), Annotation(177,180,Token,features=Features({'id': 20, 'text': 'the', 'lemma': 'the', 'upos': 'DET', 'xpos': 'DT', 'head': 33, 'deprel': 'det', 'ner': 'O', 'Definite': 'Def', 'PronType': 'Art'}),id=31), Annotation(181,193,Token,features=Features({'id': 21, 'text': 'geographical', 'lemma': 'geographical', 'upos': 'ADJ', 'xpos': 'JJ', 'head': 33, 'deprel': 'amod', 'ner': 'O', 'Degree': 'Pos'}),id=32), Annotation(195,204,Token,features=Features({'id': 22, 'text': 'locations', 'lemma': 'location', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 20, 'deprel': 'conj', 'ner': 'O', 'Number': 'Plur'}),id=33), Annotation(205,208,Token,features=Features({'id': 23, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 36, 'deprel': 'cc', 'ner': 'O'}),id=34), Annotation(209,218,Token,features=Features({'id': 24, 'text': 'countries', 'lemma': 'country', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 36, 'deprel': 'compound', 'ner': 'O', 'Number': 'Plur'}),id=35), Annotation(219,226,Token,features=Features({'id': 25, 'text': 'America', 'lemma': 'America', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'conj', 'ner': 'S-GPE', 'Number': 'Sing'}),id=36), Annotation(219,226,GPE,features=Features({}),id=105), Annotation(226,227,Token,features=Features({'id': 26, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 39, 'deprel': 'punct', 'ner': 'O'}),id=37), Annotation(228,234,Token,features=Features({'id': 27, 'text': 'United', 'lemma': 'United', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 39, 'deprel': 'compound', 'ner': 'B-GPE', 'Number': 'Sing'}),id=38), Annotation(228,252,GPE,features=Features({}),id=106), Annotation(235,241,Token,features=Features({'id': 28, 'text': 'States', 'lemma': 'States', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'conj', 'ner': 'I-GPE', 'Number': 'Sing'}),id=39), Annotation(242,244,Token,features=Features({'id': 29, 'text': 'of', 'lemma': 'of', 'upos': 'ADP', 'xpos': 'IN', 'head': 41, 'deprel': 'case', 'ner': 'I-GPE'}),id=40), Annotation(245,252,Token,features=Features({'id': 30, 'text': 'America', 'lemma': 'America', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 39, 'deprel': 'nmod', 'ner': 'E-GPE', 'Number': 'Sing'}),id=41), Annotation(252,253,Token,features=Features({'id': 31, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 43, 'deprel': 'punct', 'ner': 'O'}),id=42), Annotation(255,262,Token,features=Features({'id': 32, 'text': 'Hungary', 'lemma': 'Hungary', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 41, 'deprel': 'conj', 'ner': 'S-GPE', 'Number': 'Sing'}),id=43), Annotation(255,262,GPE,features=Features({}),id=107), Annotation(262,263,Token,features=Features({'id': 33, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 47, 'deprel': 'punct', 'ner': 'O'}),id=44), Annotation(264,267,Token,features=Features({'id': 34, 'text': 'the', 'lemma': 'the', 'upos': 'DET', 'xpos': 'DT', 'head': 47, 'deprel': 'det', 'ner': 'B-LOC', 'Definite': 'Def', 'PronType': 'Art'}),id=45), Annotation(264,282,LOC,features=Features({}),id=108), Annotation(268,276,Token,features=Features({'id': 35, 'text': 'Atlantic', 'lemma': 'Atlantic', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 47, 'deprel': 'compound', 'ner': 'I-LOC', 'Number': 'Sing'}),id=46), Annotation(277,282,Token,features=Features({'id': 36, 'text': 'Ocean', 'lemma': 'Ocean', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'conj', 'ner': 'E-LOC', 'Number': 'Sing'}),id=47), Annotation(282,283,Token,features=Features({'id': 37, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 50, 'deprel': 'punct', 'ner': 'O'}),id=48), Annotation(284,287,Token,features=Features({'id': 38, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 50, 'deprel': 'cc', 'ner': 'O'}),id=49), Annotation(288,297,Token,features=Features({'id': 39, 'text': 'Helskinki', 'lemma': 'Helskinki', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 20, 'deprel': 'conj', 'ner': 'S-ORG', 'Number': 'Sing'}),id=50), Annotation(288,297,ORG,features=Features({}),id=109), Annotation(297,298,Token,features=Features({'id': 40, 'text': '.', 'lemma': '.', 'upos': 'PUNCT', 'xpos': '.', 'head': 13, 'deprel': 'punct', 'ner': 'O'}),id=51), Annotation(301,303,Token,features=Features({'id': 1, 'text': 'It', 'lemma': 'it', 'upos': 'PRON', 'xpos': 'PRP', 'head': 55, 'deprel': 'nsubj', 'ner': 'O', 'Case': 'Nom', 'Gender': 'Neut', 'Number': 'Sing', 'Person': '3', 'PronType': 'Prs'}),id=53), Annotation(301,526,Sentence,features=Features({}),id=101), Annotation(304,308,Token,features=Features({'id': 2, 'text': 'also', 'lemma': 'also', 'upos': 'ADV', 'xpos': 'RB', 'head': 55, 'deprel': 'advmod', 'ner': 'O'}),id=54), Annotation(309,317,Token,features=Features({'id': 3, 'text': 'contains', 'lemma': 'contain', 'upos': 'VERB', 'xpos': 'VBZ', 'head': 101, 'deprel': 'root', 'ner': 'O', 'Mood': 'Ind', 'Number': 'Sing', 'Person': '3', 'Tense': 'Pres', 'VerbForm': 'Fin'}),id=55), Annotation(318,326,Token,features=Features({'id': 4, 'text': 'mentions', 'lemma': 'mention', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 55, 'deprel': 'obj', 'ner': 'O', 'Number': 'Plur'}),id=56), Annotation(327,329,Token,features=Features({'id': 5, 'text': 'of', 'lemma': 'of', 'upos': 'ADP', 'xpos': 'IN', 'head': 59, 'deprel': 'case', 'ner': 'O'}),id=57), Annotation(330,337,Token,features=Features({'id': 6, 'text': 'various', 'lemma': 'various', 'upos': 'ADJ', 'xpos': 'JJ', 'head': 59, 'deprel': 'amod', 'ner': 'O', 'Degree': 'Pos'}),id=58), Annotation(338,345,Token,features=Features({'id': 7, 'text': 'numbers', 'lemma': 'number', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 56, 'deprel': 'nmod', 'ner': 'O', 'Number': 'Plur'}),id=59), Annotation(346,349,Token,features=Features({'id': 8, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 61, 'deprel': 'cc', 'ner': 'O'}),id=60), Annotation(350,357,Token,features=Features({'id': 9, 'text': 'amounts', 'lemma': 'amount', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 59, 'deprel': 'conj', 'ner': 'O', 'Number': 'Plur'}),id=61), Annotation(358,362,Token,features=Features({'id': 10, 'text': 'like', 'lemma': 'like', 'upos': 'ADP', 'xpos': 'IN', 'head': 64, 'deprel': 'case', 'ner': 'O'}),id=62), Annotation(364,366,Token,features=Features({'id': 11, 'text': '12', 'lemma': '12', 'upos': 'NUM', 'xpos': 'CD', 'head': 64, 'deprel': 'nummod', 'ner': 'B-QUANTITY', 'NumType': 'Card'}),id=63), Annotation(364,374,QUANTITY,features=Features({}),id=110), Annotation(367,374,Token,features=Features({'id': 12, 'text': 'degrees', 'lemma': 'degree', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 59, 'deprel': 'nmod', 'ner': 'E-QUANTITY', 'Number': 'Plur'}),id=64), Annotation(374,375,Token,features=Features({'id': 13, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 67, 'deprel': 'punct', 'ner': 'O'}),id=65), Annotation(376,381,Token,features=Features({'id': 14, 'text': '12.83', 'lemma': '12.83', 'upos': 'NUM', 'xpos': 'CD', 'head': 67, 'deprel': 'nummod', 'ner': 'O', 'NumType': 'Card'}),id=66), Annotation(381,382,Token,features=Features({'id': 15, 'text': '$', 'lemma': '$', 'upos': 'SYM', 'xpos': '$', 'head': 59, 'deprel': 'conj', 'ner': 'O'}),id=67), Annotation(382,383,Token,features=Features({'id': 16, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 70, 'deprel': 'punct', 'ner': 'O'}),id=68), Annotation(384,386,Token,features=Features({'id': 17, 'text': '25', 'lemma': '25', 'upos': 'NUM', 'xpos': 'CD', 'head': 70, 'deprel': 'nummod', 'ner': 'B-QUANTITY', 'NumType': 'Card'}),id=69), Annotation(384,391,QUANTITY,features=Features({}),id=111), Annotation(387,389,Token,features=Features({'id': 18, 'text': 'km', 'lemma': 'km', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 67, 'deprel': 'conj', 'ner': 'I-QUANTITY', 'Number': 'Plur'}),id=70), Annotation(389,390,Token,features=Features({'id': 19, 'text': '/', 'lemma': '/', 'upos': 'PUNCT', 'xpos': ',', 'head': 72, 'deprel': 'punct', 'ner': 'I-QUANTITY'}),id=71), Annotation(390,391,Token,features=Features({'id': 20, 'text': 'h', 'lemma': 'h', 'upos': 'NOUN', 'xpos': 'NN', 'head': 67, 'deprel': 'conj', 'ner': 'E-QUANTITY', 'Number': 'Sing'}),id=72), Annotation(392,394,Token,features=Features({'id': 21, 'text': 'or', 'lemma': 'or', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 75, 'deprel': 'cc', 'ner': 'O'}),id=73), Annotation(395,403,Token,features=Features({'id': 22, 'text': 'fortytwo', 'lemma': 'fortytwo', 'upos': 'ADJ', 'xpos': 'JJ', 'head': 75, 'deprel': 'amod', 'ner': 'B-QUANTITY', 'Degree': 'Pos'}),id=74), Annotation(395,409,QUANTITY,features=Features({}),id=112), Annotation(404,409,Token,features=Features({'id': 23, 'text': 'kilos', 'lemma': 'kilo', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 67, 'deprel': 'conj', 'ner': 'E-QUANTITY', 'Number': 'Plur'}),id=75), Annotation(410,413,Token,features=Features({'id': 24, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 78, 'deprel': 'cc', 'ner': 'O'}),id=76), Annotation(414,422,Token,features=Features({'id': 25, 'text': 'mentions', 'lemma': 'mention', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 78, 'deprel': 'compound', 'ner': 'O', 'Number': 'Plur'}),id=77), Annotation(423,436,Token,features=Features({'id': 26, 'text': 'organizations', 'lemma': 'organization', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 59, 'deprel': 'conj', 'ner': 'O', 'Number': 'Plur'}),id=78), Annotation(437,440,Token,features=Features({'id': 27, 'text': 'and', 'lemma': 'and', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 80, 'deprel': 'cc', 'ner': 'O'}),id=79), Annotation(441,450,Token,features=Features({'id': 28, 'text': 'companies', 'lemma': 'company', 'upos': 'NOUN', 'xpos': 'NNS', 'head': 59, 'deprel': 'conj', 'ner': 'O', 'Number': 'Plur'}),id=80), Annotation(451,455,Token,features=Features({'id': 29, 'text': 'like', 'lemma': 'like', 'upos': 'ADP', 'xpos': 'IN', 'head': 83, 'deprel': 'case', 'ner': 'O'}),id=81), Annotation(456,459,Token,features=Features({'id': 30, 'text': 'the', 'lemma': 'the', 'upos': 'DET', 'xpos': 'DT', 'head': 83, 'deprel': 'det', 'ner': 'O', 'Definite': 'Def', 'PronType': 'Art'}),id=82), Annotation(460,463,Token,features=Features({'id': 31, 'text': 'UNO', 'lemma': 'UNO', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 80, 'deprel': 'nmod', 'ner': 'S-ORG', 'Number': 'Sing'}),id=83), Annotation(460,463,ORG,features=Features({}),id=113), Annotation(463,464,Token,features=Features({'id': 32, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 83, 'deprel': 'punct', 'ner': 'O'}),id=84), Annotation(465,474,Token,features=Features({'id': 33, 'text': 'Microsoft', 'lemma': 'Microsoft', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 83, 'deprel': 'appos', 'ner': 'S-ORG', 'Number': 'Sing'}),id=85), Annotation(465,474,ORG,features=Features({}),id=114), Annotation(474,475,Token,features=Features({'id': 34, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 85, 'deprel': 'punct', 'ner': 'O'}),id=86), Annotation(476,481,Token,features=Features({'id': 35, 'text': 'Apple', 'lemma': 'Apple', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 83, 'deprel': 'appos', 'ner': 'S-ORG', 'Number': 'Sing'}),id=87), Annotation(476,481,ORG,features=Features({}),id=115), Annotation(481,482,Token,features=Features({'id': 36, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 83, 'deprel': 'punct', 'ner': 'O'}),id=88), Annotation(483,488,Token,features=Features({'id': 37, 'text': 'which', 'lemma': 'which', 'upos': 'PRON', 'xpos': 'WDT', 'head': 90, 'deprel': 'nsubj', 'ner': 'O', 'PronType': 'Rel'}),id=89), Annotation(489,492,Token,features=Features({'id': 38, 'text': 'has', 'lemma': 'have', 'upos': 'VERB', 'xpos': 'VBZ', 'head': 83, 'deprel': 'acl:relcl', 'ner': 'O', 'Mood': 'Ind', 'Number': 'Sing', 'Person': '3', 'Tense': 'Pres', 'VerbForm': 'Fin'}),id=90), Annotation(493,495,Token,features=Features({'id': 39, 'text': 'an', 'lemma': 'a', 'upos': 'DET', 'xpos': 'DT', 'head': 92, 'deprel': 'det', 'ner': 'O', 'Definite': 'Ind', 'PronType': 'Art'}),id=91), Annotation(496,501,Token,features=Features({'id': 40, 'text': 'apple', 'lemma': 'apple', 'upos': 'NOUN', 'xpos': 'NN', 'head': 90, 'deprel': 'obj', 'ner': 'O', 'Number': 'Sing'}),id=92), Annotation(502,504,Token,features=Features({'id': 41, 'text': 'as', 'lemma': 'as', 'upos': 'ADP', 'xpos': 'IN', 'head': 96, 'deprel': 'mark', 'ner': 'O'}),id=93), Annotation(505,507,Token,features=Features({'id': 42, 'text': 'it', 'lemma': 'it', 'upos': 'PRON', 'xpos': 'PRP', 'head': 96, 'deprel': 'nsubj', 'ner': 'O', 'Case': 'Nom', 'Gender': 'Neut', 'Number': 'Sing', 'Person': '3', 'PronType': 'Prs'}),id=94), Annotation(507,509,Token,features=Features({'id': 43, 'text': \"'s\", 'lemma': 'be', 'upos': 'AUX', 'xpos': 'VBZ', 'head': 96, 'deprel': 'cop', 'ner': 'O', 'Mood': 'Ind', 'Number': 'Sing', 'Person': '3', 'Tense': 'Pres', 'VerbForm': 'Fin'}),id=95), Annotation(510,514,Token,features=Features({'id': 44, 'text': 'logo', 'lemma': 'logo', 'upos': 'NOUN', 'xpos': 'NN', 'head': 90, 'deprel': 'advcl', 'ner': 'O', 'Number': 'Sing'}),id=96), Annotation(514,515,Token,features=Features({'id': 45, 'text': ',', 'lemma': ',', 'upos': 'PUNCT', 'xpos': ',', 'head': 99, 'deprel': 'punct', 'ner': 'O'}),id=97), Annotation(516,518,Token,features=Features({'id': 46, 'text': 'or', 'lemma': 'or', 'upos': 'CCONJ', 'xpos': 'CC', 'head': 99, 'deprel': 'cc', 'ner': 'O'}),id=98), Annotation(519,525,Token,features=Features({'id': 47, 'text': 'Google', 'lemma': 'Google', 'upos': 'PROPN', 'xpos': 'NNP', 'head': 96, 'deprel': 'conj', 'ner': 'S-ORG', 'Number': 'Sing'}),id=99), Annotation(519,525,ORG,features=Features({}),id=116), Annotation(525,526,Token,features=Features({'id': 48, 'text': '.', 'lemma': '.', 'upos': 'PUNCT', 'xpos': '.', 'head': 55, 'deprel': 'punct', 'ner': 'O'}),id=100)])})"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "doc = stanza_annotator(doc)\n",
    "doc"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python gatenlp",
   "language": "python",
   "name": "gatenlp"
  },
  "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.7.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
