print_passages_to_file¶

ucca_db.api.print_passages_to_file(host_name, db_name, paids, write_xml=False, write_site_xml=False, prefix='', start_index=0)[source]¶

Returns for that user a list of submitted passages and a list of assigned but not submitted passages. Each passage is given in the format: (<passage ID>, <source>, <recent submitted xid or -1 if not submitted>, <number of tokens in the passage>, <number of units in the passage>, <number of scenes in the passage>, <average length of a scene>). It also returns a distribution of the categories. write_xml: determines whether to write it to a file, named <prefix><the number of the xml>.xml skip_first: the index of the passage where it should start looking (the ones before are skipped)

UCCA

Navigation

Contents:

  • API Documentation
  • Scripts Documentation
  • UCCA DB Documentation
    • ucca_db.api Module
    • ucca_db.download Module
    • ucca_db.upload Module
  • UCCA-App API Documentation

Related Topics

  • Documentation overview
    • UCCA DB Documentation
      • Previous: main

Quick search

©2018, Daniel Hershcovich. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source