protected void checkForNumericAttribute(ProposedTuples tuples,SemanticGraph sg,IndexedWord word){
  if (sg.hasChildWithReln(word,UniversalEnglishGrammaticalRelations.NUMERIC_MODIFIER)) {
    IndexedWord nummod=sg.getChildWithReln(word,UniversalEnglishGrammaticalRelations.NUMERIC_MODIFIER);
    if (nummod.index() < word.index()) {
      tuples.addTuple(word,nummod);
    }
  }
 else   if (sg.hasChildWithReln(word,SemanticGraphEnhancer.QMOD_RELATION)) {
    IndexedWord qmod=sg.getChildWithReln(word,SemanticGraphEnhancer.QMOD_RELATION);
    tuples.addTuple(word,qmod);
  }
}

protected void checkForNumericAttribute ( ProposedTuples tuples , SemanticGraph sg , IndexedWord word ) { if ( sg . hasChildWithReln ( word , UniversalEnglishGrammaticalRelations . NUMERIC_MODIFIER ) ) { IndexedWord nummod = sg . getChildWithReln ( word , UniversalEnglishGrammaticalRelations . NUMERIC_MODIFIER ) ; if ( nummod . index ( ) < word . index ( ) ) { tuples . addTuple ( word , nummod ) ; } } else if ( sg . hasChildWithReln ( word , SemanticGraphEnhancer . QMOD_RELATION ) ) { IndexedWord qmod = sg . getChildWithReln ( word , SemanticGraphEnhancer . QMOD_RELATION ) ; tuples . addTuple ( word , qmod ) ; } }
checks if a word has a numerical modifier , and if so adds it as an object with attribute
