Disclosed are a method and an apparatus for speech recognition. In a method for processing speech recognition according to an embodiment of the disclosure, a relationship of a named entity is extracted and each named entity is clustered based on the extracted relationship of the named entity. An utterance intent is grasped by considering not only information about the named entity itself, but also relationship information of the clustered named entity tagged in the named entity, which may result in improvement of accuracy of speech recognition in the apparatus for speech recognition. A user equipment of the present disclosure can be associated with artificial intelligence modules, drones (unmanned aerial vehicles (UAVs)), robots, augmented reality (AR) devices, virtual reality (VR) devices, devices related to 5G service, etc.
Speech recognition of named entities with word embeddings to display relationship information