Search Applications


Data Structures

struct  simplePhraseLocationElement
struct  phraseLocationElement
struct  phraseLocationWithSrcSentElement
struct  sentSearchTableElement
class  C_SuffixArraySearchApplicationBase

Typedefs

typedef simplePhraseLocationElement S_SimplePhraseLocationElement
typedef phraseLocationElement S_phraseLocationElement
typedef phraseLocationWithSrcSentElement S_phraseLocationWithSrcSentElement
typedef sentSearchTableElement S_sentSearchTableElement

Functions

int main (int argc, char *argv[])

Typedef Documentation

typedef struct phraseLocationElement S_phraseLocationElement

Used by findPhraseInASentence() to return the location of an embedded n-gram in the corpus <posStartInSrcSent, posEndInSrcSent> represents the embedded n-gram in the sentence <sentIdInCorpus, posInSentInCorpus> represents the location in the corpus

typedef struct phraseLocationWithSrcSentElement S_phraseLocationWithSrcSentElement

typedef struct sentSearchTableElement S_sentSearchTableElement

typedef struct simplePhraseLocationElement S_SimplePhraseLocationElement

Used by locateExactPhraseInCorpus() to return the location of an matched n-gram in the corpus as a pair of <sentenceId, offset pos in sentence>


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Locate an n-gram in the indexed corpus, return its locations as <sentId, offsetInSent> pairs SentID and offset are all 1-based

Note: The offset of the n-gram in a sentence is represented as "char" in the returned structure S_SimplePhraseLocationElement To output it as a number, one needs to cast it to integer type for proper display

Revision

Rev
3794
Last Modified
LastChangedDate
2007-06-29 02:17:32 -0400 (星期五, 29 六月 2007)

Definition at line 25 of file LocateNgramInCorpus.cpp.

References C_SuffixArraySearchApplicationBase::loadData_forSearch(), and C_SuffixArraySearchApplicationBase::locateExactPhraseInCorpus().


Generated on Fri Jul 6 23:11:17 2007 for SALM by  doxygen 1.5.1