Skip to main content
Version: 0.96

snorkelflow.client.transfer

SDK functions for transferring assets between applications or nodes on a single Snorkel Flow instance.

Functions

convert_span_gt_csv_to_span_format(...[, ...])Convert exported span ground truth CSV files to old span format for backwards compatibility.
export_ground_truth(node, filepath[, is_context])Exports ground truth.
export_lfs(node, filepath[, active_only])Export LFs from a node to the specified filepath as a base64-encoded string.
export_node_data(node, dst_dir)Saves both the node's LFs and GT to the location specified by dst_dir.
export_tag_types(node[, ...])Export the tag types for a node, optionally to a file.
import_ground_truth(node, filepath[, ...])Import ground truth labels for any task type.
import_lfs(node, filepath[, merge_type])Import labeling functions from a source filepath to a destination node.
import_node_data(*, node, src_dir[, uid_col])Load labeling functions and ground truth labels from src_dir to node.
import_tag_types(node, all_tag_types_dict[, ...])Import tag_types.
transfer_annotations(node, from_node[, ...])Copies annotations from one node to another.
transfer_comments(node, from_node[, merge_type])Transfer comments from the node with ID from_node to the node with ID node.
transfer_gts(node, from_node[, ...])Copy ground truth from one node to another.
transfer_lfs(node, from_node[, ...])Copy all active LFs and packaged LFs from one node to another.
transfer_lfs_by_name(node, from_node[, ...])Copy active LFs and packaged LFs selectively from one node to another.
transfer_tags(node, from_node[, ...])Copy tags from from_node to node.