Research Article
A Configurable Semantic-Based Transformation Method towards Conceptual Models
Algorithm 1
The algorithm of detecting direct semantic relations.
| /∗initialize corresponding values of semantic relations and values∗/ | | Semantic Relation_Values = {(synonym, 0.95), (similarto, 0.9), (), (), …} | | /∗Algorithm 1 detect direct semantic relations∗/ | | Function detecting direct Semantic Relation (String A, String B){ | | int SR_V = 0; | | for (int i = 0; i < Semantic Relation_Values.size (); i++){ | | if (Semantic Relation_Value.get (i).get Relation (Concept Net (A, B))){ | | if (Semantic Relation_Value.get (i).get Value ()>SR_V) | | SR_V = Semantic Relation_Value.get(i).get Value(); | | } | | } return SR_V; | | } |
|