Download annotations/annotation_1/function_info.json from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 30 kB
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_1/function_info.json
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_1/function_info.json
-
curl -L -o function_info.json https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_1/function_info.json
30 kB
| [ | |
| { | |
| "function_name": "PEDANT.__init__", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "os.path.dirname()", | |
| "functionality": "Return the directory name of pathname.", | |
| "input": "path (str or bytes) - Path to get the directory name from.", | |
| "output": "Directory name (str or bytes).", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.path.join()", | |
| "functionality": "Join one or more path components intelligently.", | |
| "input": "*paths (str or bytes) - Multiple path components.", | |
| "output": "Joined path (str or bytes).", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.path.exists()", | |
| "functionality": "Return True if path refers to an existing path or an open file descriptor.", | |
| "input": "path (str or bytes) - Path to check.", | |
| "output": "Boolean indicating existence.", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.makedirs()", | |
| "functionality": "Recursive directory creation function.", | |
| "input": "name (str), mode (int, optional), exist_ok (bool, optional)", | |
| "output": "None", | |
| "location_or_namespace": "os" | |
| }, | |
| { | |
| "function_call_name": "download_link()", | |
| "functionality": "Downloads a file from a URL to a local path (Assumed function).", | |
| "input": "path (str), url (str), name (str)", | |
| "output": "", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "print()", | |
| "functionality": "Prints objects to the text stream file.", | |
| "input": "*objects, sep=' ', end='\\n', file=sys.stdout, flush=False", | |
| "output": "None", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "joblib.load()", | |
| "functionality": "Load an object pickled with joblib.dump.", | |
| "input": "filename (str or pathlib.Path), mmap_mode (str, optional)", | |
| "output": "The loaded object.", | |
| "location_or_namespace": "joblib" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.download_latest_model", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "os.path.dirname()", | |
| "functionality": "Return the directory name of pathname.", | |
| "input": "path (str or bytes) - Path to get the directory name from.", | |
| "output": "Directory name (str or bytes).", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.path.join()", | |
| "functionality": "Join one or more path components intelligently.", | |
| "input": "*paths (str or bytes) - Multiple path components.", | |
| "output": "Joined path (str or bytes).", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.path.exists()", | |
| "functionality": "Return True if path refers to an existing path or an open file descriptor.", | |
| "input": "path (str or bytes) - Path to check.", | |
| "output": "Boolean indicating existence.", | |
| "location_or_namespace": "os.path" | |
| }, | |
| { | |
| "function_call_name": "os.makedirs()", | |
| "functionality": "Recursive directory creation function.", | |
| "input": "name (str), mode (int, optional), exist_ok (bool, optional)", | |
| "output": "None", | |
| "location_or_namespace": "os" | |
| }, | |
| { | |
| "function_call_name": "print()", | |
| "functionality": "Prints objects to the text stream file.", | |
| "input": "*objects, sep=' ', end='\\n', file=sys.stdout, flush=False", | |
| "output": "None", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "download_link()", | |
| "functionality": "Downloads a file from a URL to a local path (Assumed function).", | |
| "input": "path (str), url (str), name (str)", | |
| "output": "", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "joblib.load()", | |
| "functionality": "Load an object pickled with joblib.dump.", | |
| "input": "filename (str or pathlib.Path), mmap_mode (str, optional)", | |
| "output": "The loaded object.", | |
| "location_or_namespace": "joblib" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_rule_features", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.get_f1_features()", | |
| "functionality": "Calculates token-level F1, Precision, and Recall scores.", | |
| "input": "rule_data (list of dict)", | |
| "output": "Tuple of numpy arrays (f1_scores, precisions, recalls).", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.tokenizer.transform()", | |
| "functionality": "Transforms text data into TF-IDF vectors using the loaded tokenizer.", | |
| "input": "raw_documents (iterable)", | |
| "output": "Sparse matrix of TF-IDF vectors.", | |
| "location_or_namespace": "self.tokenizer (loaded TF-IDF vectorizer)" | |
| }, | |
| { | |
| "function_call_name": "hstack()", | |
| "functionality": "Stack sparse matrices horizontally (column wise).", | |
| "input": "blocks (sequence of sparse matrices), format=None, dtype=None", | |
| "output": "Stacked sparse matrix.", | |
| "location_or_namespace": "scipy.sparse" | |
| }, | |
| { | |
| "function_call_name": "self.rule_model.predict_proba()", | |
| "functionality": "Predicts class probabilities using the loaded rule classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of class probabilities.", | |
| "location_or_namespace": "self.rule_model (loaded classifier)" | |
| }, | |
| { | |
| "function_call_name": "self.rule_model.predict_log_proba()", | |
| "functionality": "Predicts class log-probabilities using the loaded rule classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of class log-probabilities.", | |
| "location_or_namespace": "self.rule_model (loaded classifier)" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_type_features", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.tokenizer.transform()", | |
| "functionality": "Transforms text data into TF-IDF vectors using the loaded tokenizer.", | |
| "input": "raw_documents (iterable)", | |
| "output": "Sparse matrix of TF-IDF vectors.", | |
| "location_or_namespace": "self.tokenizer (loaded TF-IDF vectorizer)" | |
| }, | |
| { | |
| "function_call_name": "self.type_model.predict_proba()", | |
| "functionality": "Predicts class probabilities using the loaded type classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of class probabilities.", | |
| "location_or_namespace": "self.type_model (loaded classifier)" | |
| }, | |
| { | |
| "function_call_name": "self.type_model.predict_log_proba()", | |
| "functionality": "Predicts class log-probabilities using the loaded type classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of class log-probabilities.", | |
| "location_or_namespace": "self.type_model (loaded classifier)" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_f1_features", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "len()", | |
| "functionality": "Return the number of items in a container.", | |
| "input": "container", | |
| "output": "Integer length.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "range()", | |
| "functionality": "Returns a sequence of numbers.", | |
| "input": "stop or start, stop[, step]", | |
| "output": "Range object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "calculate_f1_score_with_precision()", | |
| "functionality": "Calculates token-level F1, precision, and recall (Assumed function).", | |
| "input": "reference_text (str), candidate_text (str)", | |
| "output": "Tuple (f1, precision, recall).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "list.append()", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "object", | |
| "output": "None", | |
| "location_or_namespace": "list" | |
| }, | |
| { | |
| "function_call_name": "np.array()", | |
| "functionality": "Create a NumPy array.", | |
| "input": "object, dtype=None, copy=True, order='K', subok=False, ndmin=0", | |
| "output": "NumPy array.", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "numpy.ndarray.reshape()", | |
| "functionality": "Gives a new shape to an array without changing its data.", | |
| "input": "shape (int or tuple of ints), order='C'", | |
| "output": "Reshaped array.", | |
| "location_or_namespace": "numpy.ndarray" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.construct_features", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "list.append()", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "object", | |
| "output": "None", | |
| "location_or_namespace": "list" | |
| }, | |
| { | |
| "function_call_name": "self.tokenizer.transform()", | |
| "functionality": "Transforms text data into TF-IDF vectors using the loaded tokenizer.", | |
| "input": "raw_documents (iterable)", | |
| "output": "Sparse matrix of TF-IDF vectors.", | |
| "location_or_namespace": "self.tokenizer (loaded TF-IDF vectorizer)" | |
| }, | |
| { | |
| "function_call_name": "self.get_f1_features()", | |
| "functionality": "Calculates token-level F1, Precision, and Recall scores.", | |
| "input": "rule_data (list of dict)", | |
| "output": "Tuple of numpy arrays (f1_scores, precisions, recalls).", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.get_rule_features()", | |
| "functionality": "Predicts the AC rule probabilities using the rule classifier F(R).", | |
| "input": "data (list of dict)", | |
| "output": "Tuple (probabilities array, log-probabilities array).", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.get_type_features()", | |
| "functionality": "Predicts the question type probabilities using the type classifier F(T).", | |
| "input": "data (list of dict)", | |
| "output": "Tuple (probabilities array, log-probabilities array).", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "hstack()", | |
| "functionality": "Stack sparse matrices horizontally (column wise).", | |
| "input": "blocks (sequence of sparse matrices), format=None, dtype=None", | |
| "output": "Stacked sparse matrix.", | |
| "location_or_namespace": "scipy.sparse" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_score", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.construct_features()", | |
| "functionality": "Constructs the final feature vector for the PEDANTS classifier.", | |
| "input": "data (list of dict), with_log_probas=False (default)", | |
| "output": "Sparse matrix of features.", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.model.predict_proba()", | |
| "functionality": "Predicts class probabilities using the main loaded classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of class probabilities.", | |
| "location_or_namespace": "self.model (loaded classifier)" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_scores", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance()", | |
| "functionality": "Return whether an object is an instance of a class or of a subclass thereof.", | |
| "input": "object, classinfo", | |
| "output": "Boolean.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.get_score()", | |
| "functionality": "Calculates the PEDANTS confidence score for a single QA pair.", | |
| "input": "reference (str), candidate (str), question (str)", | |
| "output": "Confidence score (float).", | |
| "location_or_namespace": "self (PEDANT)" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_question_type", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance()", | |
| "functionality": "Return whether an object is an instance of a class or of a subclass thereof.", | |
| "input": "object, classinfo", | |
| "output": "Boolean.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.tokenizer.transform()", | |
| "functionality": "Transforms text data into TF-IDF vectors using the loaded tokenizer.", | |
| "input": "raw_documents (iterable)", | |
| "output": "Sparse matrix of TF-IDF vectors.", | |
| "location_or_namespace": "self.tokenizer (loaded TF-IDF vectorizer)" | |
| }, | |
| { | |
| "function_call_name": "self.type_model.predict()", | |
| "functionality": "Predicts class labels using the loaded type classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of predicted class labels.", | |
| "location_or_namespace": "self.type_model (loaded classifier)" | |
| }, | |
| { | |
| "function_call_name": "list()", | |
| "functionality": "Create a new list object.", | |
| "input": "iterable (optional)", | |
| "output": "List.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "set()", | |
| "functionality": "Create a new set object.", | |
| "input": "iterable (optional)", | |
| "output": "Set.", | |
| "location_or_namespace": "builtins" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_judgement_rule", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance()", | |
| "functionality": "Return whether an object is an instance of a class or of a subclass thereof.", | |
| "input": "object, classinfo", | |
| "output": "Boolean.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "self.get_f1_features()", | |
| "functionality": "Calculates token-level F1, Precision, and Recall scores.", | |
| "input": "rule_data (list of dict)", | |
| "output": "Tuple of numpy arrays (f1_scores, precisions, recalls).", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.tokenizer.transform()", | |
| "functionality": "Transforms text data into TF-IDF vectors using the loaded tokenizer.", | |
| "input": "raw_documents (iterable)", | |
| "output": "Sparse matrix of TF-IDF vectors.", | |
| "location_or_namespace": "self.tokenizer (loaded TF-IDF vectorizer)" | |
| }, | |
| { | |
| "function_call_name": "hstack()", | |
| "functionality": "Stack sparse matrices horizontally (column wise).", | |
| "input": "blocks (sequence of sparse matrices), format=None, dtype=None", | |
| "output": "Stacked sparse matrix.", | |
| "location_or_namespace": "scipy.sparse" | |
| }, | |
| { | |
| "function_call_name": "self.rule_model.predict()", | |
| "functionality": "Predicts class labels using the loaded rule classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of predicted class labels.", | |
| "location_or_namespace": "self.rule_model (loaded classifier)" | |
| }, | |
| { | |
| "function_call_name": "list()", | |
| "functionality": "Create a new list object.", | |
| "input": "iterable (optional)", | |
| "output": "List.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "set()", | |
| "functionality": "Create a new set object.", | |
| "input": "iterable (optional)", | |
| "output": "Set.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "len()", | |
| "functionality": "Return the number of items in a container.", | |
| "input": "container", | |
| "output": "Integer length.", | |
| "location_or_namespace": "builtins" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.get_highest_score", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "self.get_scores()", | |
| "functionality": "Calculates PEDANTS confidence scores when reference and/or candidate answers might be lists.", | |
| "input": "reference (str or list), candidate (str or list), question (str)", | |
| "output": "Nested dictionary of scores.", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "dict.items()", | |
| "functionality": "Return a new view of the dictionary's items ((key, value) pairs).", | |
| "input": "None", | |
| "output": "Dictionary view object.", | |
| "location_or_namespace": "dict" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "PEDANT.evaluate", | |
| "file_path": "qa_metrics/pedant.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance()", | |
| "functionality": "Return whether an object is an instance of a class or of a subclass thereof.", | |
| "input": "object, classinfo", | |
| "output": "Boolean.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "lemmatize_text()", | |
| "functionality": "Applies lemmatization to the input text (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Lemmatized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "normalize_answer()", | |
| "functionality": "Normalizes the answer text (e.g., lowercasing, removing punctuation) (Assumed function).", | |
| "input": "text (str)", | |
| "output": "Normalized text (str).", | |
| "location_or_namespace": "qa_metrics/utils/tools.py" | |
| }, | |
| { | |
| "function_call_name": "str()", | |
| "functionality": "Return a string version of object.", | |
| "input": "object", | |
| "output": "String representation of object.", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "list.append()", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "object", | |
| "output": "None", | |
| "location_or_namespace": "list" | |
| }, | |
| { | |
| "function_call_name": "self.construct_features()", | |
| "functionality": "Constructs the final feature vector for the PEDANTS classifier.", | |
| "input": "data (list of dict), with_log_probas=False (default)", | |
| "output": "Sparse matrix of features.", | |
| "location_or_namespace": "self (PEDANT)" | |
| }, | |
| { | |
| "function_call_name": "self.model.predict()", | |
| "functionality": "Predicts class labels using the main loaded classifier.", | |
| "input": "X (array-like or sparse matrix)", | |
| "output": "Array of predicted class labels.", | |
| "location_or_namespace": "self.model (loaded classifier)" | |
| } | |
| ] | |
| } | |
| ] |