Examples of Pos


Examples of edu.mit.jwi.item.POS

   */
  public static HashSet<String> getHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

Examples of edu.mit.jwi.item.POS

  public static HashSet<String> getHyperHypernyms(IDictionary dict, String word, String posTag, boolean firstSenseOnly) {

    HashSet<String> hypernyms = new HashSet<String>();
   
    POS pos = POS.getPartOfSpeech(posTag.charAt(0));
    if(pos == null) {
      return hypernyms;
    }
   
    IIndexWord iIndexWord = dict.getIndexWord(word, pos);
View Full Code Here

Examples of javafx.geometry.Pos

      return;
    }
   
    if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;
   
    Pos jAlignment;
   
    switch (alignment) {
    case SWT.RIGHT:
      jAlignment = Pos.CENTER_RIGHT;
      break;
View Full Code Here

Examples of net.didion.jwnl.data.POS

  }

  @SuppressWarnings("unchecked")
  public String[] getLemmas(String word, String tag) {
    try {
      POS pos;
      if (tag.startsWith("N") || tag.startsWith("n")) {
        pos = POS.NOUN;
      }
      else if (tag.startsWith("N") || tag.startsWith("v")) {
        pos = POS.VERB;
View Full Code Here

Examples of net.didion.jwnl.data.POS

    morphy = dict.getMorphologicalProcessor();
  }

  public String[] getLemmas(String word, String tag) {
    try {
      POS pos;
      if (tag.startsWith("N") || tag.startsWith("n")) {
        pos = POS.NOUN;
      }
      else if (tag.startsWith("N") || tag.startsWith("v")) {
        pos = POS.VERB;
View Full Code Here

Examples of net.didion.jwnl.data.POS

  }

  @SuppressWarnings("unchecked")
  public String[] getLemmas(String word, String tag) {
    try {
      POS pos;
      if (tag.startsWith("N") || tag.startsWith("n")) {
        pos = POS.NOUN;
      }
      else if (tag.startsWith("V") || tag.startsWith("v")) {
        pos = POS.VERB;
View Full Code Here

Examples of net.didion.jwnl.data.POS

     * @throws JWNLException
     *             On problems on WordNet lookup
     */
    public IndexWord getRandomWord(boolean hard) throws JWNLException {
        int n = r.nextInt(4);
        POS toPick = null;
        switch (n) {
        case 0:
            toPick = POS.ADJECTIVE;
            break;
        case 1:
View Full Code Here

Examples of net.didion.jwnl.data.POS

            Iterator iter = words.getIndexWordCollection().iterator();
            IndexWord word;
            while (iter.hasNext()) {
                word = (IndexWord) iter.next();
                if (word != null) {
                    POS r = word.getPOS();
                    if (r.equals(POS.NOUN) || r.equals(POS.VERB)
                            || r.equals(POS.ADJECTIVE) || r.equals(POS.ADVERB))
                        return true;
                }
            }
        } catch (JWNLException e) {
            e.printStackTrace();
View Full Code Here

Examples of net.didion.jwnl.data.POS

   *
   * @throws Exception
   */
  public void insertData() throws Exception {
    TIME = System.currentTimeMillis();
    POS pos;
    for (@SuppressWarnings("rawtypes")
    Iterator posItr = POS.getAllPOS().iterator(); posItr.hasNext(); LOG
        .log(MessageLogLevel.INFO, "done inserting data for pos " + pos)) {
      pos = (POS) posItr.next();
      LOG.log(MessageLogLevel.INFO, "inserting data for pos " + pos);
View Full Code Here

Examples of net.didion.jwnl.data.POS

  }

  @SuppressWarnings("unchecked")
  public String[] getLemmas(String word, String tag) {
    try {
      POS pos;
      if (tag.startsWith("N") || tag.startsWith("n")) {
        pos = POS.NOUN;
      } else if (tag.startsWith("N") || tag.startsWith("v")) {
        pos = POS.VERB;
      } else if (tag.startsWith("J") || tag.startsWith("a")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.