Exemplo n.º 1
0
        //public Dictionary<CaseRole, List<VerbFrame>> Associatedactions
        //{
        //    get { return _associatedactions; }
        //}

        //public void AddCaseRole(CaseRole role,VerbFrame verbFrame)
        //{
        //    if (_associatedactions.ContainsKey(role))
        //    {
        //        _associatedactions[role].Add(verbFrame);
        //    }
        //    else
        //    {
        //        List<VerbFrame> vframes = new List<VerbFrame>();
        //        vframes.Add(verbFrame);
        //        _associatedactions.Add(role,vframes);
        //    }

        //}
        public void AddCaseRolenouns(CaseRole role, NounFrame nounframe)
        {
            if (_ownerof.ContainsKey(role))
            {
                _ownerof[role].Add(nounframe);
            }
            else
            {
                List <NounFrame> nframes = new List <NounFrame>();
                nframes.Add(nounframe);
                _ownerof.Add(role, nframes);
            }
        }
Exemplo n.º 2
0
 public void AddTemporalRelation_n(TemporalRelationType temporalRelationType, NounFrame frame)
 {
     if (_temporalRelations_n.ContainsKey(temporalRelationType))
     {
         _temporalRelations_n[temporalRelationType].Add(frame);
     }
     else
     {
         List <NounFrame> nounframelst = new List <NounFrame>();
         nounframelst.Add(frame);
         _temporalRelations_n.Add(temporalRelationType, nounframelst);
     }
 }
Exemplo n.º 3
0
 public void AddCaseRole(CaseRole caseRole, NounFrame frame)
 {
     if (_caseRoles.ContainsKey(caseRole))
     {
         _caseRoles[caseRole].Add(frame);
     }
     else
     {
         List <NounFrame> verbframelst = new List <NounFrame>();
         verbframelst.Add(frame);
         _caseRoles.Add(caseRole, verbframelst);
     }
 }
Exemplo n.º 4
0
        public void AddDomainRelation_n(DomainRelationType domainRelationType, NounFrame frame)
        {
            if (_domainRelations_n.ContainsKey(domainRelationType))
            {
                _domainRelations_n[domainRelationType].Add(frame);
            }

            else
            {
                List <NounFrame> nounframelst = new List <NounFrame>();
                nounframelst.Add(frame);
                _domainRelations_n.Add(domainRelationType, nounframelst);
            }
        }