Examples of tag()


Examples of com.aliasi.tag.Tagger.tag()

        sentEndToken = tokens.length - 1;
      }


      Tagging<String> tags = posTagger.tag(tokenList.subList(sentStartToken, sentEndToken + 1));
      for (int j = 0; j < tags.size(); j++) {
        TaggedToken taggedToken = new TaggedToken(tags.token(j), whiteList.get(sentStartToken + j + 1), tags.tag(j), textOffset, null);
        taggedTokens.add(taggedToken);
        textOffset += tokens[sentStartToken + j].length() + whites[sentStartToken + j + 1].length();
      }
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.ParaFormatFormat.tag()

          String formatFieldName = "format" + i;

          ParaFormatFormat curFormat = paraFormatAnnotation.formats()[i];
          RteParaFormatParameters paraParameters = new RteParaFormatParameters();
          paraParameters.setFieldName(formatFieldName);
          paraParameters.setTag(curFormat.tag());
          paraParameters.setDescription(curFormat.description());
          formatList.add(new RteParaFormat(paraParameters));
        }
      }
View Full Code Here

Examples of com.cognitect.transit.WriteHandler.tag()

    }

    public String getTag(Object o) {
        WriteHandler h = getHandler(o);
        if (h == null) return null;
        return h.tag(o);
    }

    private WriteHandler getHandler(Object o) {

        Class c = (o != null) ? o.getClass() : null;
View Full Code Here

Examples of com.fray.evo.util.EcYabotEncoder.tag()

        if(!(a instanceof EcActionExtractorTrick))
        {
          if (a instanceof EcActionMineGas)
          {
            String tag = s.settings.pullThreeWorkersOnly ? "Add_3_drones_to_gas" : "Add_1_drone_to_gas";
            encoder.tag(tag);
          }
          else if (a instanceof EcActionMineMineral)
          {
            String tag = s.settings.pullThreeWorkersOnly ? "Add_3_drones_to_minerals" : "Add_1_drone_to_minerals";
            encoder.tag(tag);
View Full Code Here

Examples of com.fray.evo.util.EcYabotEncoder.tag()

            encoder.tag(tag);
          }
          else if (a instanceof EcActionMineMineral)
          {
            String tag = s.settings.pullThreeWorkersOnly ? "Add_3_drones_to_minerals" : "Add_1_drone_to_minerals";
            encoder.tag(tag);
          }
          else
          {
            //get the appropriate YABOT action class
            EcYabotEncoder.Action yabotAction = yabotMapping.get(a.getClass());
View Full Code Here

Examples of com.knowledgebooks.nlp.fasttag.FastTag.tag()

    FastTag tagger = new FastTag();

    List<String> words = Lists.newArrayList(Splitter.on(CharMatcher.WHITESPACE).trimResults().omitEmptyStrings()
        .split(current));

    List<String> tagged = tagger.tag(words);
    IIndexWord idxWord;
    List<IWordID> wordID;
    IWord word;
    StringBuilder outDef = new StringBuilder();
View Full Code Here

Examples of com.mdimension.jchronic.utils.Token.tag()

      if (RepeaterDayPortion.DayPortion.MORNING.equals(t1TagType)) {
        if (options.isDebug()) {
          System.out.println("Chronic.dealiasAndDisambiguateTimes: morning->am");
        }
        t1.untag(RepeaterDayPortion.class);
        t1.tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.AM));
      }
      else if (RepeaterDayPortion.DayPortion.AFTERNOON.equals(t1TagType) || RepeaterDayPortion.DayPortion.EVENING.equals(t1TagType) || RepeaterDayPortion.DayPortion.NIGHT.equals(t1TagType)) {
        if (options.isDebug()) {
          System.out.println("Chronic.dealiasAndDisambiguateTimes: " + t1TagType + "->pm");
        }
View Full Code Here

Examples of edu.stanford.nlp.ling.CategoryWordTag.tag()

            tag = cat;
            word = headChild.label().value();
          } else {
            CategoryWordTag headLabel = (CategoryWordTag) headChild.label();
            word = headLabel.word();
            tag = headLabel.tag();
          }
          Label label = new CategoryWordTag(cat, word, tag);
          t.setLabel(label);
        }
      }
View Full Code Here

Examples of edu.stanford.nlp.ling.CoreLabel.tag()

    List<TaggedWord> taggedWords = null;
    List<Label> leaves = null;
    List<CoreLabel> tokens = sentence.get(CoreAnnotations.TokensAnnotation.class);
    for (int i = 0; i < tokens.size(); ++i) {
      CoreLabel token = tokens.get(i);
      if (token.tag() == null) {
        if (taggedWords == null) {
          taggedWords = tree.taggedYield();
        }
        if (leaves == null) {
          leaves = tree.yield();
View Full Code Here

Examples of edu.stanford.nlp.ling.HasTag.tag()

      if (sentence.get(i) instanceof CoreLabel) {
        originalCoreLabels[i] = (CoreLabel) sentence.get(i);
      }
      if (sentence.get(i) instanceof HasTag) {
        HasTag tag = (HasTag) sentence.get(i);
        if (tag.tag() != null) {
          originalTags[i] = tag;
        }
      }

      if (op.testOptions.verbose && (!wordIndex.contains(s) || !lex.isKnown(wordIndex.indexOf(s)))) {
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.