ddc
Classes | Typedefs | Functions
TermExpander.h File Reference
#include "../CommonLib/utilit.h"
#include "CCurl.h"
Include dependency graph for TermExpander.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CTermExpander
 Abstract API for term-expansion modules (e.g. thesauri, morphologies, equivalence maps, ...) More...
 
class  TxId
 TxId: identity expander (null-op): params: none. More...
 
class  TxChain
 
class  TxLang
 TxLang: abstract base class for language-dependent term expanders. More...
 
class  TxMorph
 TxMorph: default backwards-compatible morphological expansion (morphy) More...
 
class  TxToLower
 TxToLower: convert input to all-lower-case. More...
 
class  TxToUpper
 TxToUpper: convert input to all-upper-case. More...
 
class  TxCase
 TxCase: letter-case (upper<->lower) expander. More...
 
class  TxCurl
 TxCurl: abstract term expander using libcurl. More...
 
class  TxCab
 TxCab: HTTP-based term expander using DTA::CAB HTTP protocol I/O format is DTA::CAB::Format::ExpandList (newline- and TAB-separated lists) More...
 
class  TxCabMap
 TxCabMap: HTTP-based term expander using DTA::CAB HTTP protocol in "map-mode". More...
 
class  TxDispatcher
 TxDispatcher: name-based expansion dispatcher. More...
 

Typedefs

typedef vector< CTermExpander * > TxList
 TxChain: serial chain of (multiple) expanders. More...
 

Functions

void parseTermExpanderSpec (const string &spec, string &txclass, string &txlabel, string &txparam)
 parse a term expander specification as a space-separated (" \t\n\r") list "LABEL [CLASS=LABEL [PARAM='']]" More...
 
CTermExpandernewTermExpander (const string &class_="Id", const string &label=string(""), const string &param=string(""))
 create a new TermExpander from a parsed specification More...
 

Typedef Documentation

◆ TxList

typedef vector<CTermExpander*> TxList

TxChain: serial chain of (multiple) expanders.

Function Documentation

◆ parseTermExpanderSpec()

void parseTermExpanderSpec ( const string &  spec,
string &  txclass,
string &  txlabel,
string &  txparam 
)

parse a term expander specification as a space-separated (" \t\n\r") list "LABEL [CLASS=LABEL [PARAM='']]"

References StringTokenizer::next_token().

Referenced by TxDispatcher::addExpander(), and TxDispatcher::ensureDefaultExpanders().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newTermExpander()

CTermExpander* newTermExpander ( const string &  class_ = "Id",
const string &  label = string(""),
const string &  param = string("") 
)

create a new TermExpander from a parsed specification

References EngMakeLower(), errLogic, and Trim().

Referenced by TxDispatcher::addExpander(), BxTermWrapper::BxTermWrapper(), and TxDispatcher::ensureDefaultExpanders().

Here is the call graph for this function:
Here is the caller graph for this function: