class_docstr: This DatasetReader is designed to read in the English OntoNotes v5.0 data
  for fine-grained named entity recognition. It returns a dataset of instances with the
  following fields:
  
  tokens : ``TextField``
      The tokens in the sentence.
  tags : ``SequenceLabelField``
      A sequence of BIO tags for the NER classes.
  
  Note that the "/pt/" directory of the Onotonotes dataset representing annotations
  on the new and old testaments of the Bible are excluded, because they do not contain
  NER annotations.
  
  Parameters
  ----------
  token_indexers : ``Dict[str, TokenIndexer]``, optional
      We similarly use this for both the premise and the hypothesis.  See :class:`TokenIndexer`.
      Default is ``{"tokens": SingleIdTokenIndexer()}``.
  domain_identifier: ``str``, (default = None)
      A string denoting a sub-domain of the Ontonotes 5.0 dataset to use. If present, only
      conll files under paths containing this domain identifier will be processed.
  coding_scheme : ``str``, (default = None).
      The coding scheme to use for the NER labels. Valid options are "BIO" or "BIOUL".
  
  Returns
  -------
  A ``Dataset`` of ``Instances`` for Fine-Grained NER.
class_docstr_tok: ["This","DatasetReader","is","designed","to","read","in","the","English","OntoNotes","v5.0","data","for","fine-grained","named","entity","recognition",".","It","returns","a","dataset","of","instances","with","the","following","fields",":","tokens",":","``","TextField","``","The","tokens","in","the","sentence",".","tags",":","``","SequenceLabelField","``","A","sequence","of","BIO","tags","for","the","NER","classes",".","Note","that","the","``","\/pt\/","''","directory","of","the","Onotonotes","dataset","representing","annotations","on","the","new","and","old","testaments","of","the","Bible","are","excluded",",","because","they","do","not","contain","NER","annotations",".","Parameters","--","--","--","--","--","token_indexers",":","``","Dict","[","str",",","TokenIndexer","]","``",",","optional","We","similarly","use","this","for","both","the","premise","and","the","hypothesis",".","See",":","class",":","`","TokenIndexer","`",".","Default","is","``","{","``","tokens","''",":","SingleIdTokenIndexer","(",")","}","``",".","domain_identifier",":","``","str","``",",","(","default","=","None",")","A","string","denoting","a","sub-domain","of","the","Ontonotes","5.0","dataset","to","use",".","If","present",",","only","conll","files","under","paths","containing","this","domain","identifier","will","be","processed",".","coding_scheme",":","``","str","``",",","(","default","=","None",")",".","The","coding","scheme","to","use","for","the","NER","labels",".","Valid","options","are","``","BIO","''","or","``","BIOUL","''",".","Returns","--","--","--","-","A","``","Dataset","``","of","``","Instances","``","for","Fine-Grained","NER","."]
code: def _read(self, file_path):
      # if `file_path` is a URL, redirect to the cache
      file_path = cached_path(file_path)
      ontonotes_reader = Ontonotes()
      logger.info(
          "Reading Fine-Grained NER instances from dataset files at: %s",
          file_path,
      )
      if self._domain_identifier is not None:
          logger.info(
              "Filtering to only include file paths containing the %s domain",
              self._domain_identifier,
          )
  
      for sentence in self._ontonotes_subset(
          ontonotes_reader, file_path, self._domain_identifier
      ):
          tokens = [Token(_normalize_word(t)) for t in sentence.words]
          yield self.text_to_instance(tokens, sentence.named_entities)
  
file_path: magnitude/pymagnitude/third_party/allennlp/data/dataset_readers/ontonotes_ner.py
imports: from __future__ import absolute_import
  import logging
  from allennlp.common.file_utils import cached_path
  from allennlp.common.checks import ConfigurationError
  from allennlp.data.dataset_readers.dataset_reader import DatasetReader
  from allennlp.data.fields import Field, TextField, SequenceLabelField, MetadataField
  from allennlp.data.instance import Instance
  from allennlp.data.token_indexers import SingleIdTokenIndexer, TokenIndexer
  from allennlp.data.tokenizers import Token
  from allennlp.data.dataset_readers.dataset_utils import Ontonotes, OntonotesSentence, to_bioul
label_desc: Use image node_id 2 for calling the OntonotesNamedEntityRecognition obj's underlying member method code with example usage: obj._read(file_path) without return types