Efficient and Adaptive Machine Learning for Natural Language Processing