[ { "function_name": "VertexGroup.__init__", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "os.path.join", "functionality": "Join path components into a single path string", "input": "BASE_DIR: str, vertex_path: str", "output": "str", "location_or_namespace": "os.path" }, { "function_call_name": "open", "functionality": "Open a file", "input": "file_path: str, mode: str", "output": "file object", "location_or_namespace": "builtins" }, { "function_call_name": "json.load", "functionality": "Load JSON content from a file object", "input": "file_object", "output": "object (list/dict)", "location_or_namespace": "json" } ] }, { "function_name": "VertexGroup.get_uniform_s0", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "numpy.ones", "functionality": "Create a new array of given shape filled with ones", "input": "shape: int or tuple[int, ...]", "output": "ndarray", "location_or_namespace": "numpy" } ] }, { "function_name": "VertexGroup.get_mbr_s0", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "bleu_score", "functionality": "Compute smoothed BLEU between two strings (nested helper)", "input": "hypothesis: str, reference: str", "output": "float", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "nltk.translate.bleu_score.SmoothingFunction", "functionality": "Construct BLEU smoothing helper", "input": "", "output": "SmoothingFunction instance", "location_or_namespace": "nltk.translate.bleu_score" }, { "function_call_name": "nltk.translate.bleu_score.sentence_bleu", "functionality": "Compute sentence-level BLEU score", "input": "references: list[list[str]], hypothesis: list[str], smoothing_function: callable", "output": "float", "location_or_namespace": "nltk.translate.bleu_score" }, { "function_call_name": "str.split", "functionality": "Split string into tokens by whitespace", "input": "s: str", "output": "list[str]", "location_or_namespace": "builtins" }, { "function_call_name": "range", "functionality": "Create arithmetic progression iterator", "input": "stop: int (or start, stop, step)", "output": "range iterator", "location_or_namespace": "builtins" }, { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "numpy.ones", "functionality": "Create array of ones", "input": "shape: tuple[int, int]", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.array", "functionality": "Create ndarray from sequence", "input": "sequence", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.sum", "functionality": "Sum array elements over a given axis", "input": "a: array_like, axis: int|None", "output": "ndarray or scalar", "location_or_namespace": "numpy" } ] }, { "function_name": "VertexGroup.__len__", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" } ] }, { "function_name": "EdgeGroup.__init__", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "os.path.join", "functionality": "Join path components into a single path string", "input": "BASE_DIR: str, verification_path: str", "output": "str", "location_or_namespace": "os.path" }, { "function_call_name": "open", "functionality": "Open a file", "input": "file_path: str, mode: str", "output": "file object", "location_or_namespace": "builtins" }, { "function_call_name": "json.load", "functionality": "Load JSON content from a file object", "input": "file_object", "output": "object (list/dict)", "location_or_namespace": "json" }, { "function_call_name": "numpy.zeros", "functionality": "Create array of zeros", "input": "shape: tuple[int, int]", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "print", "functionality": "Write a message to standard output", "input": "message: any", "output": "None", "location_or_namespace": "builtins" } ] }, { "function_name": "EdgeGroup.get_adj_matrix", "file_path": "MPSC/MPSC/generation.py", "function_calls": [] }, { "function_name": "NPartiteGraph.__init__", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "collections.defaultdict", "functionality": "Dictionary with default factory for missing keys", "input": "default_factory: callable", "output": "defaultdict", "location_or_namespace": "collections" }, { "function_call_name": "enumerate", "functionality": "Return iterator of (index, item) pairs", "input": "iterable", "output": "iterator", "location_or_namespace": "builtins" }, { "function_call_name": "sum", "functionality": "Sum items of an iterable", "input": "iterable, start: number (optional)", "output": "number", "location_or_namespace": "builtins" }, { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "EdgeGroup.get_adj_matrix", "functionality": "Return inter-consistency adjacency block between two vertex groups", "input": "", "output": "ndarray", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "numpy.empty", "functionality": "Create new uninitialized array", "input": "shape: tuple[int, int], dtype: type", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.concatenate", "functionality": "Join a sequence of arrays along an existing axis", "input": "arrays: list[ndarray], axis: int", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.zeros", "functionality": "Create array of zeros", "input": "shape: tuple[int, int]", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.sum", "functionality": "Sum array elements over a given axis", "input": "a: array_like, axis: int|None", "output": "ndarray or scalar", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.where", "functionality": "Return elements chosen from x or y depending on condition", "input": "condition: array_like, x: array_like or scalar, y: array_like or scalar", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.power", "functionality": "Element-wise power", "input": "x: array_like, exponent: number", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.diag", "functionality": "Extract a diagonal or construct a diagonal array", "input": "v: array_like", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.matmul", "functionality": "Matrix product of two arrays", "input": "a: array_like, b: array_like", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "NPartiteGraph.initialize_s0", "functionality": "Initialize the prior score vector s0 using selected intra-consistency mode", "input": "init_method: IntraConsistency", "output": "None", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "copy.deepcopy", "functionality": "Create a deep copy of an object", "input": "obj: any", "output": "any (deep-copied)", "location_or_namespace": "copy" } ] }, { "function_name": "NPartiteGraph.fit", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "numpy.linalg.norm", "functionality": "Matrix or vector norm", "input": "x: array_like", "output": "float", "location_or_namespace": "numpy.linalg" }, { "function_call_name": "numpy.matmul", "functionality": "Matrix product of two arrays", "input": "a: array_like, b: array_like", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "print", "functionality": "Write a message to standard output", "input": "message: any", "output": "None", "location_or_namespace": "builtins" } ] }, { "function_name": "NPartiteGraph.get_vertex_group_score", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "numpy.ndarray.copy", "functionality": "Shallow copy of an ndarray", "input": "", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.ndarray.tolist", "functionality": "Convert ndarray to (nested) Python list", "input": "", "output": "list", "location_or_namespace": "numpy" }, { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "zip", "functionality": "Aggregate elements from multiple iterables", "input": "*iterables", "output": "iterator of tuples", "location_or_namespace": "builtins" }, { "function_call_name": "sorted", "functionality": "Return a new sorted list", "input": "iterable, key: callable (optional), reverse: bool (optional)", "output": "list", "location_or_namespace": "builtins" } ] }, { "function_name": "NPartiteGraph.initialize_s0", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "numpy.concatenate", "functionality": "Join a sequence of arrays along an existing axis", "input": "arrays: list[ndarray], axis: int", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "VertexGroup.get_uniform_s0", "functionality": "Return uniform prior over items in this vertex group", "input": "", "output": "ndarray", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "VertexGroup.get_mbr_s0", "functionality": "Return lexical/MBR-inspired prior for this vertex group", "input": "", "output": "ndarray", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "numpy.ndarray.copy", "functionality": "Shallow copy of an ndarray", "input": "", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "dict.values", "functionality": "Return a new view of the dictionary’s values", "input": "", "output": "dict_values view", "location_or_namespace": "builtins" }, { "function_call_name": "numpy.unique", "functionality": "Find unique rows and optionally their counts", "input": "ar: array_like, axis: int, return_counts: bool", "output": "tuple (unique_rows: ndarray, counts: ndarray)", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.ndarray.sum", "functionality": "Sum of array elements over a given axis (method form)", "input": "axis: int", "output": "ndarray or scalar", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.where", "functionality": "Return elements chosen from x or y depending on condition", "input": "condition: array_like, x: array_like or scalar, y: array_like or scalar", "output": "ndarray", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.ndarray.all", "functionality": "Test whether all array elements along a given axis evaluate to True", "input": "axis: int", "output": "ndarray of bool", "location_or_namespace": "numpy" }, { "function_call_name": "len", "functionality": "Get length of a container", "input": "sequence", "output": "int", "location_or_namespace": "builtins" }, { "function_call_name": "numpy.array_equal", "functionality": "True if two arrays have the same shape and elements", "input": "a1: array_like, a2: array_like", "output": "bool", "location_or_namespace": "numpy" }, { "function_call_name": "numpy.sum", "functionality": "Sum array elements over a given axis", "input": "a: array_like, axis: int|None", "output": "ndarray or scalar", "location_or_namespace": "numpy" } ] }, { "function_name": "run", "file_path": "MPSC/MPSC/generation.py", "function_calls": [ { "function_call_name": "NPartiteGraph.__init__", "functionality": "Construct the n-partite graph object", "input": "vertex_group_lst: list[VertexGroup], edge_group_lst: list[EdgeGroup], intra_consistency_measure: IntraConsistency", "output": "NPartiteGraph instance", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "NPartiteGraph.fit", "functionality": "Run iterative propagation until convergence", "input": "", "output": "int (number of iterations)", "location_or_namespace": "MPSC/MPSC/generation.py" }, { "function_call_name": "NPartiteGraph.get_vertex_group_score", "functionality": "Get ranked (item, score) list for a target vertex type", "input": "vertex_type: VertexType", "output": "list[tuple[str, float]]", "location_or_namespace": "MPSC/MPSC/generation.py" } ] } ]