Thebag-of-wordsmodelisasimplifyingassumptionusedinnaturallanguageprocessingandinformationretrieval.Inthismodel,atext(suchasasentenceoradocument)isrepresentedasanunorderedcollectionofwords,disregardinggrammarandevenwordorder.