ApiData().SetBindingTypeModifier
Alters the numeric weighting modifier for a particular Conceptual relationship type.
Description
This function alters the connection strength between Concepts bound by the given type. Note that if the Binding Type does not exist, it will be created and given the modifier value.
Example Usage (C#)
bool success = _core.ApiData().SetBindingTypeModifier(“child”, 0.65f);
Parameters
string |
bindingType |
The string representing the Binding Type or a variable containing the name of the Binding Type. |
float |
modifier |
The number representing a scalar multiplier for the connection type, with a value of 0.0 indicating a halt condition. |
The current exposed lexical Binding Types are
- ”root”
- ”synonym”, “synonymSibling”
- ”antonym”
- ”similar”, “similarSibling”
- ”different”
- ”related”, “relatedSibling”
- ”unrelated”
- ”child”, “sibling”, “parent”
- ”plural”, “singular”
- ”misspelling”, “correction”
- ”verbal”, “written”
The current exposed Conceptual Binding Types are loosely based on the MIT MediaLab’s ConceptNet
- ”relatedTo”, “thematic”, “superThematic”
- ”isA”, “propertyOf”, “partOf”, “madeOf”, “definedAs”
- ”capableOf”
- ”prerequisite”, “firstEvent”, “eventOf”, “lastEvent”
- ”location”
- ”effect”, “desirousEffect”
- ”usedFor”, “action”
- ”motivation”, “desire”
And finally
- ”unknown”, “invalid”
Returns
The boolean success or failure of the operation. The method fails if the Binding Type is null or zero-length.
See Also
- ApiData().SetBinding
- ApiData().TestBinding
- ApiData().GetBoundConcept
- ApiData().GetAllBoundConcepts
- ApiData().GetBindingTypeModifier