In this article I’ll be using Compromise to analyze the command the player typed into a text-based game and build out a Sentence object representing the overall structure of the sentence they entered. The aim is to have a client-side parsing library so fast that it can run as you’re typing while still providing relevant results. This information works with modern versions of Angular as well as modern versions of Compromise.Ĭompromise is a JavaScript library aiming to be a compromise between speed and accuracy. Note: this article is an updated and more narrowly scoped version of an older article I wrote on Compromise. Making inferences about sentence structure based on compromise.How you can use compromise to analyze sentences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |