Debian Codegraph @

lucene/benchmark/conf/shingle.alg

raw
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 content.source=org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource
17 doc.tokenized=false
18 doc.body.tokenized=true
19 work.dir=data
20 docs.dir=reuters21578
21 log.step=1000
22
23 -AnalyzerFactory(name:shingle-bigrams-unigrams,
24 StandardTokenizer,
25 ShingleFilter(maxShingleSize:2, outputUnigrams:true))
26
27 -AnalyzerFactory(name:shingle-bigrams,
28 StandardTokenizer,
29 ShingleFilter(maxShingleSize:2, outputUnigrams:false))
30
31 -AnalyzerFactory(name:shingle-4grams-unigrams,
32 StandardTokenizer,
33 ShingleFilter(maxShingleSize:4, outputUnigrams:true))
34
35 -AnalyzerFactory(name:shingle-4grams,
36 StandardTokenizer,
37 ShingleFilter(maxShingleSize:4, outputUnigrams:false))
38
39 -AnalyzerFactory(name:standard-tokenizer-only, StandardTokenizer)
40
41 { "Rounds"
42
43 -NewAnalyzer(shingle-bigrams-unigrams)
44 -ResetInputs
45 { "BigramsAndUnigrams" { ReadTokens > : 10000 }
46
47 -NewAnalyzer(shingle-bigrams)
48 -ResetInputs
49 { "BigramsOnly" { ReadTokens > : 10000 }
50
51 -NewAnalyzer(shingle-4grams-unigrams)
52 -ResetInputs
53 { "FourgramsAndUnigrams" { ReadTokens > : 10000 }
54
55 -NewAnalyzer(shingle-4grams)
56 -ResetInputs
57 { "FourgramsOnly" { ReadTokens > : 10000 }
58
59 -NewAnalyzer(standard-tokenizer-only)
60 -ResetInputs
61 { "UnigramsOnly" { ReadTokens > : 10000 }
62
63 NewRound
64
65 } : 5
66
67 RepSumByNameRound