Examples of Word


Examples of edu.stanford.nlp.ling.Word

        ArrayList<Word> Words = StringToWordsTokenizer.tokenize(text);
        ParsingOptions opts = new ParsingOptions();
        opts.setPosTag(true);
        opts.setParseRelations(true);
        ParsedData resultData = sParser.parse(Words, opts);
        Word featureWord = new Word(feature);
        int featIndex = Words.indexOf(featureWord);
        Sentiment sentimentResult = Sentiment.Neutral;
        if (!feature.equals("") && featIndex != -1) {
            WordPos theFeature = resultData.getWordByIndex(featIndex);
            return classifyTextByFeatures(resultData, Words, theFeature);
View Full Code Here

Examples of er.ajax.example.Word

     * in allValues that contain this value.
     */
    public NSArray currentValues(String v) {
        NSMutableArray<Word> result = new NSMutableArray<Word>();
        for(Enumeration e = allValues.objectEnumerator(); e.hasMoreElements() && result.count() < 10;) {
          Word c = (Word) e.nextElement();
            if(v == null || c.name.toLowerCase().indexOf(v.toLowerCase()) >= 0) {
                result.addObject(c);
            }
        }
        return result;
View Full Code Here

Examples of gannuNLP.overlapmeasures.Word

  @Override
  public void init(Input document)throws Exception {
    if(this.getValue("scoring")==null)
    {
      this.scoring=(OverlapMeasure)new Word();
    }
    else
    {
      this.scoring=(OverlapMeasure)Class.forName(this.getValue("scoring")).newInstance();
    }
View Full Code Here

Examples of ket.math.purpose.Word

        if (string==null) {
          Token unknown = readNextSymbol(equation, knownArguments);
          tokenList.append(unknown);
          continue;
        }
        Word word = new Word(string);
        Token variable = new VariableToken(word);
        tokenList.append(variable);
      } else {
        Token unknown = readNextSymbol(equation, knownArguments);
        tokenList.append(unknown);
View Full Code Here

Examples of kpi.asoiu.model.Word

        } else if (words2.isEmpty()) {
            newWords.addAll(words1);
        } else {
            for (Word word : words1) {
                for (Word word2 : words2) {
                    Word w = new Word();
                    w.setWord(word.getWord() + " " + word2.getWord());
                    w.setPartOfSentence(word.getPartOfSentence());
                    w.setPartOfLanguage(word.getPartOfLanguage());
                    newWords.add(w);
                }
            }
        }
        return newWords;
View Full Code Here

Examples of net.didion.jwnl.data.Word

        Iterator i = hypernyms.iterator();
        // ...add all hypernyms
        while (i.hasNext()) {
            Synset ss = ((PointerTargetNode) i.next()).getSynset();
            for (int j = 0; j < ss.getWords().length; j++) {
                Word w = ss.getWord(j);
                if (w != null) {
                    String lemma = w.getLemma();
                    // System.out.println("lemma: " + lemma + " Ende");
                    result.add(lemma);
                }
            }
        }
View Full Code Here

Examples of net.paoding.analysis.dictionary.Word

    }
    BufferedOutputStream out = new BufferedOutputStream(
        new FileOutputStream(dicFile), 1024 * 16);
   
    for (int i = 0; i < wordsSize; i++) {
      Word word = dictionary.get(i);
      out.write(word.getText().getBytes(charsetName));
      if (word.getModifiers() != Word.DEFAUL) {
        out.write("[m=".getBytes());
        out.write(String.valueOf(word.getModifiers()).getBytes());
        out.write(']');
      }
      out.write('\r');
      out.write('\n');
    }
View Full Code Here

Examples of net.paoding.analysis.dictionary.Word

      IOException, UnsupportedEncodingException {
    int vocabularySize = vocabularyDictionary.size();
    Word[] vocabularyWords = new Word[vocabularySize];
    char[] chs = new char[128];
    for (int i = 0; i < vocabularySize; i ++) {
      final Word curWord = vocabularyDictionary.get(i);
      curWord.getText().getChars(0, curWord.length(), chs, 0);
      chs[curWord.length()] = (char) -1;
      Beef beef = new Beef(chs, 0, curWord.length() + 1);
      final BitSet bs = new BitSet(curWord.length());
      knife.dissect(new Collector(){
        public void collect(String word, int offset, int end) {
          Hit hit = vocabularyDictionary.search(word, 0, word.length());
          if (hit.isHit() && hit.getWord().length() != curWord.length()) {
            for (int j = offset; j < end; j++) {
              bs.set(j, true);
            }
          }
        }
       
      }, beef, 0);
     
      for (int j = 0; j < curWord.length();j++) {
        if (!bs.get(j)) {
          vocabularyWords[i] = curWord;
          break;
        }
      }
View Full Code Here

Examples of net.paoding.analysis.dictionary.Word

    }
    BufferedOutputStream out = new BufferedOutputStream(
        new FileOutputStream(dicFile), 1024 * 16);
   
    for (int i = 0; i < wordsSize; i++) {
      Word word = dictionary.get(i);
      out.write(word.getText().getBytes(charsetName));
      if (word.getModifiers() != Word.DEFAUL) {
        out.write("[m=".getBytes());
        out.write(String.valueOf(word.getModifiers()).getBytes());
        out.write(']');
      }
      out.write('\r');
      out.write('\n');
    }
View Full Code Here

Examples of net.yacy.kelondro.data.word.Word

                                urlModified.getTime(),
                                System.currentTimeMillis(),
                                UTF8.getBytes(language),
                                doctype,
                                outlinksSame, outlinksOther);
        Word wprop;
        byte[] wordhash;
        while (i.hasNext()) {
            wentry = i.next();
            word = wentry.getKey();
            wprop = wentry.getValue();
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.