src/Arabic/relations/ar_PotentialRelationExtractor.cpp
/**
 * @param span the span to examine.
 * @return <code>true</code> if the span is an Idf span,
 *         <code>false</code> if not.
 */
@param span the span to examine.
@return true if the span is an Idf span,
false if not.
@param span the span to examine . @return true if the span is an Idf span false if not .
bool PotentialRelationExtractor::IdfSpanFilter::keep(Span *span) const {
	if (span == NULL)
		return false;
	Symbol type = span->getSpanType();
	return ((type == ENAMEX_TYPE_SPAN) ||
		    (type == TIMEX_TYPE_SPAN)  ||
		    (type == NUMEX_TYPE_SPAN));
}
bool PotentialRelationExtractor :: IdfSpanFilter :: keep ( Span * span ) const { if ( span == NULL ) return false ; Symbol type = span -> getSpanType ( ) ; return ( ( type == ENAMEX_TYPE_SPAN ) || ( type == TIMEX_TYPE_SPAN ) || ( type == NUMEX_TYPE_SPAN ) ) ; }
@param span the span to examine.
@param span the span to examine .