Skip to main content
. 2024 Oct 18;10:e2344. doi: 10.7717/peerj-cs.2344
Algorithm 2: To extract the potential words based on sequential lexicon
Input: Sequential lexicon of TOP groups LS=LS1,LS2,,LSTOP
Output: The potential words set LX, a two-dimensional array
1. For each lexicon in the top group of sequential lexicon, get the start position and end position of each lexicon.
2. For each lexicon in the top group of sequential lexicon, assign the lexicon to the LX matrix at the position[i][j], where i is the position of character in sentence and j is the index of lexicon sequential group.