MCPcopy Create free account

hub / github.com/LHRLAB/ChatKBQA / functions

Functions419 in github.com/LHRLAB/ChatKBQA

Functionconvert_parse_instance
convert a webqsp parse instance to a s_expr
parse_sparql_webqsp.py:607
Functioncreate_chat_completion
(request: ChatCompletionRequest)
LLMs/LLaMA/src/llmtuner/api/app.py:49
Methodcreate_consistent_identification_sets
(identified_entities)
entity_retrieval/aqqu_entity_linker.py:424
Functioncreate_web_demo
()
LLMs/LLaMA/src/llmtuner/webui/interface.py:58
Functiondump_to_bin
(obj, fname)
components/utils.py:10
Methodemit
(self, record)
LLMs/LLaMA/src/llmtuner/extras/logging.py:14
Functionexecute_webq_s_expr
(s_expr)
parse_sparql_webqsp.py:629
Functionextract_entities
(expr)
components/expr_parser.py:10
Functionextract_macro_template_from_instance
(parse)
parse_sparql_webqsp.py:810
Functionextract_mentioned_entities_from_sexpr
(expr:str)
components/utils.py:59
Functionextract_mentioned_relations_from_sexpr
(sexpr:str)
components/utils.py:99
Functionextract_relations
(expr)
components/expr_parser.py:15
Methodforward
(self, x: torch.Tensor)
LLMs/LLaMA/src/llmtuner/tuner/core/utils.py:68
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
LLMs/LLaMA/src/llmtuner/extras/patches/llama_patch.py:21
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
LLMs/LLaMA/src/llmtuner/extras/patches/llama_patch.py:110
Functionfreebase_query_entity_type_with_odbc
(entities_path, output_path)
executor/sparql_executor.py:1070
Functionfreebase_relations_post_process
(input_path, output_path)
executor/sparql_executor.py:1146
Methodgen_label
(self, lang: str)
LLMs/LLaMA/src/llmtuner/webui/manager.py:36
Functiongen_plot
(base_model: str, finetuning_type: str, output_dir: str)
LLMs/LLaMA/src/llmtuner/webui/utils.py:92
Functionget_1hop_relations_with_odbc
(entity)
executor/sparql_executor.py:929
Functionget_2hop_relations_with_odbc
(entity: str)
executor/sparql_executor.py:250
Functionget_all_unique_candidate_entities
Get unique candidate entity ids of {dataset}
data_process.py:210
Functionget_candidate_unique_entities_cwq
()
data_process.py:667
Functionget_entities_in_out_relations
(dataset,unique_candidate_entities)
data_process.py:251
Methodget_entity_for_mid
Returns the entity object for the MID or None if the MID is unknown. Forwards to surface index. :param mid: :return:
entity_retrieval/aqqu_entity_linker.py:174
Methodget_entity_for_mid
Returns the entity object for the MID or None if the MID is unknown. :param mid: :return:
entity_retrieval/surface_index_memory.py:141
Functionget_freebase_mid_from_wikiID
(wikiID: int)
executor/sparql_executor.py:970
Functionget_freebase_relations_with_odbc
Get all relations of Freebase
executor/sparql_executor.py:1107
Functionget_in_relations
(entity: str)
executor/sparql_executor.py:117
Functionget_label
Get the label of an entity in Freebase
executor/sparql_executor.py:751
Functionget_lisp_from_graph_query
(graph_query)
executor/logic_form_util_cwq.py:363
Functionget_lisp_from_graph_query
(graph_query)
executor/logic_form_util.py:363
Functionget_merged_disambiguated_entities
Get disambiguated entities by entity retrievers (one entity for one mention)
data_process.py:387
Functionget_model_class
(args)
config.py:218
Functionget_out_relations
(entity: str)
executor/sparql_executor.py:147
Functionget_preview
( dataset_dir: str, dataset: list, start: Optional[int] = 0, end: Optional[int] = 2 )
LLMs/LLaMA/src/llmtuner/webui/utils.py:50
Functionget_template
(model_name: str)
LLMs/LLaMA/src/llmtuner/webui/common.py:51
Functiongraph_to_logical_form
(G, start, count: bool = False)
executor/logic_form_util_cwq.py:238
Functiongraph_to_logical_form
(G, start, count: bool = False)
executor/logic_form_util.py:238
Methodidentify_dates
Identify entities representing dates in the tokens. :param tokens: :return:
entity_retrieval/aqqu_entity_linker.py:292
Methodidentify_entities_in_tokens
Identify instances in the tokens. :param tokens: A list of string tokens. :return: A list of tuples (i, j, e, score) for an i
entity_retrieval/aqqu_entity_linker.py:311
Functionlifespan
(app: FastAPI)
LLMs/LLaMA/src/llmtuner/api/app.py:27
Functionlisp_to_lambda
(expressions: Union[List[str], str])
executor/logic_form_util_cwq.py:740
Functionlisp_to_lambda
(expressions: Union[List[str], str])
executor/logic_form_util.py:738
Functionlist_checkpoint
(model_name: str, finetuning_type: str)
LLMs/LLaMA/src/llmtuner/webui/common.py:57
Functionlist_models
()
LLMs/LLaMA/src/llmtuner/api/app.py:44
Functionload_bin
(fname)
components/utils.py:15
Methodload_from_json
r"""Creates an instance from the content of `json_path`.
LLMs/LLaMA/src/llmtuner/hparams/finetuning_args.py:83
Methodload_model
( self, lang: str, model_name: str, checkpoints: List[str], finetuning
LLMs/LLaMA/src/llmtuner/webui/chat.py:21
Functionload_untrained_model
(args)
config.py:197
Methodlogical_form_with_type
(self)
components/expr_parser.py:82
Functionmake_inputs_require_grad
(module, input, output)
LLMs/LLaMA/src/llmtuner/tuner/core/utils.py:55
Functionmkdir_f
(prefix)
components/utils.py:34
Functionmkdir_p
(prefix)
components/utils.py:40
Functionmulti_edge_match
(e1, e2)
executor/logic_form_util_cwq.py:108
Functionmulti_edge_match
(e1, e2)
executor/logic_form_util.py:108
Functionnode_match
(n1, n2)
executor/logic_form_util_cwq.py:88
Functionnode_match
(n1, n2)
executor/logic_form_util.py:88
Methodon_evaluate
r""" Event called after an evaluation phase.
LLMs/LLaMA/src/llmtuner/extras/callbacks.py:101
Methodon_predict
r""" Event called after a successful prediction.
LLMs/LLaMA/src/llmtuner/extras/callbacks.py:109
Methodon_prediction_step
r""" Event called after a prediction step.
LLMs/LLaMA/src/llmtuner/extras/callbacks.py:141
Methodon_substep_end
r""" Event called at the end of an substep during gradient accumulation.
LLMs/LLaMA/src/llmtuner/extras/callbacks.py:82
Methodon_train_end
r""" Event called at the end of training.
LLMs/LLaMA/src/llmtuner/extras/callbacks.py:32
Methodoverlaps
Check whether the other identified entity overlaps this one.
entity_retrieval/aqqu_entity_linker.py:132
Methodprediction_step
r""" Removes the prompt part in the generated tokens. Subclass and override to inject custom behavior.
LLMs/LLaMA/src/llmtuner/tuner/sft/trainer.py:24
Methodprefixed_sparql_name
Returns an id with sparql prefix.
entity_retrieval/aqqu_entity_linker.py:25
Methodprefixed_sparql_name
(self, prefix)
entity_retrieval/aqqu_entity_linker.py:45
Methodprefixed_sparql_name
(self, prefix)
entity_retrieval/aqqu_entity_linker.py:90
Methodprefixed_sparql_name
(self, prefix)
entity_retrieval/aqqu_entity_linker.py:139
Functionpreprocess_packed_supervised_dataset
(examples: Dict[str, List[Any]])
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:102
Functionpreprocess_pairwise_dataset
(examples)
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:145
Functionpreprocess_pretrain_dataset
(examples: Dict[str, List[Any]])
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:36
Functionpreprocess_supervised_dataset
(examples: Dict[str, List[Any]])
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:60
Functionpreprocess_unsupervised_dataset
(examples: Dict[str, List[Any]])
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:124
Methodpreview_eval
(self, *args)
LLMs/LLaMA/src/llmtuner/webui/runner.py:230
Methodpreview_train
(self, *args)
LLMs/LLaMA/src/llmtuner/webui/runner.py:222
Functionprint_pairwise_dataset_example
(example)
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:180
Functionprint_supervised_dataset_example
(example)
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:172
Functionprint_unsupervised_dataset_example
(example)
LLMs/LLaMA/src/llmtuner/dsets/preprocess.py:188
Functionpyodbc_test
()
executor/sparql_executor.py:784
Functionquery_relation_domain_range_label_odbc
(input_path, output_path)
executor/sparql_executor.py:1037
Functionquery_two_hop_relations_gmt
(entities_path, output_file)
executor/sparql_executor.py:177
Functionread_abbreviations
Return a set of abbreviations. :param abbreviations_file: :return:
entity_retrieval/aqqu_util.py:26
Functionregister_args
(parser)
config.py:26
Functionremove_abbreviations_from_entity_name
(entity_name, abbreviations)
entity_retrieval/aqqu_util.py:39
Methodreset
(self)
LLMs/LLaMA/src/llmtuner/extras/logging.py:11
Methodrun_eval
(self, *args)
LLMs/LLaMA/src/llmtuner/webui/runner.py:264
Methodrun_train
(self, *args)
LLMs/LLaMA/src/llmtuner/webui/runner.py:238
Functionsame_logical_form
(form1: str, form2: str)
executor/logic_form_util_cwq.py:76
Functionsame_logical_form
(form1: str, form2: str)
executor/logic_form_util.py:76
Functionsave_config
(lang: str, model_name: str, model_path: str)
LLMs/LLaMA/src/llmtuner/webui/common.py:35
Functionsave_model
( lang: str, model_name: str, checkpoints: List[str], finetuning_type: str, template: str,
LLMs/LLaMA/src/llmtuner/webui/utils.py:119
Methodsave_to_json
r"""Saves the content of this instance in JSON format inside `json_path`.
LLMs/LLaMA/src/llmtuner/hparams/finetuning_args.py:76
Methodset_abort
(self)
LLMs/LLaMA/src/llmtuner/webui/runner.py:30
Functionset_seed
(args)
config.py:15
Methodsparql_name
Returns an id w/o sparql prefix.
entity_retrieval/aqqu_entity_linker.py:21
Methodsparql_name
(self)
entity_retrieval/aqqu_entity_linker.py:42
Methodsparql_name
(self)
entity_retrieval/aqqu_entity_linker.py:87
Methodsparql_name
(self)
entity_retrieval/aqqu_entity_linker.py:136
Functionstatus
(port)
Freebase-Setup/virtuoso.py:113
← previousnext →301–400 of 419, ranked by callers