KAPPA: A Generic Patent Analysis Framework with Keyphrase-Based Portraits