Package com.NLP.ReqExp

Examples of com.NLP.ReqExp.RegExp


  private RegExp regexp;
  private HashSet<String> set;
  public Vocab(){
    set = new HashSet<String>();
    data = new String[8];
    regexp = new RegExp();
    data[0] = "cnn-turk.txt";
    data[1] = "derlem-lisans.txt";
    data[2] = "dunya.txt";
    //data[3] = "hukuki-net.txt";
    data[3] = "milliyet-sondakika.txt";
View Full Code Here


  public int TP = 0,TN = 0,FN = 0,FP = 0;
  public double presicion,recall;
  public double fMeasure;
  public String[] punctuations = {"," ,"@","\"","<",">","+","-","*","/",")","(","{","}","=","/",";","&","^","'","#","$","£","|","_","~",":"};
   public Test(){
    regExp = new RegExp();
    golden = new ArrayList<String>();
    results = new ArrayList<String>();
  }
View Full Code Here

    data[3] = "milliyet-sondakika.txt";
    data[4] = "ntvmsnbc.txt";
    data[5] = "radikal.txt";
    data[6] = "star-gazete.txt";
    data[7] = "tbmm.txt";
    regexp = new RegExp();
  }
View Full Code Here

  public static void main(String[] args) {
    Train t = new Train();
    t.WriteTrainData();
  }
  public Train(){
    regexp = new RegExp();
    data = new String[8];
    data[0] = "cnn-turk.txt";
    data[1] = "derlem-lisans.txt";
    data[2] = "dunya.txt";
    //data[3] = "hukuki-net.txt";
View Full Code Here

TOP

Related Classes of com.NLP.ReqExp.RegExp

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.