Graphical models for text mining: knowledge extraction and performance estimation