Examples of tag()


Examples of org.fnlp.nlp.cn.tag.CWSTagger.tag()

   */
  public static void main(String[] args) throws Exception {
    CWSTagger tag = new CWSTagger("../models/seg.m");
    System.out.println("不使用词典的分词:");
    String str = " 媒体计算研究所成立了, 高级数据挖掘(data mining)很难。 乐phone热卖!";
    String s = tag.tag(str);
    System.out.println(s);
   
    //设置英文预处理
    tag.setEnFilter(true);
    s = tag.tag(str);
View Full Code Here

Examples of org.fnlp.nlp.cn.tag.NERTagger.tag()

  public static void main(String[] args) throws Exception {
   
    NERTagger tag = new NERTagger("../models/seg.m","../models/pos.m");
    String str = " 新浪体育讯 北京时间4月15日03:00(英国当地时间14日20:00),2009/10赛季英格兰足球超级联赛第34轮一场焦点战在白鹿巷球场展开角逐,阿森纳客场1比2不敌托特纳姆热刺,丹尼-罗斯和拜尔先入两球,本特纳扳回一城。阿森纳仍落后切尔西6分(净胜球少15个),夺冠几成泡影。热刺近 7轮联赛取得6胜,继续以1分之差紧逼曼城。";
    HashMap<String, String> map = new HashMap<String, String>();
    tag.tag(str,map);
    System.out.println(map);
    map = tag.tagFile("../example-data/data-tag.txt");
    System.out.println(map);
    System.out.println("Done!");
  }
View Full Code Here

Examples of org.goda.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 org.jacorb.orb.etf.ProfileBase.tag()

            // See if JacORB managed to parse this tag before into the ParsedIOR
            for (int j=0; j < profiles.size(); j++)
            {
                final IIOPProfile profile = (IIOPProfile)profiles.get(j);

                if (profile.tag () == tag)
                {
                    found = true;
                }

                if (tag == TAG_MULTIPLE_COMPONENTS.value)
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile.tag()

            // See if JacORB managed to parse this tag before into the ParsedIOR
            for (int j=0; j < profiles.size(); j++)
            {
                final IIOPProfile profile = (IIOPProfile)profiles.get(j);

                if (profile.tag () == tag)
                {
                    found = true;
                }

                if (tag == TAG_MULTIPLE_COMPONENTS.value)
View Full Code Here

Examples of org.jsoup.nodes.Element.tag()

                    accum.append(attribute.getValue());
                    accum.append('"');
                }
            }

            if (element.childNodes().isEmpty() && element.tag().isEmpty()) {
                accum.append(" />");
            } else {
                accum.append(">");
                for (Node child : element.childNodes())
                    accum.append(cleanHtml(child));
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.structure.Feature.tag()

    }

    @Test
    public void should_add_tag_to_feature() {
        final Feature feature = featureWith(successScenario());
        feature.tag("TEST TAG1");
        assertThat(feature.getTags(), contains("TEST TAG1"));
    }

    @Test
    public void should_add_all_tags_to_feature() {
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.structure.Scenario.tag()

public class AddTagTest {

    @Test
    public void should_add_tag_to_scenario() {
        final Scenario scenario = successScenario();
        scenario.tag("TEST TAG1");
        assertThat(scenario.getTags(), contains("TEST TAG1"));
    }

    @Test
    public void should_add_all_tags_to_scenario() {
View Full Code Here

Examples of org.omg.ETF.Profile.tag()

    {
       int retVal = 0;
       for (int i=0; i < _profiles.size(); i++)
       {
           Profile p = (Profile) _profiles.get(i);
           if ( p.tag() == tag )
           {
              retVal++;
           }
       }
       return retVal;
View Full Code Here

Examples of org.rendersnake.HtmlCanvas.tag()

        tidy.setDocType("loose");
        tidy.parse(new ByteArrayInputStream(html.toHtml().getBytes()), System.out);       
    }
    public void testPageRenderWithError() throws IOException {
        HtmlCanvas html = new HtmlCanvas();
        html.tag("bogus");
        html.render(new PersonalPage());
       
        Tidy tidy = new Tidy();
        tidy.setMessageListener(new TidyMessageCheck());
        tidy.setXHTML(true);
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.