Package org.fnlp.nlp.pipe.seq.templet

Examples of org.fnlp.nlp.pipe.seq.templet.CharInStringTemplet


    // templets.add(new DictionaryTemplet(d, gid++, -1, 0));
    // templets.add(new DictionaryTemplet(d, gid++, 0, 1));
    // templets.add(new DictionaryTemplet(d, gid++, -1,0, 1));
    // templets.add(new DictionaryTemplet(d, gid++, -2,-1,0, 1));

    templets.add(new CharInStringTemplet(templets.gid++,-1,1));
    templets.add(new CharInStringTemplet(templets.gid++,0,1));
    templets.add(new CharInStringTemplet(templets.gid++,-2,2));
    templets.add(new StringTypeTemplet(templets.gid++));

    CharClassDictionary dsurname = new CharClassDictionary();
    dsurname.load("../data/knowledge/百家姓.txt", "姓");
    templets.add(new CharClassTemplet(templets.gid++, new CharClassDictionary[]{dsurname}));
View Full Code Here

TOP

Related Classes of org.fnlp.nlp.pipe.seq.templet.CharInStringTemplet

Copyright © 2018 www.massapicom. 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.