Logic to extract company and role using semantics