C# Класс rosette_api.RosetteRelationship

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

Equals() публичный Метод

Equals override
public Equals ( object obj ) : bool
obj object The object to compare against
Результат bool

GetHashCode() публичный Метод

HashCode override
public GetHashCode ( ) : int
Результат int

RosetteRelationship() публичный Метод

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.
Результат System

RosetteRelationship() публичный Метод

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.
Результат System

RosetteRelationship() публичный Метод

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.
Результат System

ToString() публичный Метод

ToString override. Writes this RosetteRelationship in JSON form
public ToString ( ) : string
Результат string