code: def get_example_extractions(fname):
      "Get extractions from one of the examples in `cag_examples`."
      with open(fname, 'r') as f:
          sentences = f.read().splitlines()
      rdf_xml_dict = {}
      for sentence in sentences:
          logger.info("Reading \"%s\"..." % sentence)
          html = tc.send_query(sentence, 'cwms')
          try:
              rdf_xml_dict[sentence] = tc.get_xml(html, 'rdf:RDF',
                                                  fail_if_empty=True)
          except AssertionError as e:
              logger.error("Got error for %s." % sentence)
              logger.exception(e)
      return rdf_xml_dicf get_example_extractions(fname):
      "Get extractions from one of the examples in `cag_examples`."
      with open(fname, 'r') as f:
          sentences = f.read().splitlines()
      rdf_xml_dict = {}
      for sentence in sentences:
          logger.info("Reading \"%s\"..." % sentence)
          html = tc.send_query(sentence, 'cwms')
          try:
              rdf_xml_dict[sentence] = tc.get_xml(html, 'rdf:RDF',
                                                  fail_if_empty=True)
          except AssertionError as e:
              logger.error("Got error for %s." % sentence)
              logger.exception(e)
      return rdf_xml_dict
docs: Get extractions from one of the examples in `cag_examples`.