public static void Main(string[] args) { LexRecord lexRec = new LexRecord(); lexRec.SetBase("123"); lexRec.SetCat("noun"); lexRec.GetCatEntry().GetNounEntry().AddVariant("irreg|123||"); lexRec.GetCatEntry().GetNounEntry().AddVariant("group(irreg|123|222|)"); Console.WriteLine("----------------"); Console.WriteLine(lexRec.GetText()); Console.WriteLine("----------------"); InflVarsAndAgreements inflVars = lexRec.GetInflVarsAndAgreements(); List <InflVar> inflValues = inflVars.GetInflValues(); for (int i = 0; i < inflValues.Count; i++) { InflVar inflectionVar = inflValues[i]; Console.WriteLine(inflectionVar.GetVar() + "|" + inflectionVar.GetCat() + "|" + inflectionVar.GetInflection() + "|" + inflectionVar.GetUnInfl() + "|" + inflectionVar.GetCit() + "|" + inflectionVar.GetType()); } }
public virtual void SetLexRecord(LexRecord lexRecord) { base_ = lexRecord.GetBase(); spellingVars_ = lexRecord.GetSpellingVars(); eui_ = lexRecord.GetEui(); category_ = lexRecord.GetCategory(); catEntry_ = lexRecord.GetCatEntry(); acronyms_ = lexRecord.GetAcronyms(); abbreviations_ = lexRecord.GetAbbreviations(); annotations_ = lexRecord.GetAnnotations(); signature_ = lexRecord.GetSignature(); end_ = lexRecord.GetEnd(); }