STEM: stacked threshold-based entity matching for knowledge base generation