Regina Barzilay teaches one of the most popular computer science classes at the Massachusetts Institute of Technology. And in her research — at least until five years ago — she looked at how a computer could use machine learning to read and decipher obscure ancient texts.