src/PredFinder/inference/EIUtils.cpp
/** 
 *  Create a new ElfRelationArg for a SERIF mention. Technically returns a vector, but it will always have one member.
 **/
Create a new ElfRelationArg for a SERIF mention. Technically returns a vector, but it will always have one member.
Create a new ElfRelationArg for a SERIF mention . Technically returns a vector but it will always have one member .
std::vector<ElfRelationArg_ptr> EIUtils::createRelationArgFromMention(EIDocData_ptr docData,
	const std::wstring & role, const std::wstring & type, const Mention *arg)
{
	MentionReturnPFeature_ptr rf = boost::make_shared<MentionReturnPFeature>(Symbol(L"ElfInference"), arg);
	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 :: createRelationArgFromMention ( EIDocData_ptr docData , const std :: wstring & role , const std :: wstring & type , const Mention * arg ) { MentionReturnPFeature_ptr rf = boost :: make_shared < MentionReturnPFeature > ( Symbol ( L" " ) , arg ) ; 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 SERIF mention.
Create a new ElfRelationArg for a SERIF mention .