Advanced techniques in text analysis with R