Examples of tag()


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

      }
      buf.append(" ");
      if (applyParens)
        buf.append("(");
      if (tabu.contains(tgtVert)) {
        buf.append("{tag:"); buf.append(tgtVert.tag()); buf.append("}");
        if (useWordAsLabel) {
          buf.append("=");
          buf.append(tgtVert.word());
          buf.append(" ");
        }
View Full Code Here

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

    Set<Symbol> singletonChars = Counters.keysBelow(charCounter, 1.5);
    Set<TaggedWord> singletonWords = Counters.keysBelow(wordCounter, 1.5);

    ClassicCounter<String> singletonWordPOSes = new ClassicCounter<String>();
    for (TaggedWord taggedWord : singletonWords) {
      singletonWordPOSes.incrementCount(taggedWord.tag());
    }
    Distribution<String> singletonWordPOSDist = Distribution.getDistribution(singletonWordPOSes);

    ClassicCounter<Character> singletonCharRads = new ClassicCounter<Character>();
    for (Symbol s : singletonChars) {
View Full Code Here

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


  public Object apply(Object in) {
    if (in instanceof WordTag) {
      WordTag wt = (WordTag) in;
      String tag = wt.tag();
      return new WordTag(lemmatize(wt.word(), tag, lexer, lexer.option(1)), tag);
    }
    if (in instanceof Word) {
      return stem((Word) in);
    }
View Full Code Here

Examples of edu.washington.cs.knowitall.sequence.RegexTagger.tag()

    LayeredTokenPattern pattern = new LayeredTokenPattern(patternStr);
    RegexTagger tagger = new RegexTagger(pattern, "R");
    List<String> testList = listize(test);
    SimpleLayeredSequence seq = new SimpleLayeredSequence(testList.size());
    seq.addLayer("w", testList);
    return tagger.tag(seq);
  }

  @Test
  public void testTag1() throws SequenceException {
    String patternStr = "[she_w saw_w sea_w shells_w]";
View Full Code Here

Examples of er.chronic.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 javax.ws.rs.core.Response.ResponseBuilder.tag()

        final ResponseBuilder respBuilder = ResourceAbstract.responseOfOk(renderer, Caching.NONE);

        final Version version = objectAdapter.getVersion();
        if (version != null && version.getTime() != null) {
            respBuilder.tag(ETAG_FORMAT.format(version.getTime()));
        }
        return respBuilder.build();
    }

    // //////////////////////////////////////////////////////////////
View Full Code Here

Examples of liquibase.Liquibase.tag()

                LockService lockService = LockServiceFactory.getInstance().getLockService(database);
                lockService.forceReleaseLock();
                System.err.println("Successfully released all database change log locks for " + liquibase.getDatabase().getConnection().getConnectionUserName() + "@" + liquibase.getDatabase().getConnection().getURL());
                return;
            } else if ("tag".equalsIgnoreCase(command)) {
                liquibase.tag(commandParams.iterator().next());
                System.err.println("Successfully tagged " + liquibase.getDatabase().getConnection().getConnectionUserName() + "@" + liquibase.getDatabase().getConnection().getURL());
                return;
            } else if ("dropAll".equals(command)) {
                liquibase.dropAll();
                System.err.println("All objects dropped from " + liquibase.getDatabase().getConnection().getConnectionUserName() + "@" + liquibase.getDatabase().getConnection().getURL());
View Full Code Here

Examples of net.geco.basics.Html.tag()

    config.add(new JLabel(Html.htmlTag("font", "color=\"red\"", "Warning! Only use this function if station memories have been erased before the race.")));
    config.add(new JLabel("Place Start, Check, or Clear stations on the master station. " +
        "Function reads backup memory to detect:"));
    Html help = new Html();
    help.open("ul");
    help.tag("li", "registered runners which have started but not yet arrived");
    help.tag("li", "registered runners which did not start");
    help.tag("li", "unregistered e-cards");
    help.close("ul");
    config.add(new JLabel(help.close()));
   
View Full Code Here

Examples of net.rim.device.api.lbs.maps.model.MapDataModel.tag()

            classBasedStyle.setLabelFontStyle(Font.BOLD);
            styles.addClassBasedStyle(MapLocation.class, classBasedStyle);

            final int rimOfficeID = data.add(rimOffice, "rim");

            data.tag(rimOfficeID, "head"); // Locations can have more than one
                                           // tag
            data.setVisible("head");

            final int displayWidth = Display.getWidth();
            final int displayHeight = Display.getHeight();
View Full Code Here

Examples of opennlp.tools.postag.POSTaggerME.tag()

    POSModel model = new POSModel(posModelStream);
   
    POSTaggerME tagger = new POSTaggerME(model);
    String[] words = SimpleTokenizer.INSTANCE.tokenize( //<co id="opennlpPOS.co.tokenize"/>
        "The quick, red fox jumped over the lazy, brown dogs.");
    String[] result = tagger.tag(words);//<co id="opennlpPOS.co.dotag"/>
    for (int i=0 ; i < words.length; i++) {
      System.err.print(words[i] + "/" + result[i] + " ");
    }
    System.err.println("\n");
    /*
 
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.