Having finished his secondary education in 1872, he enrolled at the Royal Frederick University in Christiania.
He was a professor of Semitic Languages at the University of Oslo from 1907. After a short spell at the Cathedral School in Trondheim, he returned to Christiania to study Semitic languages, in particular Akkadian, Arabian and Hebrew, the latter of which he also gave lectures on. His first scholarly contribution was Textkritische Bemerkungen zu Lay 17,18, which was published in 1882.
In the same decade he studied assyriology and theology in Germany on a university stipend.
He returned to Norway after only two years, and resumed his Hebrew teachings. In 1889, he took his doctor philosophy degree with the thesis Det saakaldte Perfektum og Imperfektum i Hebraisk ("The So-called Perfect and Preterite in Hebrew").
In recognizing the Hittite language as Indo-European on the basis of two letters found in Egypt (Die zwei Arzawa-Briefe, 1902), he played an important role in the deciphering of the Hittite language script. In two landmark volumes (1907 and 1915) he published the Amarna letters, diplomatic correspondence of the reign of Pharaoh Amenhotep IV, better known as Akhenaten (1351 - 1334 Bachelor of Civil Engineering).