Package | Description |
---|---|
monq.ie |
functionality specifically targeting natural language processing.
|
monq.jfa |
Implements Finite Automata, deterministic and
nondeterministic, with an engine for high throughput filtering of
text.
|
monq.jfa.actions |
contains general purpose classes to be used as callbacks in
finite automata created with package
monq.jfa . |
monq.jfa.ctx |
adds support for recursive parsing to jfa that in particular
allows easy XML parsing as an alternative to SAX.
|
monq.programs |
a collection of command line programs.
|
Modifier and Type | Method and Description |
---|---|
static DfaRun |
Term2Re.createConverter(java.lang.String wordSplitRe,
java.lang.String wordSepRe,
java.lang.String trailContextRe,
ReParser rp)
creates a
DfaRun able to convert a multi word
term into a regular expression which matches obvious
orthographical variations of that term. |
Modifier and Type | Method and Description |
---|---|
static void |
FaToDot.main(java.lang.String[] argv)
each command line argument is taken to be a regular expression
which is added to a
Nfa with a unique action. |
Nfa |
Nfa.or(java.lang.CharSequence re)
adds the given regular expression to the automaton (expert
only).
|
Nfa |
Nfa.or(java.lang.CharSequence regex,
FaAction action)
adds the given regular expression
re to the
automaton and associates it with the given action. |
void |
ReClassicParser.parse(NfaParserView nfa,
java.lang.CharSequence s) |
void |
ReParser.parse(NfaParserView nfa,
java.lang.CharSequence regex)
parses
regex while building up the automaton in
nfa . |
Nfa |
Nfa.seq(java.lang.CharSequence s)
calls
Nfa.seq(CharSequence,FaAction) with
null as the 2nd parameter. |
Nfa |
Nfa.seq(java.lang.CharSequence regex,
FaAction a)
extend the current automaton to recognize
regex
as a suffix of the strings already recognized and arrange for the
given action to be called if the suffix was recognized. |
static Dfa |
Misc.wrapRoi(java.lang.CharSequence reStart,
FaAction startAction,
DfaRun.FailedMatchBehaviour inRoi,
java.lang.CharSequence reEnd,
FaAction endAction,
DfaRun.FailedMatchBehaviour outsideRoi,
Nfa client)
wraps a
Nfa into another one which defines a region
of interest (ROI). |
Constructor and Description |
---|
Nfa(java.lang.CharSequence regex)
calls
Nfa.Nfa(CharSequence,FaAction) with the 2nd
parameter set to null . |
Nfa(java.lang.CharSequence regex,
FaAction a)
creates an
Nfa from the given
regular expression and
assigns the given action to the stop state. |
PrintfFormatter(java.lang.CharSequence format) |
PrintfFormatter(java.lang.CharSequence format,
int start) |
RegexpSplitter(java.lang.CharSequence re,
int what)
creates a
TextSplitter to split text according the
given regular expression re . |
Constructor and Description |
---|
Printf(boolean useSubmatches,
java.lang.String format)
create an
FaAction to format a match according to
the given format string. |
Printf(java.lang.String format)
creates an
FaAction to format a match according to
the given format string. |
SearchReplace(java.lang.String regexp,
java.lang.String format)
calls the four parameter constructor with
sp=null and
count==-1 . |
SearchReplace(java.lang.String regexp,
java.lang.String format,
int count)
calls the four parameter constructor with
sp==null . |
SearchReplace(java.lang.String regexp,
TextSplitter sp,
Formatter fmt,
int count)
creates an action to search and replace within a match.
|
Modifier and Type | Method and Description |
---|---|
Context |
ContextManager.add(Context parent,
java.lang.String reIn,
java.lang.String reOut)
adds a new context to the client
Nfa . |
Context |
ContextManager.add(java.lang.String reIn,
java.lang.String reOut)
calls
ContextManager.add(Context,String,String) such that the
context is entered in any parent context. |
Context |
ContextManager.addXml()
calls
ContextManager.add(Context,String,String) such that
reIn and reOut match the start and end
of any XML element. |
Context |
ContextManager.addXml(Context parent,
java.lang.String tagname)
calls
add(parent,reIn,reOut) such that reIn and
reOut match the start and end of the XML element
with the given tagname . |
Context[] |
ContextManager.addXml(Context parent,
java.lang.String[] tagnames)
creates a nested hierarchy of contexts defined by the XML
tagnames given.
|
Context |
ContextManager.addXml(java.lang.String tagname)
calls
ContextManager.add(Context,String,String)
such that reIn and reOut match the
start and end of the XML element with the given
tagname . |
Modifier and Type | Method and Description |
---|---|
static void |
DictFilter.main(java.lang.String[] argv)
run on the commandline with
-h to get a description. |
Constructor and Description |
---|
DictFilter(java.io.Reader mwtFile,
java.lang.String inputType,
java.lang.String elemName,
boolean verbose) |
DictFilter(java.io.Reader mwtFile,
java.lang.String inputType,
java.lang.String elemName,
boolean verbose,
boolean memDebug,
boolean defaultWord)
creates a
DictFilter from the given
Reader which must comply to the format
described above. |
Grep(boolean copy,
boolean autoPrio,
java.lang.String[] args)
create a
Grep without ROI. |
Grep(java.lang.String roiOn,
java.lang.String roiOff,
java.lang.String rfOn,
java.lang.String rfOff,
DfaRun.FailedMatchBehaviour fmRoi,
boolean select,
boolean copyEnv,
boolean autoPrio,
java.lang.String[] args)
create a
Grep with ROI. |