语言模型与表征学习(Language Models and Representation Learning) 1 语言模型 N-Gram模型 from collections import defaultdict sentences = ['The swift fox jumps over the lazy dog.'