예제 #1
0
 public LexicalScenario generateScen(List<TypedDependency> tdl) {
   LexicalScenario scenario = new LexicalScenario();
   int rootNum = LexicalAction.getRootNum(tdl);
   LexicalAction action = new LexicalAction();
   LexicalParameter parameter = new LexicalParameter();
   LexicalObject object = new LexicalObject();
   LexicalSubject subject = new LexicalSubject();
   scenario.setSubject(subject.getElement(tdl, rootNum));
   scenario.setSubjectAction(action.getElement(tdl, 0));
   scenario.setObject(object.getElement(tdl, rootNum));
   scenario.setParameter(parameter.getElement(tdl, rootNum));
   return scenario;
 }
예제 #2
0
 private LexicalGenerateScenario() {
   // TODO Auto-generated constructor stub
   LexicalAction.getRule();
   LexicalParameter.getRule();
   LexicalObject.getRule();
   LexicalSubject.getRule();
   LexicalReadRule.getQualifier();
 }