Package edu.stanford.nlp.dcoref.Dictionaries

Examples of edu.stanford.nlp.dcoref.Dictionaries.Gender


       
      int male = Integer.parseInt(countStr[0]);
      int female = Integer.parseInt(countStr[1]);
      int neutral = Integer.parseInt(countStr[2]);

      Gender gender = Gender.UNKNOWN;
      if (male * 0.5 > female + neutral && male > 2) {
        gender = Gender.MALE;
      } else if (female * 0.5 > male + neutral && female > 2) {
        gender = Gender.FEMALE;
      } else if (neutral * 0.5 > male + female && neutral > 2) {
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.dcoref.Dictionaries.Gender

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.