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 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 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>
| 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
Definition at line 25 of file LocateNgramInCorpus.cpp.
References C_SuffixArraySearchApplicationBase::loadData_forSearch(), and C_SuffixArraySearchApplicationBase::locateExactPhraseInCorpus().
1.5.1