C# Class rosette_api.RosetteRelationship

Exibir arquivo Open project: rosette-api/csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Equals ( object obj ) : bool

Equals override

GetHashCode ( ) : int

HashCode override

RosetteRelationship ( String predicate, List arguments, List temporals, List locatives, List adjunts, Nullable confidence ) : System

Creates a grammatical relationship. Temporary EntityIDs, ordered "T0", "T1"..., are added to the argument strings in an ArgumentsFull property.

RosetteRelationship ( string predicate, string>.Dictionary arguments, string>.Dictionary IDs, List temporals, List locatives, List adjunts, Nullable confidence, HashSet modalities ) : System

Creates a grammatical relationship

RosetteRelationship ( string predicate, List arguments, List temporals, List locatives, List adjunts, Nullable confidence, HashSet modalities ) : System

Creates a grammatical relationship

ToString ( ) : string

ToString override. Writes this RosetteRelationship in JSON form

Method Details

Equals() public method

Equals override
public Equals ( object obj ) : bool
obj object The object to compare against
return bool

GetHashCode() public method

HashCode override
public GetHashCode ( ) : int
return int

RosetteRelationship() public method

Creates a grammatical relationship. Temporary EntityIDs, ordered "T0", "T1"..., are added to the argument strings in an ArgumentsFull property.
public RosetteRelationship ( String predicate, List arguments, List temporals, List locatives, List adjunts, Nullable confidence ) : System
predicate String The main action or verb acting on the first argument, or the action connecting multiple arguments.
arguments List One or more arguments in the relationship
temporals List Time frames of the action. May be empty.
locatives List Locations of the action. May be empty.
adjunts List All other parts of the relationship. May be empty.
confidence Nullable A score for each relationship result, ranging from 0 to 1. You can use this measurement as a threshold to filter out undesired results.
return System

RosetteRelationship() public method

Creates a grammatical relationship
public RosetteRelationship ( string predicate, string>.Dictionary arguments, string>.Dictionary IDs, List temporals, List locatives, List adjunts, Nullable confidence, HashSet modalities ) : System
predicate string The main action or verb acting on the first argument, or the action connecting multiple arguments.
arguments string>.Dictionary The mention(s), mapped to the argument number, of one or more arguments in the relationship
IDs string>.Dictionary The IDs of the arguments, mapped to the corresponding argument number. The ID with key 1 should correspond to the argument with key 1.
temporals List Time frames of the action. May be empty.
locatives List Locations of the action. May be empty.
adjunts List All other parts of the relationship. May be empty.
confidence Nullable A score for each relationship result, ranging from 0 to 1. You can use this measurement as a threshold to filter out undesired results.
modalities HashSet The modalities of the relationship.
return System

RosetteRelationship() public method

Creates a grammatical relationship
public RosetteRelationship ( string predicate, List arguments, List temporals, List locatives, List adjunts, Nullable confidence, HashSet modalities ) : System
predicate string The main action or verb acting on the first argument, or the action connecting multiple arguments.
arguments List The arguments in the relationship
temporals List Time frames of the action. May be empty.
locatives List Locations of the action. May be empty.
adjunts List All other parts of the relationship. May be empty.
confidence Nullable A score for each relationship result, ranging from 0 to 1. You can use this measurement as a threshold to filter out undesired results.
modalities HashSet The modalities of the relationship.
return System

ToString() public method

ToString override. Writes this RosetteRelationship in JSON form
public ToString ( ) : string
return string