implemented function to only use the contexts of the brand mentions rather than the whole text