Eric Lomax, a former British soldier who was tortured by the Japanese while he was a prisoner during World War II and half a century later forgave one of his tormentors — an experience he recounted in a memoir, “The Railway Man” — died on Monday in Berwick-upon-Tweed, England. He was 93.

His death was confirmed by his publisher, Vintage Books.

Mr. Lomax, who was born in Scotland, was 19 when he joined the Royal Corps of Signals in 1939. He was one of thousands of British soldiers who surrendered to the Japanese in Singapore in 1942. Many were relocated to Thailand and forced to build the Burma Railway, also known as the Death Railway.

The building of the railroad and the brutality involved was portrayed in “The Bridge on the River Kwai,” the 1957 film directed by David Lean.

Mr. Lomax was repeatedly beaten and interrogated after his captors found a radio receiver he had made from spare parts. Multiple bones were broken and water was poured into his nose and mouth. One of his constant torturers stood out: Nagase Takashi, an interpreter.