I started to read Java, but I couldn't quite understand it. I didn't learn Java, and I found it later. net is mainly used to study dotlucene. Since I have just come into contact with C #, it is still a little difficult to study such an open-source project. However, I prefer the search class, so I still read it, I have read a lot of materials, English and Chinese, and now I have finally succeeded in debugging and added a Word Segmentation Based on word lists.
There are still highlighter highlighted ones, which are under study!
There is also the self-written html2text, which doesn't feel very efficient, alwaysProgramThe program stops running! I don't know why
1 Public String Html2text ( String Content, String S, String E)
2 {
3 Int S_pos = Content. indexof (s ); // Locate the start string
4 While (S_pos ! =- 1 )
5 {
6 Int E_pos = Content. indexof (E, s_pos ); // End string position
7 If (E_pos ! =- 1 ) // If an end string exists, replace it with another string.
8 {
9 String Replacestr = Content. substring (s_pos, e_pos + E. Length - S_pos ); // Character to be replaced between the start string and the end string
10 Content = Content. Replace (replacestr, "" );
11 S_pos = Content. indexof (s );
12 }
13 }
14 Content = Content. Replace ( " \ N " , "" );
15 Content = Content. Replace ( " \ R " , "" );
16 Content = Content. Replace ( " " , "" );
17 Content = Content. Replace ( " " , "" ); // Tab key Filtering
18 // Content = content. Replace ("& nbsp ;",""); // Space Filtering
19 Return Content;
20 }
I used to write data in VB. It may be related to one index!