src/Arabic/relations/ar_PotentialRelationExtractor.cpp
/**
 * @param span the span to examine.
 * @return <code>true</code> if the span is an Pronoun span,
 *         <code>false</code> if not.
 */
@param span the span to examine.
@return true if the span is an Pronoun span,
false if not.
@param span the span to examine . @return true if the span is an Pronoun span false if not .
bool PotentialRelationExtractor::PronounSpanFilter::keep(Span *span) const {
	if (span == NULL)
		return false;
	Symbol type = span->getSpanType();
	return (type == ENAMEX_TYPE_SPAN &&
			((IdfSpan *)span)->getType() == PRONOUN_TYPE_SPAN);
}
bool PotentialRelationExtractor :: PronounSpanFilter :: keep ( Span * span ) const { if ( span == NULL ) return false ; Symbol type = span -> getSpanType ( ) ; return ( type == ENAMEX_TYPE_SPAN && ( ( IdfSpan * ) span ) -> getType ( ) == PRONOUN_TYPE_SPAN ) ; }
@param span the span to examine.
@param span the span to examine .