Get desktop application:
View/edit binary Protocol Buffers messages
The following defines Nice2Predict server RPC interface
Infer query initiates MAP inference of unknown labels based on features and known assignemnts provided. The response contains best assignments.
InferResponse consists of assignments that were marked as to be inferred in the InferQuery.
NBest query runs the MAP inference if necessary. The response contains N candidates for each assignment together with their scores.
Number of candidates to be returned for each assignemnt.
Whether the inference already performed.
ShowGraph query runs the MAP inference if necessary. The response contains an inference graph encoded in ShowGraphResponse format.
Whether the inference already performed.
ShowGraph repsonse contains a graph in a format below and aimed to be shown.
Graph is represented as a lis of nodes and a list of edges.
Feature describes a single feature extracted from a source program. Features specify relations between assignments that are reffered by indices. Indices are supposed to cover a full range from 0 to the number of assignments.
Used in:
A Feature is either a BinaryRelation, a Constraint or a FactorVariable.
BinaryRelation defines a binary relation between a pair of assignments.
Used in:
Assignment indices.
Either AST tree or functional relation betweeen a pair assignments encoded in a string format.
Factor variable specify a group of assignments to be considered as factor variables. Factor variables should be enabled by a corresponding server flag to make this type of feature available.
Used in:
Constraint defines a scoped-infered constraint over a group of assignments.
Used in:
Indices of constrainted assignments.
Assignment candidate distribution contains possible assignments together with their scores.
Used in:
Used in:
An Assignment defines a label corresponding to a specifix index used in features enumeration. The label might be either given or unknown (i.e. supposed to be infered)
Used in:
, ,The name of the property.
Whether the name is given or should be inferred.
Message containing all the information that is necessary to perform MAP inference and obtain labels that are not given.
Used as request type in: Nice2Service.Infer
Used as field type in:
,A connection between a pair of nodes representing BinaryRelation feature.
Used in:
Indices of a pair of nodes.
The graph contains one node per each assignment.
Used in:
The initial assignment id.
Either given or inferred label.
Color that represents whether the label has been given or inferred.