public class MathTokenizer
extends org.apache.lucene.analysis.Tokenizer
| Modifier and Type | Class and Description |
|---|---|
static class |
MathTokenizer.MathMLType |
| Constructor and Description |
|---|
MathTokenizer(Reader input,
boolean subformulae,
String mmldtd,
MathTokenizer.MathMLType type) |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,List<Formula>> |
getFormulae() |
Map<String,Float> |
getQueryFormulae() |
boolean |
incrementToken() |
static void |
printFormulaeCount()
Prints numbers of processed formulae to standard output
|
void |
reset() |
void |
reset(Reader input) |
void |
setFormulaPosition(int formulaPosition)
Overrides the position attribute for all processed formulae
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic MathTokenizer(Reader input, boolean subformulae, String mmldtd, MathTokenizer.MathMLType type)
input - Reader containing the input to processsubformulae - if true, subformulae will be extractedmmldtd - Path to MathML DTD filetype - type of MathML that should be processedpublic void setFormulaPosition(int formulaPosition)
formulaPosition - Position number to be used for all processed formulaepublic boolean incrementToken()
incrementToken in class org.apache.lucene.analysis.TokenStreampublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset(Reader input) throws IOException
reset in class org.apache.lucene.analysis.TokenizerIOExceptionpublic Map<String,Float> getQueryFormulae()
public static void printFormulaeCount()
Copyright © 2013. All Rights Reserved.