internal Verb(VerbRaw raw, string word) { this.Word = word; if (raw.Word != null) { SchemaIndex = raw.SchemaIndex; Aspect = raw.Aspect; } }
static VerbRaw ParseVerb(string line) { var parts = line.Split('\t'); var wordStr = parts[0]; var aspectStr = parts[1]; var schemaStr = parts[2]; var res = new VerbRaw(); res.Word = wordStr; res.SchemaIndex = schemas.GetOrAddSchemaId(schemaStr); switch (aspectStr) { case "нсв": res.Aspect = VerbAspect.Imperfect; break; case "св": res.Aspect = VerbAspect.Perfect; break; case "св-нсв": res.Aspect = VerbAspect.PerfectImperfect; break; } return(res); }