public List <SenseRelation> GetSenseRelations(SenseRelationType relationType) { SenseRelationType[] types = new SenseRelationType[1]; types[0] = relationType; return(SenseService.GetSenseRelationsByType(this.id, types)); }
private static String RelationValue(SenseRelationType type) { if (type.ToString() == "Derivationally_related_form") { return("Derivationally related form"); } return(type.ToString().Replace("_", "-")); }
private static SenseRelationType ReverseRelationType(SenseRelationType type) { //Refer_to...Is_Referred_by if (SenseRelationType.Refer_to == type) { return(SenseRelationType.Is_Referred_by); } if (SenseRelationType.Is_Referred_by == type) { return(SenseRelationType.Refer_to); } //Verbal_Part..Is_Verbal_Part_of if (SenseRelationType.Verbal_Part == type) { return(SenseRelationType.Is_Verbal_Part_of); } if (SenseRelationType.Is_Verbal_Part_of == type) { return(SenseRelationType.Verbal_Part); } //Is_Non_Verbal_Part_of..Non_Verbal_Part if (SenseRelationType.Is_Non_Verbal_Part_of == type) { return(SenseRelationType.Non_Verbal_Part); } if (SenseRelationType.Non_Verbal_Part == type) { return(SenseRelationType.Is_Non_Verbal_Part_of); } return(type); }