Package groundTruthModule.datastructure.PersonEntity

Examples of groundTruthModule.datastructure.PersonEntity.EducationLevel


        evidence.setResidentNode("hasEducationLevel");
        argument = new ArgumentInfo();
        argument.setType("Person");
        argument.setName(personName);
        evidence.getArguments().add(argument);
        EducationLevel stateValue = person.getHasEducationLevel();
        evidence.setState(stateValue.toString());
        evidenceList.add(evidence);
      }
      if (person.getHasOccupation() != null) {
        evidence = new EvidenceInfo();
        evidence.setResidentNode("hasOccupation");
        argument = new ArgumentInfo();
        argument.setType("Person");
        argument.setName(personName);
        evidence.getArguments().add(argument);
        Occupation stateValue = person.getHasOccupation();
        evidence.setState(stateValue.toString());
        evidenceList.add(evidence);
      }
    }
  }
View Full Code Here


      if (person.getHasEducationLevel() != null) {
        residentNode = mebn.getDomainResidentNode("hasEducationLevel");
        arguments = new ObjectEntityInstance[1];
        arguments[0] = mebn.getObjectEntityContainer()
            .getEntityInstanceByName(personName);
        EducationLevel stateValue = person.getHasEducationLevel();
        if (stateValue == EducationLevel.MiddleSchool) {
          categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("MiddleSchool");
        } else if (stateValue == EducationLevel.HighSchool) {
          categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("HighSchool");
        } else if (stateValue == EducationLevel.College) {
View Full Code Here

TOP

Related Classes of groundTruthModule.datastructure.PersonEntity.EducationLevel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.