UCCA DB Documentation

ucca_db.api Module

Functions

external_write_mode(*args, **kwargs)
fromstring(text)
fromstring_xml(text[, parser]) Parse XML document from string constant.
get_by_xids(host_name, db_name, xids, **kwargs) Returns the passages that correspond to xids (which is a list of them)
get_connection(db_name, host_name) connects to the db and host, returns a connection object
get_cursor(host_name, db_name) create a cursor to the search path
get_most_recent_passage_by_uid(uid, …[, …])
get_most_recent_xids(host_name, db_name, …) Returns the most recent xids of the given username.
get_passage(host_name, db_name, pid) Returns the passages with the given id numbers
get_predicates(host_name, db_name[, …]) Returns a list of all the predicates in the UCCA corpus.
get_uid(host_name, db_name, username) Returns the uid matching the given username.
get_xml_trees(host_name, db_name, pid[, …]) Params: db, host, paragraph id, the list of usernames wanted, Optional: graceful: True if no excpetions are to be raised excpetion raised if a user did not submit an annotation for the passage returns a list of xml roots elements
get_xmls_by_username(host_name, db_name, …)
linkage_type(u) Returns the type of the primary linkage the scene participates in.
main(argv)
print_passages_to_file(host_name, db_name, paids) Returns for that user a list of submitted passages and a list of assigned but not submitted passages.
tostring(element[, encoding, method, …]) Generate string representation of XML element.
unit_length(u) Returns the number of terminals (excluding remote units and punctuations) that are descendants of the unit u.
write_to_db(host_name, db_name, xml, …[, …])

ucca_db.download Module

Functions

external_write_mode(*args, **kwargs)
get_by_method(method, id_field[, passage_id])
get_by_xids(host_name, db_name, xids, **kwargs) Returns the passages that correspond to xids (which is a list of them)
get_most_recent_passage_by_uid(uid, …[, …])
main(args)
tostring(element[, encoding, method, …]) Generate string representation of XML element.
write_passage(passage[, output_format, …]) Write a given UCCA passage in any format.

ucca_db.upload Module

Functions

get_passages_with_progress_bar(filename_patterns)
main(args)
tostring(element[, encoding, method, …]) Generate string representation of XML element.
upload_passage(xml_root[, site_filename, …])
write_to_db(host_name, db_name, xml, …[, …])