File GIAnlp Documentation

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

Copyright © 2020, BAI Research. All Rights Reserved.

File Name: GIAnlp.cpp/.hpp

File Description: GIA nlp

File Function List


File Diagram (functions hierarchy)


Function GIAnlpClass::executeNLPparser()

Function Summary
namereturn typedescription
executeNLPparservoidexecute NLP parser

Function Arguments
nametypedescription
inputTextPlainTXTfileNameconst string input text plain TXT file name
inputTextNLPXMLfileName const string input text NLPXML file name
translatorVariables const GIAtranslatorVariablesClass* translator variables
parseRelationsOrFeatures const bool parse relations or features

Function Reference List


Function Trace
locationcurrent function being traced
GIAmain.hppexecuteNLPparser
GIAposRelTranslatorHybrid.hppexecuteNLPparser
LRPpreprocessor.hppexecutePrelimFeatureProcessingOnSentences
LRPpreprocessor.hpppreprocessSentencesForGIAwrapper
LRPpreprocessor.hpppreprocessTextForGIA

Trace Diagram (magenta)


Function GIAnlpClass::parseNLPparserFile()

Function Summary
namereturn typedescription
parseNLPparserFileboolparse NLP parser file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
inputTextNLPfeatureXMLfileName const string input text NLP feature XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
NLPfeatureParser const int NLP feature parser
NLPdependencyRelationsParser const int NLP dependency relations parser
NLPrelexCompatibilityMode bool NLP relex compatibility mode

Function Reference List


Function Trace
locationcurrent function being traced
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences

Trace Diagram (magenta)


Function GIAnlpClass::parseNLPparserFeaturesFile()

Function Summary
namereturn typedescription
parseNLPparserFeaturesFileboolparse NLP parser features file

Function Arguments
nametypedescription
inputTextNLPfeatureXMLfileNameconst string input text NLP feature XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
NLPfeatureParser const int NLP feature parser
createNewSentences bool* create new sentences

Function Reference List


Function Trace
locationcurrent function being traced
GIAnlp.hppparseNLPparserFeaturesFile
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslatorHybrid.hppparseNLPparserFeaturesFile
LRPpreprocessor.hppexecutePrelimFeatureProcessingOnSentences
LRPpreprocessor.hpppreprocessSentencesForGIAwrapper
LRPpreprocessor.hpppreprocessTextForGIA

Trace Diagram (magenta)


Function GIAnlpClass::parseNLPparserRelationsFile()

Function Summary
namereturn typedescription
parseNLPparserRelationsFileboolparse NLP parser relations file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
NLPdependencyRelationsParser const int NLP dependency relations parser
NLPrelexCompatibilityMode bool NLP relex compatibility mode
createNewSentences const bool create new sentences
onlyParseIfCorpusLookupFailed const bool only parse if corpus lookup failed

Function Reference List


Function Trace
locationcurrent function being traced
GIAnlp.hppparseNLPparserRelationsFile
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences

Trace Diagram (magenta)


Function GIAnlpClass::parseRelexFile()

Function Summary
namereturn typedescription
parseRelexFileboolparse relex file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
parseRelations const bool parse relations
parseFeatures const bool parse features
NLPrelexCompatibilityMode bool NLP relex compatibility mode
createNewSentences const bool create new sentences
onlyParseIfCorpusLookupFailed const bool only parse if corpus lookup failed

Function Reference List


Function Trace
locationcurrent function being traced
GIAnlp.hppparseRelexFile
GIAnlp.hppparseNLPparserFeaturesFile
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslatorHybrid.hppparseNLPparserFeaturesFile
LRPpreprocessor.hppexecutePrelimFeatureProcessingOnSentences
LRPpreprocessor.hpppreprocessSentencesForGIAwrapper
LRPpreprocessor.hpppreprocessTextForGIA
GIAnlp.hppparseRelexFile

Trace Diagram (magenta)


Function GIAnlpClass::parseStanfordCoreNLPfile()

Function Summary
namereturn typedescription
parseStanfordCoreNLPfileboolparse stanford core NLP file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
parseRelations const bool parse relations
parseFeatures const bool parse features
createNewSentences const bool create new sentences
onlyParseIfCorpusLookupFailed const bool only parse if corpus lookup failed

Function Reference List


