Alexis Perrier

Alexis Perrier is a data science consultant specialized in predictive modeling and natural language processing. He holds a master’s in probability from Sorbonne Universités and a PhD in signal processing from Telecom Paris. He is the author of several books and online courses on data science.

projects by Alexis Perrier

Building Domain-Specific Language Models

4 weeks · 8-10 hours per week · ADVANCED

In this liveProject, you’ll step into the role of a natural language processing data scientist working for Stack Exchange. Stack Exchange runs a network of question-and-answer sites on diverse topics ranging from programming to cooking. Your boss wants you to create language models that are tuned to the statistical, probabilistic, and technical jargon present in different Stack Exchange sites.


Language is domain-specific—an insurance company’s documents will use very different terminology than a post on a social media site. Because of this, off-the-shelf NLP models trained on generic text can be inaccurate for specialized domains such as healthcare, legal, clinical, and agricultural language. Your goal is to build a language model capable of query completion and larger text generation for Stack Exchange sites. At the end of this project, you will be able to build the foundations of any domain-specific NLP system by creating a robust and efficient language model using statistical and deep learning techniques.


Updated: March 2022

  • Fully updated to the latest version of AllenNLP
  • Improved GPU compatibility for training larger models
  • New help layers with detailed hints and guidance
  • New preprocessing steps for data preparation
  • Adjusted prerequisites and libraries