Ejemplo n.º 1
0
 public static header_map step1(doc_reader docs)
 {
     header_map ret = new header_map();
     foreach (doc_reader.doc doc in docs) {
         ret.push(doc.title, new doc_reader.doc.location(doc.id));
         //TODO 同义词
     }
     return ret;
 }
Ejemplo n.º 2
0
        public static header_map step1(doc_reader docs)
        {
            header_map ret = new header_map();

            foreach (doc_reader.doc doc in docs)
            {
                ret.push(doc.title, new doc_reader.doc.location(doc.id));
                //TODO 同义词
            }
            return(ret);
        }
Ejemplo n.º 3
0
 public static link_map step2(doc_reader docs, header_map links)
 {
     link_map ret = new link_map();
     //双循环可以改成多线程做
     foreach(doc_reader.doc doc in docs){
         foreach(KeyValuePair<string, doc_reader.doc.location> link in links){
             Regex law_regex = new Regex(link.Key);
             link_map temp= step2_each(doc, link, law_regex);
             ret.union(temp);
         }
     }
     return ret;
 }
Ejemplo n.º 4
0
        public static link_map step2(doc_reader docs, header_map links)
        {
            link_map ret = new link_map();

            //双循环可以改成多线程做
            foreach (doc_reader.doc doc in docs)
            {
                foreach (KeyValuePair <string, doc_reader.doc.location> link in links)
                {
                    Regex    law_regex = new Regex(link.Key);
                    link_map temp      = step2_each(doc, link, law_regex);
                    ret.union(temp);
                }
            }
            return(ret);
        }