sgnlp
  • Quickstart
  • Advanced Tutorial
  • API Reference
    • models
      • csgec
      • emotion_entailment
      • lsr
      • rst_pointer
        • config
        • data_class
        • data_prep
        • eval
        • modeling
        • modules
        • postprocess
        • preprocess
        • train
        • utils
      • rumour_detection_twitter
      • sentic_gcn
      • span_extraction
      • ufd
    • utils
sgnlp
  • »
  • sgnlp »
  • models »
  • rst_pointer »
  • data_prep
  • View page source

data_prepΒΆ

Functions

contains_ambiguous_end_of_sentence

contains_end_of_sentence

contains_full_span

get_discourse_nodes_slice

get_edu_spans

get_relation_label_from_split

get_relation_label_index

get_sentence_edu_spans_from_discourse_tree_nodes

get_splits_order_label

This is used for training the parser.

get_tokenized_sentence_and_edu_breaks

is_leaf

main

normalize_nodes_slice

parse_discourse_tree

Parses the tree and returns 3 lists containing

parse_discourse_tree_helper

parse_discourse_tree_node

read_discourse_tree

read_edus

read_sentences

read_sentences_for_file_format

read_sentences_for_wsj_format

span_length

span_within

transform_discourse_tree_splits_relation_label

Next Previous

© Copyright 2021, AI Singapore.

Built with Sphinx using a theme provided by Read the Docs.