src/Arabic/relations/ar_PotentialRelationExtractor.cpp
/**
 * @param span the span to examine.
 * @return <code>true</code> if the span
 *         is a type of span we want to process,
 *         <code>false</code> if not.
 */
@param span the span to examine.
@return true if the span
is a type of span we want to process,
false if not.
@param span the span to examine . @return true if the span is a type of span we want to process false if not .
bool PotentialRelationExtractor::isValid(Span *span) {
	if (span == NULL)
		return false;
	Symbol spanType = span->getSpanType();
	if (spanType == ENAMEX_TYPE_SPAN ||
		spanType == NUMEX_TYPE_SPAN  ||
		spanType == TIMEX_TYPE_SPAN)
		return (_entityTypes->lookup(((IdfSpan *)span)->getType()) != NONE_SYM);
	else
		return false;
}
bool PotentialRelationExtractor :: isValid ( Span * span ) { if ( span == NULL ) return false ; Symbol spanType = span -> getSpanType ( ) ; if ( spanType == ENAMEX_TYPE_SPAN || spanType == NUMEX_TYPE_SPAN || spanType == TIMEX_TYPE_SPAN ) return ( _entityTypes -> lookup ( ( ( IdfSpan * ) span ) -> getType ( ) ) != NONE_SYM ) ; else return false ; }
@param span the span to examine.
@param span the span to examine .
/*else if (spanType == PRONOUN_TYPE_SPAN)
			 spanType == HEAD_TYPE_SPAN    ||
			 spanType == LIST_TYPE_SPAN	   ||
			 spanType == DESC_TYPE_SPAN)
		return true;*/