src/PredFinder/inference/EIUtils.cpp
/** 
 *  Create a new ElfRelationArg for a token span. Technically returns a vector, but it will always have one member.
 **/
Create a new ElfRelationArg for a token span. Technically returns a vector, but it will always have one member.
Create a new ElfRelationArg for a token span . Technically returns a vector but it will always have one member .
std::vector<ElfRelationArg_ptr> EIUtils::createRelationArgFromTokenSpan(EIDocData_ptr docData, 
	const std::wstring & role, const std::wstring & type, int sent_no, int start, int end)
{
	TokenSpanReturnPFeature_ptr rf = boost::make_shared<TokenSpanReturnPFeature>(Symbol(L"ElfInference"), sent_no, start, end);
	rf->setReturnValue(L"role", role);
	rf->setReturnValue(L"type", type);
	rf->setCoverage(docData->getDocTheory());
	std::vector<ElfRelationArg_ptr> arguments = ElfRelationArgFactory::from_return_feature(docData->getDocTheory(), rf);
	return arguments;
}
std :: vector < ElfRelationArg_ptr > EIUtils :: createRelationArgFromTokenSpan ( EIDocData_ptr docData , const std :: wstring & role , const std :: wstring & type , int sent_no , int start , int end ) { TokenSpanReturnPFeature_ptr rf = boost :: make_shared < TokenSpanReturnPFeature > ( Symbol ( L" " ) , sent_no , start , end ) ; rf -> setReturnValue ( L" " , role ) ; rf -> setReturnValue ( L" " , type ) ; rf -> setCoverage ( docData -> getDocTheory ( ) ) ; std :: vector < ElfRelationArg_ptr > arguments = ElfRelationArgFactory :: from_return_feature ( docData -> getDocTheory ( ) , rf ) ; return arguments ; }
Create a new ElfRelationArg for a token span.
Create a new ElfRelationArg for a token span .