Function Trace
locationcurrent function being traced
GIAnlp.hppparseStanfordCoreNLPfile
GIAnlp.hppparseNLPparserFeaturesFile
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslatorHybrid.hppparseNLPparserFeaturesFile
LRPpreprocessor.hppexecutePrelimFeatureProcessingOnSentences
LRPpreprocessor.hpppreprocessSentencesForGIAwrapper
LRPpreprocessor.hpppreprocessTextForGIA
GIAnlp.hppparseStanfordCoreNLPfile

Trace Diagram (magenta)


Function GIAnlpClass::parseStanfordParserFile()

Function Summary
namereturn typedescription
parseStanfordParserFileboolparse stanford parser file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
createNewSentences const bool create new sentences
onlyParseIfCorpusLookupFailed const bool only parse if corpus lookup failed

Function Reference List


Function Trace
locationcurrent function being traced
GIAnlp.hppparseStanfordParserFile
GIAnlp.hppparseNLPparserRelationsFile
GIAtranslator.hppparseNLPparserFile
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences

Trace Diagram (magenta)


Function GIAnlpClass::parseStanfordParserFile()

Function Summary
namereturn typedescription
parseStanfordParserFileboolparse stanford parser file

Function Arguments
nametypedescription
inputTextNLPrelationXMLfileNameconst string input text NLP relation XML file name
isQuery const bool is query
firstSentenceInList GIAsentence* first sentence in list
createNewSentences const bool create new sentences
parseGIA2file bool parse GIA2 file
onlyParseIfCorpusLookupFailed const bool only parse if corpus lookup failed

Function Reference List


Function Trace
locationcurrent function being traced
GIAsemRelTranslatorParser.hppparseStanfordParserFile
GIAsynRelTranslatorParser.hppgenerateAllPermutationsFromSemanticRelationsFile
GIAtranslator.hppconvertSentenceSyntacticRelationsIntoGIAnetworkNodes
GIAtranslator.hppconvertSentenceRelationsIntoGIAnetworkNodes
GIAtranslator.hppconvertSentenceRelationsIntoGIAnetworkNodesWrapper
GIAtranslator.hppconvertSentenceListRelationsIntoGIAnetworkNodes
GIAtranslator.hppcreateSemanticNetworkBasedUponDependencyParsedSentences
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAnlp.hppparseStanfordParserFile
GIAnlp.hppparseStanfordParserFile
GIAnlp.hppparseNLPparserRelationsFile

Trace Diagram (magenta)


Function GIAnlpClass::countSubstring()

Function Summary
namereturn typedescription
countSubstringintcount substring

Function Arguments
nametypedescription
strconst std::string& str
sub const std::string& sub

Function Reference List
N/A


Function Trace
locationcurrent function being traced
GIAnlp.hppcountSubstring
GIAsemRelTranslatorParser.hppparseStanfordParserFile
GIAsynRelTranslatorParser.hppgenerateAllPermutationsFromSemanticRelationsFile
GIAtranslator.hppconvertSentenceSyntacticRelationsIntoGIAnetworkNodes
GIAtranslator.hppconvertSentenceRelationsIntoGIAnetworkNodes
GIAtranslator.hppconvertSentenceRelationsIntoGIAnetworkNodesWrapper
GIAtranslator.hppconvertSentenceListRelationsIntoGIAnetworkNodes
GIAtranslator.hppcreateSemanticNetworkBasedUponDependencyParsedSentences
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAnlp.hppparseStanfordParserFile
GIAnlp.hppparseStanfordParserFile
GIAnlp.hppparseNLPparserRelationsFile

Trace Diagram (magenta)


Function GIAnlpClass::outputInternalRelationsInRelexFormat()

Function Summary
namereturn typedescription
outputInternalRelationsInRelexFormatvoidoutput internal relations in relex format

Function Arguments
nametypedescription
nameOfRelexCompactFormatCFFfilestring* name of relex compact format CFF file
originalInputFileName const string* original input file name
firstSentenceInList const GIAsentence* first sentence in list
NLPdependencyRelationsParser const int NLP dependency relations parser
NLPfeatureParser const int NLP feature parser
NLPexeFolderArray[] const string NLP exe folder array []

Function Reference List


Function Trace
locationcurrent function being traced
GIAtranslator.hppoutputInternalRelationsInRelexFormat
GIAmain.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAsemRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences
GIAposRelTranslator.hppparseNLPparserFileAndCreateSemanticNetworkBasedUponDependencyParsedSentences

Trace Diagram (magenta)