Toward generalized and scalable relation extraction