src/Generic/theories/SentenceTheoryBeam.cpp
// Return true if the given XML element appears to contain a LexicalTokenSequence.
// This is used to decide how to deserialize token sequences.

Return true if the given XML element appears to contain a LexicalTokenSequence.
This is used to decide how to deserialize token sequences.
Return true if the given XML element appears to contain a LexicalTokenSequence . This is used to decide how to deserialize token sequences .
bool isLexicalTokenSequenceElement(SerifXML::XMLTheoryElement tokenSequenceElem) {
		using namespace SerifXML;
		XMLTheoryElementList tokElems = tokenSequenceElem.getChildElementsByTagName(X_Token);
		if (tokElems.empty()) { 
			return (TokenSequence::getTokenSequenceTypeForStateLoading() == TokenSequence::LEXICAL_TOKEN_SEQUENCE); 
		} else {
			return tokElems[0].hasAttribute(X_original_token_index);
		}
	}
bool isLexicalTokenSequenceElement ( SerifXML :: XMLTheoryElement tokenSequenceElem ) { using namespace SerifXML ; XMLTheoryElementList tokElems = tokenSequenceElem . getChildElementsByTagName ( X_Token ) ; if ( tokElems . empty ( ) ) { return ( TokenSequence :: getTokenSequenceTypeForStateLoading ( ) == TokenSequence :: LEXICAL_TOKEN_SEQUENCE ) ; } else { return tokElems [ 0 ] . hasAttribute ( X_original_token_index ) ; } }
Return true if the given XML element appears to contain a LexicalTokenSequence.
Return true if the given XML element appears to contain a LexicalTokenSequence .