private static void addFullTextPipes ( List < String > usedPipeNames , List < Pipe > pipes ) { // blabla 24 24 pipes . add ( new LongRegexSpaced ( "digit_then_other_then_digit" , Pattern . compile ( "\\d+[^\\d]+\\d+" ) , 2 , 4 ) ) ; // 30 mM K SO , 5 mM MgCl 6H O, 10 mM 24 24 22 HEPES pipes . add ( new LongRegexSpaced ( "digit_then_other_then_digit_then_other_then_digit" , Pattern . compile ( ".*\\d+[^\\d\\n]+\\d+[^\\d\\n]+\\d+.*" ) , 4 , 9 ) ) ; // n 19 // n 5 pipes . add ( new LongRegexSpaced ( "n_space_digit" , Pattern . compile ( "n \\d+" ) , 2 , 2 ) ) ; pipes . add ( new LongRegexSpaced ( "parenthesis_n_space_digit_parenthesis" , Pattern . compile ( "\\( n \\d+ \\)" ) , 3 , 4 ) ) ; pipes . add ( new LongRegexSpaced ( "n_space_digit_parenthesis" , Pattern . compile ( "n \\d+ \\)" ) , 3 , 4 ) ) ; pipes . add ( new LongRegexSpaced ( "parenthesis_n_space_digit" , Pattern . compile ( "\\( n \\d+" ) , 3 , 4 ) ) ; // Fig is never found in any lexicon pipes . add ( new RegexMatches ( "Figure" , Pattern . compile ( ".*Fig.*" ) ) ) ; }
Pipes added based on experience with full text