To understand the pattern recognition from dataset, a study should be started from the decomposition process of context into a collection of data pieces because the context may infer different words or information. Many researchers have been focused on finding an effective methodology for data storage, retrieval, representation, and discovery. As a similar endeavor, this paper proposes a new modeling method using group theory and situation theory. This paper provides how to construct a semi-group as a modeling method for pattern recognition from huge dataset. This process of construction of semi‐groups can be used as a retrieval tool for the decomposed information if necessary.