File LRPpreprocessor Documentation

Automatically generated with Code Structure Viewer (CS), Project Version: 3o4d 17-November-2020

Copyright © 2020, BAI Research. All Rights Reserved.

File Name: LRPpreprocessor.cpp/.hpp

File Description: LRP preprocessor

File Function List


File Diagram (functions hierarchy)


Function LRPpreprocessorClass::preprocessTextForGIAwrapper()

Function Summary
namereturn typedescription
preprocessTextForGIAwrapperboolpreprocess text for GIA wrapper

Function Arguments
nametypedescription
useLRPconst bool use LRP
inputTextPlainTXTfileName string* input text plain TXT file name
outputLRPTextPlainTXTFileName const string output LRPT ext plain TXTF ile name
isQuery bool is query
translatorVariables LRPtranslatorVariablesClass* translator variables
useInputTextPlainTXTFile bool* use input text plain TXTF ile
inputTextNLPfeatureXMLfileName const string input text NLP feature XML file name

Function Reference List


Function Trace
locationcurrent function being traced
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::preprocessTextForGIA()

Function Summary
namereturn typedescription
preprocessTextForGIAboolpreprocess text for GIA

Function Arguments
nametypedescription
inputTextPlainTXTfileNamestring* input text plain TXT file name
outputLRPTextPlainTXTFileName const string output LRPT ext plain TXTF ile name
isQuery bool is query
translatorVariables LRPtranslatorVariablesClass* translator variables
inputTextNLPfeatureXMLfileName const string input text NLP feature XML file name

Function Reference List


Function Trace
locationcurrent function being traced
LRPpreprocessor.hpppreprocessTextForGIA
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::preprocessSentencesForGIAwrapper()

Function Summary
namereturn typedescription
preprocessSentencesForGIAwrapperboolpreprocess sentences for GIA wrapper

Function Arguments
nametypedescription
translatorVariablesLRPtranslatorVariablesClass* translator variables
outputLRPTextPlainTXTFileName const string output LRPT ext plain TXTF ile name
inputTextNLPfeatureXMLfileName const string input text NLP feature XML file name
outputFileName string output file name
outputFileNameLRPforNLP string output file name LRP for NLP
isQuery bool is query

Function Reference List


Function Trace
locationcurrent function being traced
LRPpreprocessor.hpppreprocessSentencesForGIAwrapper
LRPpreprocessor.hpppreprocessTextForGIA
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::regenerateFileFromPreprocessedTextWithoutLRP()

Function Summary
namereturn typedescription
regenerateFileFromPreprocessedTextWithoutLRPboolregenerate file from preprocessed text without LRP

Function Arguments
nametypedescription
inputTextPlainTXTfileNamestring* input text plain TXT file name
outputLRPTextPlainTXTFileName const string output LRPT ext plain TXTF ile name
translatorVariables const LRPtranslatorVariablesClass* translator variables

Function Reference List


Function Trace
locationcurrent function being traced
LRPpreprocessor.hppregenerateFileFromPreprocessedTextWithoutLRP
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::createPreprocessSentencesForGIA()

Function Summary
namereturn typedescription
createPreprocessSentencesForGIAboolcreate preprocess sentences for GIA

Function Arguments
nametypedescription
inputFileNameconst string input file name
translatorVariables LRPtranslatorVariablesClass* translator variables

Function Reference List


Function Trace
locationcurrent function being traced
LRPpreprocessor.hppcreatePreprocessSentencesForGIA
LRPpreprocessor.hpppreprocessTextForGIA
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::createPreprocessSentences()

Function Summary
namereturn typedescription
createPreprocessSentencesboolcreate preprocess sentences

Function Arguments
nametypedescription
fileContentsstring file contents
firstLRPpreprocessorSentenceInList LRPpreprocessorSentence* first LRP preprocessor sentence in list
interpretNewLinesAsNewSentences const bool interpret new lines as new sentences
splitMultisentenceLines const bool split multisentence lines

Function Reference List


Function Trace
locationcurrent function being traced
LRPpreprocessor.hppcreatePreprocessSentences
LRPpreprocessor.hppcreatePreprocessSentencesForGIA
LRPpreprocessor.hpppreprocessTextForGIA
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)


Function LRPpreprocessorClass::extractIndentationFromCurrentLine()

Function Summary
namereturn typedescription
extractIndentationFromCurrentLineboolextract indentation from current line

Function Arguments
nametypedescription
lineContentsstring* line contents
indexOfCurrentToken int* index of current token
currentIndentation int* current indentation
indentationContents string* indentation contents

Function Reference List
N/A


Function Trace
locationcurrent function being traced
LRPpreprocessor.hppextractIndentationFromCurrentLine
LRPpreprocessor.hppcreatePreprocessSentences
LRPpreprocessor.hppcreatePreprocessSentencesForGIA
LRPpreprocessor.hpppreprocessTextForGIA
GIAmain.hpppreprocessTextForGIAwrapper

Trace Diagram (magenta)