SYMBOL INDEX (416 symbols across 62 files) FILE: NewsSentiment/DatasetPreparer.py class DatasetPreparer (line 20) | class DatasetPreparer: method __init__ (line 21) | def __init__(self, name, basepath_datasets, task_format, human, non_hu... method get_filepath_by_name (line 64) | def get_filepath_by_name(self, filename): method file_to_dictlst (line 67) | def file_to_dictlst(self, filepath): method files_to_dictlst (line 75) | def files_to_dictlst(self, list_filepaths): method create_slices (line 81) | def create_slices(self, data_type): method merge_slices (line 122) | def merge_slices(self): method _get_label_counts (line 138) | def _get_label_counts(self, tasks): method print_set_info (line 153) | def print_set_info(self): method init_set (line 193) | def init_set(self, sets_info): method export (line 250) | def export(self, savepath): method poltsanews_rel801010_allhuman (line 275) | def poltsanews_rel801010_allhuman(cls, basepath): method poltsanews_crossval8010_allhuman (line 299) | def poltsanews_crossval8010_allhuman(cls, basepath): method acl14twitter (line 322) | def acl14twitter(cls, basepath): method semeval14laptops (line 346) | def semeval14laptops(cls, basepath): method semeval14restaurants (line 370) | def semeval14restaurants(cls, basepath): method newsmtsc_devtest_mt (line 394) | def newsmtsc_devtest_mt(cls, basepath): method newsmtsc_devtest_rw (line 417) | def newsmtsc_devtest_rw(cls, basepath): FILE: NewsSentiment/SentimentClasses.py class SentimentClasses (line 4) | class SentimentClasses: method initialize (line 10) | def initialize(sentiment_classes: dict): method get_num_classes (line 14) | def get_num_classes(): method __evaluate_boundary (line 18) | def __evaluate_boundary(given_value: float, boundary: tuple): method __evaluate_boundaries_of_class (line 35) | def __evaluate_boundaries_of_class( method __get_legacy_information (line 46) | def __get_legacy_information(): method get_sorted_expected_label_names (line 73) | def get_sorted_expected_label_names(): method get_sorted_expected_label_values (line 79) | def get_sorted_expected_label_values(): method get_polarity_associations (line 85) | def get_polarity_associations(): method get_polarity_associations_inverse (line 89) | def get_polarity_associations_inverse(): method __find_sentiment_class (line 93) | def __find_sentiment_class(polarity: float): method polarity2label (line 114) | def polarity2label(polarity: float) -> str: method polarity2normalized_polarity (line 123) | def polarity2normalized_polarity(polarity: float) -> int: method Sentiment3ForNewsMtsc (line 132) | def Sentiment3ForNewsMtsc(): method SentimentStrong3ForNewsMtsc (line 147) | def SentimentStrong3ForNewsMtsc(): method SentimentWeak3ForNewsMtsc (line 162) | def SentimentWeak3ForNewsMtsc(): FILE: NewsSentiment/consts.py function set_default_lm (line 11) | def set_default_lm(new_name: str): function get_default_lm (line 16) | def get_default_lm(): FILE: NewsSentiment/controller.py function start_worker (line 59) | def start_worker( function on_task_done (line 94) | def on_task_done(x): function on_task_error (line 103) | def on_task_error(x): function get_experiment_result_detailed (line 112) | def get_experiment_result_detailed(experiment_path): class SetupController (line 125) | class SetupController: method __init__ (line 126) | def __init__(self, options): method _apply_conditions (line 379) | def _apply_conditions(self, combinations, args_names_ordered, conditio... method _check_conditions (line 425) | def _check_conditions(self, arg_name, full_named_combination, conditio... method _build_args (line 452) | def _build_args(self, named_args): method _add_arg (line 459) | def _add_arg(self, args_list, name, value): method _prepare_experiment_env (line 464) | def _prepare_experiment_env(self, experiment_path): method _args_combination_to_single_arg_values (line 468) | def _args_combination_to_single_arg_values( method _experiment_named_id_from_named_combination (line 476) | def _experiment_named_id_from_named_combination(self, named_combination): method prepare_single_setup (line 479) | def prepare_single_setup(self, named_combination, experiment_id, pool_... method run (line 505) | def run(self): method _get_best_dev_snem (line 712) | def _get_best_dev_snem(self): method _get_running_processes (line 726) | def _get_running_processes(self, running_processes): FILE: NewsSentiment/converter_huggingface.py function convert_polarity (line 12) | def convert_polarity(polarity): function convert_target (line 23) | def convert_target(obj, target): function convert_obj (line 36) | def convert_obj(obj): function convert (line 46) | def convert(path): FILE: NewsSentiment/createoverview.py function rename_flatten (line 15) | def rename_flatten(dictionary, key_prefix): function without_keys (line 25) | def without_keys(d, keys): function non_scalar_to_str (line 29) | def non_scalar_to_str(d): function _find_run_ids (line 43) | def _find_run_ids(completed_tasks: dict): function _aggregate_and_mean (line 92) | def _aggregate_and_mean(df: pd.DataFrame): function _dfs_to_excel (line 117) | def _dfs_to_excel(pathname, name2df): function shelve2xlsx (line 128) | def shelve2xlsx(opt, ignore_graceful_exit_experiments): function jsonl2xlsx (line 168) | def jsonl2xlsx(opt): FILE: NewsSentiment/customexceptions.py class TooLongTextException (line 1) | class TooLongTextException(Exception): class TargetNotFoundException (line 5) | class TargetNotFoundException(Exception): FILE: NewsSentiment/dataset.py class RandomOversampler (line 60) | class RandomOversampler(torch.utils.data.sampler.Sampler): method __init__ (line 61) | def __init__(self, dataset: Dataset, random_seed=None): method __len__ (line 85) | def __len__(self): method __iter__ (line 88) | def __iter__(self): class FXEasyTokenizer (line 92) | class FXEasyTokenizer: method __init__ (line 98) | def __init__( method _get_labels (line 112) | def _get_labels(cls): method create_entire_text (line 127) | def create_entire_text( method create_entire_text (line 137) | def create_entire_text( method create_entire_text (line 146) | def create_entire_text( method prepare_left_segment (line 181) | def prepare_left_segment(text_left: str): method prepare_target_mention (line 194) | def prepare_target_mention(target_mention: str): method prepare_right_segment (line 203) | def prepare_right_segment(text_right: str): method _create_word_to_wordpiece_mapping (line 214) | def _create_word_to_wordpiece_mapping( method _batch_create_word_to_wordpiece_mapping (line 222) | def _batch_create_word_to_wordpiece_mapping( method _calculate_dep_matrix (line 293) | def _calculate_dep_matrix(self, text_tokens, text_tokens_as_str): method _calculate_dep_distance (line 339) | def _calculate_dep_distance(self, text_tokens, text_left_len, target): method _create_target_mask (line 414) | def _create_target_mask( method _batch_create_target_mask (line 449) | def _batch_create_target_mask( method _encode_for_target_mask (line 481) | def _encode_for_target_mask( method _create_target_mask_on_encoding (line 503) | def _create_target_mask_on_encoding( method _create_knowledge_source_tensor (line 608) | def _create_knowledge_source_tensor( method _create_mapping_from_tokenbased_to_wordpiece_based (line 652) | def _create_mapping_from_tokenbased_to_wordpiece_based(self, text, tok... method _batch_create_mapping_from_tokenbased_to_wordpiece_based (line 658) | def _batch_create_mapping_from_tokenbased_to_wordpiece_based(self, tex... method _convert_non_null_to_one (line 688) | def _convert_non_null_to_one(self, lst): method _map_token_index_to_wordpiece_index (line 697) | def _map_token_index_to_wordpiece_index(self, a, b): method _create_dependency_tensor (line 703) | def _create_dependency_tensor( method _create_dependency_tree_hop_distances_of_tokens_to_target (line 765) | def _create_dependency_tree_hop_distances_of_tokens_to_target( method create_model_input_seqs (line 819) | def create_model_input_seqs( method batch_create_model_input_seqs (line 847) | def batch_create_model_input_seqs( method batch_create_model_input_seqs (line 855) | def batch_create_model_input_seqs( method batch_create_model_input_seqs (line 862) | def batch_create_model_input_seqs( method _create_coreferential_target_masks (line 1120) | def _create_coreferential_target_masks( method _batch_create_coreferential_target_masks (line 1127) | def _batch_create_coreferential_target_masks( method _merge_coref_target_masks_into_preferred_target_mask (line 1154) | def _merge_coref_target_masks_into_preferred_target_mask( class FXDataset (line 1184) | class FXDataset(Dataset): method __init__ (line 1189) | def __init__( method __prepare_text_field (line 1258) | def __prepare_text_field(self, text: str): method __create_target_text_components (line 1267) | def __create_target_text_components( method __parse_dataset_row (line 1293) | def __parse_dataset_row(self, task, ignore_parsing_errors): method _create_target_inputs (line 1335) | def _create_target_inputs( method _create_fillup_target (line 1430) | def _create_fillup_target(self): method _get_as_list (line 1442) | def _get_as_list(self, lst_inputs_of_targets: List[dict], key: str): method _get_values_as_lists_in_dict (line 1455) | def _get_values_as_lists_in_dict( method _convert_multi_targets_in_single_item_to_single_target_in_multi_items (line 1463) | def _convert_multi_targets_in_single_item_to_single_target_in_multi_it... method _convert_multi_targets_in_single_item_to_k_targets_in_multi_items (line 1482) | def _convert_multi_targets_in_single_item_to_k_targets_in_multi_items( method _create_item_for_model (line 1549) | def _create_item_for_model(self, example_id, text, targets): method create_virtual_target_from_target_mention (line 1614) | def create_virtual_target_from_target_mention(self, target, mention, t... method _expand_coref_mentions_of_targets_to_multiple_targets (line 1636) | def _expand_coref_mentions_of_targets_to_multiple_targets( method task_to_dataset_item (line 1652) | def task_to_dataset_item(self, task, coref_mode: str, ignore_parsing_e... method __getitem__ (line 1704) | def __getitem__(self, index): method __len__ (line 1707) | def __len__(self): method set_params2index (line 1711) | def set_params2index(params2index: dict): method get_input_by_params (line 1719) | def get_input_by_params(inputs: List, weight_name: str, field_name: str): method get_all_inputs_for_model (line 1739) | def get_all_inputs_for_model(inputs: List, model_class: FXBaseModel): method _stack_target_inputs (line 1747) | def _stack_target_inputs(self, lst_inputs_of_targets: List[dict]) -> d... method _stack_special_field (line 1793) | def _stack_special_field(self, key: str, lst_inputs_of_targets: List[d... method _stack_or_create_tensor (line 1821) | def _stack_or_create_tensor(self, lst_values: List): FILE: NewsSentiment/diskdict.py class DiskDict (line 10) | class DiskDict(dict): method __init__ (line 11) | def __init__(self, sync_path: Union[Path, str]): method sync_to_disk (line 24) | def sync_to_disk(self): FILE: NewsSentiment/download.py class Download (line 12) | class Download: method __init__ (line 14) | def __init__( method list_versions (line 40) | def list_versions(model_cls, own_model_name=""): method download (line 53) | def download(cls, model_cls, version=None, force=False, skip_if_exists... method model_filename (line 67) | def model_filename(model_cls, version=None): method model_path (line 76) | def model_path(cls, model_cls, version=None): method add_subparser (line 83) | def add_subparser(subparser): method run_from_parser (line 105) | def run_from_parser(cls, args_namespace): FILE: NewsSentiment/earlystopping.py class EarlyStopping (line 8) | class EarlyStopping: method __init__ (line 11) | def __init__(self, patience=2, delta=0.01): method __call__ (line 29) | def __call__(self, dev_score): FILE: NewsSentiment/evaluator.py class Evaluator (line 14) | class Evaluator: method __init__ (line 15) | def __init__( method mean_from_all_statistics (line 36) | def mean_from_all_statistics(self, all_test_stats): method calc_statistics (line 59) | def calc_statistics(self, y_true, y_pred, y_pred_confidence): method print_stats (line 180) | def print_stats(self, stats, description): method write_error_table (line 198) | def write_error_table(self, y_true, y_pred, texts_list, filepath): FILE: NewsSentiment/fxlogger.py function get_logger (line 6) | def get_logger(): FILE: NewsSentiment/infer.py class TargetSentimentClassifier (line 21) | class TargetSentimentClassifier: method __init__ (line 22) | def __init__( method infer_from_text (line 73) | def infer_from_text(self, left, target, right): method infer (line 89) | def infer( method infer (line 104) | def infer( method infer (line 119) | def infer( method infer (line 133) | def infer( method batch_infer (line 221) | def batch_infer( method get_info_for_label (line 308) | def get_info_for_label(self, classification_result, label): function parse_arguments (line 315) | def parse_arguments(override_args=False): FILE: NewsSentiment/inferrest.py function index (line 11) | def index(): function start_rest_server (line 22) | def start_rest_server(port=13273): FILE: NewsSentiment/knowledge/bingliuopinion/bingliuopinion.py function get_num_bingliu_polarities (line 14) | def get_num_bingliu_polarities(): function get_bingliu_polarities_as_tensor (line 18) | def get_bingliu_polarities_as_tensor(term: str): FILE: NewsSentiment/knowledge/bingliuopinion/converter.py function convert_single_txt_to_dict (line 21) | def convert_single_txt_to_dict(path: Path): function convert_txt_to_dict (line 32) | def convert_txt_to_dict(): FILE: NewsSentiment/knowledge/knowledgeutils.py function find_key_original_or_lc (line 1) | def find_key_original_or_lc(data: dict, data_keys_lower: dict, key: str): FILE: NewsSentiment/knowledge/liwc/dic.py function _parse_categories (line 1) | def _parse_categories(lines): function _parse_lexicon (line 17) | def _parse_lexicon(lines, category_mapping): function read_dic (line 29) | def read_dic(filepath): FILE: NewsSentiment/knowledge/liwc/liwc.py function get_num_liwc_categories (line 12) | def get_num_liwc_categories(): function get_liwc_categories_as_tensor (line 16) | def get_liwc_categories_as_tensor(term: str): FILE: NewsSentiment/knowledge/liwc/liwchelper.py function load_token_parser (line 12) | def load_token_parser(filepath="knowledge/liwc/data/LIWC2015_English.dic"): FILE: NewsSentiment/knowledge/liwc/trie.py function build_trie (line 1) | def build_trie(lexicon): function search_trie (line 22) | def search_trie(trie, token, token_i=0): FILE: NewsSentiment/knowledge/mpqasubjectivity/converter.py function get_value (line 22) | def get_value(entry_key_value: str): function convert_txt_to_dict (line 26) | def convert_txt_to_dict(): FILE: NewsSentiment/knowledge/mpqasubjectivity/mpqasubjectivity.py function get_num_mpqa_subjectivity_polarities (line 14) | def get_num_mpqa_subjectivity_polarities(): function get_mpqa_subjectivity_polarities_as_tensor (line 18) | def get_mpqa_subjectivity_polarities_as_tensor(term: str): FILE: NewsSentiment/knowledge/nrcemolex/converter.py function convert_txt_to_dict (line 27) | def convert_txt_to_dict(): FILE: NewsSentiment/knowledge/nrcemolex/nrcemolex.py function get_num_nrc_emotions (line 14) | def get_num_nrc_emotions(): function get_nrc_emotions_as_tensor (line 18) | def get_nrc_emotions_as_tensor(term: str): FILE: NewsSentiment/knowledge/zeros/zerosknowledge.py function get_num_zero_dimensions (line 4) | def get_num_zero_dimensions(): function get_zeros_as_tensor (line 13) | def get_zeros_as_tensor(term: str): FILE: NewsSentiment/layers/AggregatorForBert.py class AggregatorForBert (line 5) | class AggregatorForBert(nn.Module): method __init__ (line 12) | def __init__(self, spc_lm_representation: str): method forward (line 16) | def forward(self, last_hidden_state, pooler_output, all_hidden_states): FILE: NewsSentiment/layers/attention.py class Attention (line 13) | class Attention(nn.Module): method __init__ (line 14) | def __init__( method reset_parameters (line 52) | def reset_parameters(self): method forward (line 57) | def forward(self, k, q): class NoQueryAttention (line 103) | class NoQueryAttention(Attention): method __init__ (line 106) | def __init__( method reset_q (line 123) | def reset_q(self): method forward (line 127) | def forward(self, k, **kwargs): class FXBertSelfAttention (line 133) | class FXBertSelfAttention(nn.Module): method __init__ (line 139) | def __init__(self, hidden_size, num_attention_heads, attention_probs_d... method transpose_for_scores (line 157) | def transpose_for_scores(self, x): method forward (line 162) | def forward( FILE: NewsSentiment/layers/dynamic_rnn.py class DynamicLSTM (line 11) | class DynamicLSTM(nn.Module): method __init__ (line 12) | def __init__(self, input_size, hidden_size, num_layers=1, bias=True, b... method forward (line 51) | def forward(self, x, x_len): FILE: NewsSentiment/layers/point_wise_feed_forward.py class PositionwiseFeedForward (line 9) | class PositionwiseFeedForward(nn.Module): method __init__ (line 11) | def __init__(self, d_hid, d_inner_hid=None, dropout=0): method forward (line 20) | def forward(self, x): FILE: NewsSentiment/layers/pytorchnlpattention.py class ClassicAttention (line 5) | class ClassicAttention(nn.Module): method __init__ (line 31) | def __init__(self, dimensions, attention_type="general"): method forward (line 45) | def forward(self, query, context): FILE: NewsSentiment/layers/squeeze_embedding.py class SqueezeEmbedding (line 11) | class SqueezeEmbedding(nn.Module): method __init__ (line 15) | def __init__(self, batch_first=True): method forward (line 19) | def forward(self, x, x_len): FILE: NewsSentiment/losses/crossentropycrossweight.py class CrossEntropyLoss_CrossWeight (line 8) | class CrossEntropyLoss_CrossWeight(nn.Module): method __init__ (line 9) | def __init__(self, device, ignore_index, weight=None, crossloss_weight... method forward (line 19) | def forward( FILE: NewsSentiment/losses/crossentropylosslsr.py class CrossEntropyLoss_LSR (line 9) | class CrossEntropyLoss_LSR(nn.Module): method __init__ (line 10) | def __init__(self, device, smoothing_value=0.2, weight=None): method _create_smooth_one_hot_for_true_targets (line 17) | def _create_smooth_one_hot_for_true_targets( method forward (line 67) | def forward( FILE: NewsSentiment/losses/crossentropylosswithconfidence.py class CrossEntropyLossWithConfidence (line 5) | class CrossEntropyLossWithConfidence(nn.Module): method __init__ (line 6) | def __init__(self, weight, ignore_index): method forward (line 14) | def forward(self, predictions: torch.Tensor, labels: torch.Tensor): FILE: NewsSentiment/losses/seq2seqloss.py class SequenceLoss (line 7) | class SequenceLoss(nn.Module): method __init__ (line 12) | def __init__(self, device, weight): method forward (line 22) | def forward( FILE: NewsSentiment/models/FXBaseModel.py class FXBaseModel (line 20) | class FXBaseModel(PreTrainedModel): method __init__ (line 21) | def __init__(self, *args, **kwargs): method get_language_models (line 26) | def get_language_models(): method get_input_field_ids (line 31) | def get_input_field_ids(): method invoke_language_model (line 34) | def invoke_language_model(self, lm, input_ids, token_type_ids=None): function provide_pretrained (line 59) | def provide_pretrained(version, pretrained_url): function default_pretrained (line 80) | def default_pretrained(version): function model_includes_pretrained (line 104) | def model_includes_pretrained(model): function __get_pretrained_wrapper_class (line 122) | def __get_pretrained_wrapper_class(base_class): FILE: NewsSentiment/models/FXEnsemble.py class FXEnsemble (line 12) | class FXEnsemble(FXBaseModel): method get_language_models (line 14) | def get_language_models(): method get_input_field_ids (line 22) | def get_input_field_ids(): method __init__ (line 32) | def __init__(self, transformer_models: Dict, opt: Namespace): method _combine_text_out_with_target_mask (line 56) | def _combine_text_out_with_target_mask( method forward (line 68) | def forward(self, inputs: List): FILE: NewsSentiment/models/ensemble.py class EnsembleTopA (line 11) | class EnsembleTopA(FXBaseModel): method get_language_models (line 13) | def get_language_models(): method get_input_field_ids (line 17) | def get_input_field_ids(): method __init__ (line 32) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 50) | def forward(self, inputs: List): FILE: NewsSentiment/models/ensembleb.py class EnsembleTopB (line 11) | class EnsembleTopB(FXBaseModel): method get_language_models (line 13) | def get_language_models(): method get_input_field_ids (line 17) | def get_input_field_ids(): method __init__ (line 32) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 46) | def forward(self, inputs: List): FILE: NewsSentiment/models/multitargets/contrasting.py class Contrasting (line 12) | class Contrasting(FXBaseModel): method get_language_models (line 25) | def get_language_models(): method get_input_field_ids (line 29) | def get_input_field_ids(): method __init__ (line 35) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 45) | def forward(self, inputs): FILE: NewsSentiment/models/multitargets/random_multi.py class RandomMulti (line 12) | class RandomMulti(FXBaseModel): method get_language_models (line 18) | def get_language_models(): method get_input_field_ids (line 27) | def get_input_field_ids(): method __init__ (line 33) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 37) | def forward(self, inputs): FILE: NewsSentiment/models/multitargets/seq2seq.py class SeqTwoSeq (line 12) | class SeqTwoSeq(FXBaseModel): method get_language_models (line 19) | def get_language_models(): method get_input_field_ids (line 23) | def get_input_field_ids(): method __init__ (line 29) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 42) | def forward(self, inputs): FILE: NewsSentiment/models/multitargets/seq2seq_without_targetmask.py class SeqTwoSeqWithoutTargetMask (line 12) | class SeqTwoSeqWithoutTargetMask(FXBaseModel): method get_language_models (line 19) | def get_language_models(): method get_input_field_ids (line 23) | def get_input_field_ids(): method __init__ (line 29) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 41) | def forward(self, inputs): FILE: NewsSentiment/models/multitargets/tdbertlikemultitarget.py class TDBertLikeMultiTarget (line 11) | class TDBertLikeMultiTarget(FXBaseModel): method get_language_models (line 24) | def get_language_models(): method get_input_field_ids (line 28) | def get_input_field_ids(): method __init__ (line 38) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 46) | def forward(self, inputs): FILE: NewsSentiment/models/multitargets/tdbertlikemultitarget_dense.py class TDBertLikeMultiTargetDense (line 11) | class TDBertLikeMultiTargetDense(FXBaseModel): method get_language_models (line 24) | def get_language_models(): method get_input_field_ids (line 28) | def get_input_field_ids(): method __init__ (line 34) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 45) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/aen.py class AEN_Base (line 20) | class AEN_Base(FXBaseModel): method get_language_models (line 22) | def get_language_models(): method get_input_field_ids (line 26) | def get_input_field_ids(): method __init__ (line 33) | def __init__(self, transformer_models: Dict, opt: Namespace): method apply_lm (line 70) | def apply_lm(self, _input, _input_attention=None): method forward (line 113) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/grutscsingle.py class GRUTSCSingle (line 21) | class GRUTSCSingle(FXBaseModel): method get_language_models (line 37) | def get_language_models(): method get_input_field_ids (line 41) | def get_input_field_ids(): method __init__ (line 60) | def __init__( method forward (line 96) | def forward(self, inputs, is_return_ensemble_values: bool = False): FILE: NewsSentiment/models/singletarget/lcf.py class GlobalContext (line 15) | class GlobalContext(nn.Module): method __init__ (line 16) | def __init__(self, global_context_seqs_per_doc): method forward (line 20) | def forward(self, inputs): class SelfAttention (line 24) | class SelfAttention(nn.Module): method __init__ (line 25) | def __init__(self, config, opt): method forward (line 32) | def forward(self, inputs): class LCF_BERT (line 41) | class LCF_BERT(FXBaseModel): method get_language_models (line 43) | def get_language_models(): method get_input_field_ids (line 47) | def get_input_field_ids(): method __init__ (line 59) | def __init__(self, transformer_models: Dict, opt: Namespace): method feature_dynamic_mask (line 86) | def feature_dynamic_mask(self, text_local_indices, aspect_indices): method feature_dynamic_weighted (line 119) | def feature_dynamic_weighted(self, text_local_indices, aspect_indices): method forward (line 152) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/lcf2.py class GlobalContext (line 18) | class GlobalContext(nn.Module): method __init__ (line 19) | def __init__(self, global_context_seqs_per_doc): method forward (line 23) | def forward(self, inputs): class SelfAttention (line 27) | class SelfAttention(nn.Module): method __init__ (line 28) | def __init__(self, config, opt): method forward (line 39) | def forward(self, inputs): class LCF_BERT2Dual (line 48) | class LCF_BERT2Dual(FXBaseModel): method get_language_models (line 57) | def get_language_models(): method get_input_field_ids (line 61) | def get_input_field_ids(): method __init__ (line 73) | def __init__(self, transformer_models: Dict, opt: Namespace): method feature_dynamic_mask (line 94) | def feature_dynamic_mask(self, text_local_indices, aspect_indices): method feature_dynamic_weighted (line 127) | def feature_dynamic_weighted(self, text_local_indices, aspect_indices): method forward (line 160) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/lcfs.py class PointwiseFeedForward (line 16) | class PointwiseFeedForward(nn.Module): method __init__ (line 21) | def __init__(self, d_hid, d_inner_hid=None, d_out=None, dropout=0): method forward (line 32) | def forward(self, x): class SelfAttention (line 39) | class SelfAttention(nn.Module): method __init__ (line 40) | def __init__(self, config, opt): method forward (line 47) | def forward(self, inputs): class LCFS_BERT (line 56) | class LCFS_BERT(FXBaseModel): method get_language_models (line 58) | def get_language_models(): method get_input_field_ids (line 62) | def get_input_field_ids(): method __init__ (line 75) | def __init__(self, transformer_models: Dict, opt: Namespace): method feature_dynamic_mask (line 102) | def feature_dynamic_mask(self, text_local_indices, aspect_indices, dis... method feature_dynamic_weighted (line 148) | def feature_dynamic_weighted( method forward (line 201) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/lcfst.py class PointwiseFeedForward (line 17) | class PointwiseFeedForward(nn.Module): method __init__ (line 22) | def __init__(self, d_hid, d_inner_hid=None, d_out=None, dropout=0): method forward (line 33) | def forward(self, x): class SelfAttention (line 40) | class SelfAttention(nn.Module): method __init__ (line 41) | def __init__(self, config, opt): method forward (line 48) | def forward(self, inputs): class LCFST_BERT (line 57) | class LCFST_BERT(FXBaseModel): method get_language_models (line 59) | def get_language_models(): method get_input_field_ids (line 63) | def get_input_field_ids(): method __init__ (line 77) | def __init__(self, transformer_models: Dict, opt: Namespace): method feature_dynamic_mask (line 108) | def feature_dynamic_mask(self, text_local_indices, aspect_indices, dis... method feature_dynamic_weighted (line 154) | def feature_dynamic_weighted( method forward (line 207) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/lcft.py class PointwiseFeedForward (line 16) | class PointwiseFeedForward(nn.Module): method __init__ (line 21) | def __init__(self, d_hid, d_inner_hid=None, d_out=None, dropout=0): method forward (line 32) | def forward(self, x): class SelfAttention (line 39) | class SelfAttention(nn.Module): method __init__ (line 40) | def __init__(self, config, opt): method forward (line 47) | def forward(self, inputs): class LCFT_BERT (line 56) | class LCFT_BERT(FXBaseModel): method get_language_models (line 58) | def get_language_models(): method get_input_field_ids (line 62) | def get_input_field_ids(): method __init__ (line 75) | def __init__(self, transformer_models: Dict, opt: Namespace): method feature_dynamic_mask (line 106) | def feature_dynamic_mask(self, text_local_indices, aspect_indices, dis... method feature_dynamic_weighted (line 152) | def feature_dynamic_weighted( method forward (line 205) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/notargetcls.py class NoTargetClsBert (line 12) | class NoTargetClsBert(FXBaseModel): method get_language_models (line 14) | def get_language_models(): method get_input_field_ids (line 18) | def get_input_field_ids(): method __init__ (line 24) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 33) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/random_single.py class RandomSingle (line 12) | class RandomSingle(FXBaseModel): method get_language_models (line 18) | def get_language_models(): method get_input_field_ids (line 27) | def get_input_field_ids(): method __init__ (line 33) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 37) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/spc.py class SPC_Base (line 12) | class SPC_Base(FXBaseModel): method get_language_models (line 14) | def get_language_models(): method get_input_field_ids (line 18) | def get_input_field_ids(): method __init__ (line 28) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 37) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/td_bert.py class TD_BERT (line 18) | class TD_BERT(FXBaseModel): method get_language_models (line 20) | def get_language_models(): method get_input_field_ids (line 24) | def get_input_field_ids(): method __init__ (line 30) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 37) | def forward(self, inputs, is_return_ensemble_values: bool = False): FILE: NewsSentiment/models/singletarget/td_bert_qa.py class TD_BERT_QA_MUL (line 14) | class TD_BERT_QA_MUL(FXBaseModel): method get_language_models (line 16) | def get_language_models(): method get_input_field_ids (line 20) | def get_input_field_ids(): method __init__ (line 26) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 34) | def forward(self, inputs): class TD_BERT_QA_CON (line 75) | class TD_BERT_QA_CON(FXBaseModel): method get_language_models (line 77) | def get_language_models(): method get_input_field_ids (line 81) | def get_input_field_ids(): method __init__ (line 87) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 95) | def forward(self, inputs): FILE: NewsSentiment/models/singletarget/tdbertlikesingle.py class TDBertLikeSingle (line 12) | class TDBertLikeSingle(FXBaseModel): method get_language_models (line 27) | def get_language_models(): method get_input_field_ids (line 31) | def get_input_field_ids(): method __init__ (line 37) | def __init__(self, transformer_models: Dict, opt: Namespace): method forward (line 45) | def forward(self, inputs): FILE: NewsSentiment/plotter_utils.py function create_save_plotted_confusion_matrix (line 12) | def create_save_plotted_confusion_matrix(conf_matrix, expected_labels, b... function plot_confusion_matrix (line 19) | def plot_confusion_matrix(cm, classes, normalize=False, title=None, cmap... FILE: NewsSentiment/train.py class Instructor (line 117) | class Instructor: method __init__ (line 118) | def __init__(self, opt): method _load_dataset (line 183) | def _load_dataset(self, path, coref_mode): method load_datasets (line 197) | def load_datasets(self): method _print_args (line 223) | def _print_args(self): method create_transformer_model (line 240) | def create_transformer_model( method _reset_params_of_own_model (line 279) | def _reset_params_of_own_model(self): method _create_prepare_model_path_to_store_state_dict (line 292) | def _create_prepare_model_path_to_store_state_dict(self, snem, epoch): method select_inputs (line 308) | def select_inputs(self, sample_batched, is_single_item=False): method _train (line 344) | def _train(self, criterion, optimizer, train_data_loader, dev_data_loa... method _intraining_evaluation_and_model_save (line 528) | def _intraining_evaluation_and_model_save( method save_pretrained_model (line 555) | def save_pretrained_model( method _save_model_state_dict (line 573) | def _save_model_state_dict(self, early_stopping, epoch: int, dev_stats): method _get_classes_from_sequence_output (line 654) | def _get_classes_from_sequence_output( method _evaluate (line 701) | def _evaluate(self, data_loader, get_examples=False, basepath=None): method get_normalized_inv_class_frequencies (line 787) | def get_normalized_inv_class_frequencies(self): method _is_random_model (line 799) | def _is_random_model(self): method run (line 802) | def run(self): method get_serializable_stats (line 892) | def get_serializable_stats(self, stats): method get_serializable_opts (line 898) | def get_serializable_opts(self): method perform_post_training_actions (line 906) | def perform_post_training_actions( function str2bool (line 968) | def str2bool(v): function _setup_cuda (line 979) | def _setup_cuda(opt): function _die_gracefully (line 1008) | def _die_gracefully(reason: str): function check_arguments (line 1015) | def check_arguments(opt): function post_process_arguments (line 1080) | def post_process_arguments(opt): function prepare_and_start_instructor (line 1118) | def prepare_and_start_instructor(opt): function parse_arguments (line 1222) | def parse_arguments(override_args=False, overwrite_logging_level=None):