Question
Which natural language processing (NLP) technique is
best suited for understanding the contextual meaning of words in a sentence?Solution
Transformers like BERT (Bidirectional Encoder Representations from Transformers) have revolutionized NLP by capturing contextual word representations. Unlike traditional techniques, BERT processes words in both their preceding and succeeding contexts, enabling nuanced understanding. 1. Contextual Embeddings: BERT generates embeddings that vary depending on the surrounding words, addressing issues like polysemy (e.g., "bank" as a financial institution vs. a riverbank). 2. Bidirectionality: By analyzing text in both directions, BERT captures deeper linguistic patterns and relationships. 3. Pretraining and Fine-Tuning: BERT is pretrained on vast corpora and fine-tuned for specific NLP tasks, making it versatile for applications like sentiment analysis, question answering, and translation. Why Other Options Are Incorrect: • A) Bag of Words: Ignores word order and context, treating sentences as a collection of words. • B) One-Hot Encoding: Fails to capture semantic relationships between words. • C) Word2Vec: Generates static word embeddings, lacking context sensitivity. • D) TF-IDF: Focuses on word importance across documents but overlooks word order and meaning.
A train traveling at 90 km/h departs from City A toward City B, located 240 km away. Simultaneously, a car leaves City B heading toward City A at a spee...
A bus takes 90 minutes to cover 135 km. If its speed is reduced by 15 km/h, find the new time required to cover the same distance.
X started to run from point ‘A’ to ‘B’ at a speed of 35 km/hr at 9:00 am and Y started to run from point ‘B’ to ‘A’ at a speed of 11 km/...
In a 250-metre race, ‘A’ beats ‘B’ by 16 seconds or 80 metres. Find the time taken by ‘B’ to finish the race.
- 'A' takes 20 minutes more than 'B' to travel 'x' km. If the speed of 'A' and 'B' is 18 km/h and 24 km/h, respectively, find the value of 'x'.
What is the length of the bridge which a man riding 35 km an hour can cross in 3 min.?
Two motorcycles, a Honda and a Hero, set off simultaneously from the same location, aiming for the same endpoint. The Honda travels at a speed of 48 km/...
The speed of a car is 30% more than that of a bike. Both of them start from a same point. After travelling for 4 hours, the speed of the bike is increas...
A policeman saw a thief from a distance of 450 m. When the policeman started chasing him, the thief also started running. The ratio of speeds of the th...
A car running with a speed of 65 km/hr takes 12 hours to go from 'A' to 'B'. If on the way back from 'B' to 'A', the car takes 20% less time than it tak...