A tibetan language word segmentation method and system based on a multilingual pre-training model CINO

By using the multilingual pre-trained model CINO, collecting and optimizing Tibetan datasets, and dynamically adjusting training parameters, the adaptability problem of Tibetan word segmentation models when facing new language phenomena and vocabulary updates was solved, achieving more efficient word segmentation accuracy and visualization.

CN120706424BActive Publication Date: 2026-11-27TIBET UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510708316.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2026-11-27
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

Existing Tibetan word segmentation models lack continuous validation and optimization mechanisms after training, making it difficult to adapt to new language phenomena and vocabulary updates, thus limiting their effectiveness and generalization ability in practical applications.

Method used

The CINO multilingual pre-trained model is used. By collecting the dataset to be labeled, word segmentation is performed, training and validation datasets are divided, training process parameters are analyzed, learning rate and number of training rounds are dynamically optimized, and word segmentation is visualized to ensure that the model is built based on high-quality data and scientific process.

Benefits of technology

It improves the accuracy and reliability of Tibetan word segmentation, enhances the generalization ability and training efficiency of the model, ensures the visualization effect of the segmentation results, and promotes the application of multilingual processing technology in the Tibetan language field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120706424B_ABST
    Figure CN120706424B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and particularly discloses a Tibetan language word segmentation method and system based on a multilingual pre-training model CINO. The method collects a to-be-labeled data set to provide massive text resources for subsequent research. Then, word segmentation conversion is performed to obtain a to-be-trained data set, the text is converted into a word sequence suitable for model processing, the model is facilitated to learn a structure, and attribute parameters of the to-be-trained data set are analyzed to determine whether data division is needed. Reasonable division can ensure the representativeness of a training set and a verification set, avoid data distribution deviation, and improve the generalization ability of the model. Subsequently, training and verification data sets are obtained through division, are used for training the multilingual pre-training model CINO, and training process parameters are collected and analyzed to understand the training state of the model and timely adjust strategies and hyperparameters, and model initialization is completed, so that the accuracy and reliability of Tibetan language word segmentation are improved, and the application of multilingual processing technology in the Tibetan language field is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, specifically to a Tibetan word segmentation method and system based on the multilingual pre-trained model CINO. Background Technology

[0002] Tibetan, as an important component of minority languages, holds significant research value in fields such as cultural heritage preservation, information processing, and natural language processing. With the rapid development of the internet and big data technologies, the demand for Tibetan information processing is increasing daily. Tibetan word segmentation, as a fundamental task in Tibetan natural language processing, plays a crucial role in subsequent tasks such as part-of-speech tagging, syntactic analysis, machine translation, and information retrieval.

[0003] For example, the invention patent with announcement number CN114330328B announces a Tibetan word segmentation method based on Transformer-CRF. This method includes: inputting a dataset, data preprocessing, syllable expansion, constructing a Tibetan word segmentation model based on Transformer-CRF, training and saving the model and its parameters, inputting the word corpus to be segmented, and outputting the word segmentation result. It expands two units to the left and right with the current syllable as the center, and uses a combination of unigram and bigram methods to extract more feature vectors.

[0004] For example, the invention patent with announcement number CN117556814B announces an integrated method and system for Tibetan word segmentation and part-of-speech tagging, which relates to the field of electronic information. It obtains Tibetan text information input by the user, calls the integrated model and segments Tibetan syllables and non-Tibetan character blocks, performs CRF prediction, obtains the optimal label prediction, and organizes the writing form of each Tibetan syllable according to the label prediction results to obtain the corresponding tagging results.

[0005] However, in the process of implementing the embodiments of this application, it was found that the above-mentioned technology has at least the following technical problems: the current training method of Tibetan word segmentation model is a single mode, that is, the model is put into use directly after training is completed, and there is a lack of subsequent verification, continuous learning and optimization mechanism. This training method makes it difficult for the model to adaptively adjust and improve when facing new language phenomena, vocabulary updates or changes in application scenarios, thereby limiting its effect and generalization ability in practical applications. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention provides a Tibetan word segmentation method and system based on the multilingual pre-trained model CINO, which can effectively solve the problems mentioned in the background technology.

[0007] To achieve the above objectives, the present invention provides the following technical solution: The first aspect of the present invention provides a Tibetan word segmentation method based on the multilingual pre-trained model CINO, comprising: Step 1, collecting a dataset to be labeled, and performing word segmentation on the dataset to be labeled to obtain a training dataset; acquiring and analyzing the attribute parameters of the training dataset to determine whether to partition the training dataset; Step 2, obtaining a training dataset and a validation dataset through data partitioning; using the training dataset and the validation dataset to train the multilingual pre-trained model CINO; collecting and analyzing the training process parameters to initialize the multilingual pre-trained model CINO; Step 3, acquiring a test dataset, and using the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby visualizing the Tibetan word segmentation.

[0008] As a further method, data optimization is performed on the training dataset. The specific optimization process is as follows: Tibetan sentences with a length greater than a defined length are screened out from the training dataset and summarized and marked as the dataset to be segmented. The dataset to be segmented is subjected to secondary word segmentation, and the data annotation completeness index of the dataset to be segmented after secondary word segmentation is obtained. The lengths of the Tibetan sentences in the dataset to be segmented after secondary word segmentation are averaged to obtain the average length of the Tibetan sentences in the dataset to be segmented. The threshold correction coefficient is matched from the training database to correct and update the data annotation completeness threshold. The data annotation completeness index of the dataset to be segmented after secondary word segmentation is compared with the corrected and updated data annotation completeness threshold. If the dataset to be segmented after secondary word segmentation meets the first condition, the dataset to be segmented is re-filled into the training dataset, and the data to be segmented is determined. If the dataset to be segmented after secondary word segmentation meets the second condition, the dataset to be segmented is optimized a second time.

[0009] As a further method, a secondary optimization is performed on the dataset to be segmented. The specific optimization process is as follows: Based on the data annotation completeness index and data annotation completeness threshold of the dataset to be segmented, the data annotation completeness deviation value of the dataset to be segmented is obtained, and the number of newly added word segmentation rules is matched from the training database. Word segmentation rules are added to the multilingual pre-trained model CINO based on the number of newly added word segmentation rules, and word segmentation conversion is performed on the dataset to be segmented. After word segmentation conversion, Tibetan sentences with a length greater than the defined length are screened out from the dataset to be segmented after secondary optimization and marked as the dataset to be warned. The dataset to be segmented is then re-filled into the dataset to be trained, and a data warning is issued for the dataset to be warned. At the warning definition time point, it is determined whether a data update instruction has been received. If no data update instruction has been received, it is determined to directly split the data in the dataset to be trained. If a data update instruction has been received, the data in the data update instruction is filled into the dataset to be trained, and the dataset to be trained is split.

[0010] As a further method, the multilingual pre-trained model CINO is initialized. The specific initialization process is as follows: the training dataset is divided into several batches of training datasets, and the validation dataset is divided into several batches of validation datasets; the multilingual pre-trained model CINO is trained using the first batch of training datasets; the parameters of the first batch of training process are collected and analyzed to obtain the training anomaly index of the first batch of training datasets, and compared with the training anomaly threshold to obtain the training anomaly deviation value of the first batch of training datasets; the validation accuracy threshold correction coefficient is matched from the training database to correct the validation accuracy threshold; after the first batch of training datasets is trained, the trained multilingual pre-trained model CINO is validated using the first batch of validation datasets; the parameters of the first batch of validation process are collected and analyzed to obtain the validation accuracy coefficient of the first batch of validation datasets, and compared with the corrected validation accuracy threshold to determine whether the training process of the second batch of training datasets needs to be adjusted.

[0011] As a further method, a determination is made as to whether to adjust the training process of the second batch of training datasets. Specifically, if the validation accuracy coefficient of the first batch of validation datasets is greater than or equal to the validation accuracy threshold, then it is determined that the training process of the second batch of training datasets will not be adjusted; if the validation accuracy coefficient of the first batch of validation datasets is less than the validation accuracy threshold, then it is determined that the training process of the second batch of training datasets will be adjusted. Specifically, based on the validation accuracy coefficient and validation accuracy threshold of the first batch of validation datasets, the validation accuracy deviation value of the first batch of validation datasets is obtained, and the learning rate correction coefficient and training epoch correction coefficient are matched from the training database, thereby correcting and adjusting the learning rate and training epochs of the training process of the second batch of training datasets; if the correction is... If a third condition exists after the holiday, a correction warning will be issued. The third condition refers to a learning rate greater than a defined learning rate or a number of training epochs greater than a defined number of training epochs. If the third condition does not exist after adjustment, no correction warning will be issued, and the training process parameters and validation process parameters of the next adjacent batch will be continuously collected and analyzed. If the training process of a certain batch of training datasets is adjusted, and the validation accuracy coefficient of the next adjacent batch of training datasets corresponding to that batch of training datasets is still less than the validation accuracy coefficient, then the next adjacent batch of training datasets corresponding to that batch of training datasets will be marked as a training dataset, and the multilingual pre-trained model CINO will be trained using the training dataset. If the data in the training dataset is used up, the initialization of the multilingual pre-trained model CINO is complete.

[0012] The second aspect of this invention provides a Tibetan word segmentation system based on the multilingual pre-trained model CINO, comprising: a data partitioning module, used to collect a dataset to be labeled, and perform word segmentation on the dataset to be labeled to obtain a training dataset, and acquire and analyze the attribute parameters of the training dataset to determine whether to partition the training dataset; a model initialization module, used to obtain a training dataset and a validation dataset through data partitioning, use the training dataset and the validation dataset to train the multilingual pre-trained model CINO, collect and analyze the training process parameters, and initialize the multilingual pre-trained model CINO; and a word segmentation visualization module, used to acquire a test dataset, and use the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby performing Tibetan word segmentation visualization.

[0013] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:

[0014] (1) This invention provides a Tibetan word segmentation method and system based on the multilingual pre-trained model CINO. First, a dataset to be labeled is collected to provide massive text resources for subsequent research. Then, word segmentation is performed to obtain a training dataset, which transforms the text into a sequence of lexical units suitable for model processing, facilitating model learning of the structure. Next, the attribute parameters of the training dataset are analyzed to determine whether data partitioning is necessary. Reasonable partitioning can ensure the representativeness of the training and validation sets, avoid data distribution bias, and improve the model's generalization ability. Subsequently, training and validation datasets are obtained through partitioning and used to train the multilingual pre-trained model CINO. The parameters of the training process are collected and analyzed to gain insight into the model's training status, adjust strategies and hyperparameters in a timely manner, and complete model initialization. This allows the model to make full use of training information, quickly obtain a good performance foundation, and improve training efficiency. Finally, a test dataset is obtained, and the initialized model is used for Tibetan word segmentation. The results are then visualized. The test dataset can objectively evaluate the model's performance, while visualization can intuitively present the word segmentation effect, promoting the improvement of the accuracy and reliability of Tibetan word segmentation and assisting the application of multilingual processing technology in the Tibetan language field.

[0015] (2) This invention analyzes attribute parameters to obtain the labeling completeness index and compares it with the threshold, which can scientifically determine whether to divide the dataset, improve the training focus, optimize the dataset that does not meet the conditions, screen long sentences for secondary word segmentation and compare again after correcting the threshold, which can improve the quality of data labeling. The whole process helps to ensure the labeling completeness and rationality of the dataset to be trained, so that the subsequent Tibetan word segmentation work based on the multilingual pre-trained model CINO can be carried out based on higher quality data, improve the word segmentation accuracy and model performance, and enhance the Tibetan processing effect.

[0016] (3) By processing the dataset in batches, this invention can monitor the training and validation process more meticulously. By analyzing the training parameters to obtain the anomaly index and correcting the validation threshold, the training status can be accurately evaluated and potential problems can be discovered in a timely manner. Based on the validation accuracy coefficient, it can determine whether to adjust the subsequent training process, dynamically optimize the learning rate and the number of training rounds, improve training efficiency and effect, and set early warning conditions after correction and adjustment to avoid over-adjustment. Batches that still do not meet the standards after multiple adjustments are marked as training datasets, which can strengthen training in a targeted manner. Finally, when the training data is used up, the model is initialized, ensuring that the model is built based on high-quality data and scientific process, and improving the Tibetan word segmentation performance. Attached Figure Description

[0017] The present invention will be further described with reference to the accompanying drawings, but the embodiments in the drawings do not constitute any limitation on the present invention. For those skilled in the art, other drawings can be obtained based on the following drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the method steps of the present invention.

[0019] Figure 2 This is a schematic diagram of the system module connections of the present invention.

[0020] Figure 3 This is a schematic diagram of the dataset partitioning process of the present invention.

[0021] Figure 4 This is a schematic diagram of the training process adjustment flow of the present invention.

[0022] Figure 5 This is a structural model diagram of the CINO multilingual pre-trained model based on the present invention.

[0023] Figure 6 This is an example diagram of the input method for this invention.

[0024] Figure 7 This is an example diagram of Tibetan word segmentation data in different formats according to the present invention.

[0025] Figure 8 This is a diagram of the Tibetan word segmentation and visualization interface of the present invention.

[0026] Figure 9 This is a screenshot of the training set details interface of the present invention.

[0027] Figure 10 This is a diagram of the model parameter management interface of the present invention. Detailed Implementation

[0028] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0029] Reference Figure 1 As shown, the first aspect of this invention provides a Tibetan word segmentation method based on the multilingual pre-trained model CINO, comprising: Step 1, collecting a dataset to be labeled, and performing word segmentation on the dataset to be labeled to obtain a training dataset, acquiring and analyzing the attribute parameters of the training dataset to determine whether to partition the training dataset; Step 2, obtaining a training dataset and a validation dataset through data partitioning, using the training dataset and the validation dataset to train the multilingual pre-trained model CINO, collecting and analyzing the training process parameters to initialize the multilingual pre-trained model CINO; Step 3, acquiring a test dataset, and using the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby performing Tibetan word segmentation visualization.

[0030] The aforementioned dataset to be labeled refers to a data set that has not undergone manual or automatic labeling; the aforementioned dataset to be trained refers to a data set that has undergone a series of preprocessing operations (such as word segmentation and conversion), and it already contains feature information that can be used for model training.

[0031] The multilingual pre-trained model CINO will be referred to as the model in the following text.

[0032] In one specific embodiment, the present invention analyzes attribute parameters to obtain a completeness index and compares it with a threshold, which can scientifically determine whether to divide the dataset, improve training targeting, optimize datasets that do not meet the conditions, screen long sentences for secondary word segmentation and compare them again after correcting the threshold, which can improve the quality of data annotation. The whole process helps to ensure the completeness and rationality of the annotation of the dataset to be trained, so that the subsequent Tibetan word segmentation work based on the multilingual pre-trained model CINO can be carried out on higher quality data, improve word segmentation accuracy and model performance, and enhance the Tibetan processing effect.

[0033] Figure 5 The diagram shows the structural model of the multilingual pre-trained model CINO of this invention. It consists of an input layer, a CINO layer, and an output layer. The main function of the input layer is to convert the original Tibetan sentence to be segmented into a syllable sequence, and the syllable sequence into a word sequence. The syllable sequence is obtained by segmenting Tibetan syllables using diacritics, and the word sequence is obtained by segmenting using the word segmenter provided by the pre-trained model CINO. It means that sharpening your sword at the last minute will give you an edge. Figure 6 This is an example of the input diagram for the present invention. The original Tibetan word sequence to be segmented, the Tibetan syllable sequence, and the word sequence in the input layer are shown. After the syllable sequence in the input layer is converted into a word sequence, the length of the word sequence changes, and a start marker "" is added. <s> ", End marker"< / s> For classification tasks, the original classification labels still apply to the word sequence. However, for sequence labeling tasks, the labels corresponding to each syllable in the syllable sequence cannot be matched one-to-one with the words in the word sequence. To address this issue, this invention uniformly assigns a "-100" label to newly generated words, effectively solving the mismatch between the word sequence and the original label sequence. Specifically, in the word sequence, for un-lemonized syllables and when lemonized syllables are segmented into multiple words, the first word retains its original label. The newly added start, end, and link markers, as well as non-first words when a syllable is segmented into multiple words, are assigned a "-100" label. The "-100" label is automatically ignored during loss function calculation and does not affect model training. Figure 6 The data to be segmented in the text is It represents all living things.

[0034] The core of this Tibetan word segmentation model is the CINO layer. Its main function is to assign an initial vector to each word based on the word sequence provided by the input layer, and output the labels for each word through the CINO pre-trained model. The word vectors assigned by the CINO layer contain rich knowledge of the common Tibetan language, as well as rich knowledge of languages ​​such as English and Chinese (acquired through the language transfer capabilities of the multilingual pre-trained model). To examine the impact of different numbers of Tibetan word segmentation labels on the Tibetan word segmentation model, a comparison was made between Tibetan word segmentation data based on 2-tags and 4-tags. When the model uses Tibetan word segmentation data based on 2-tags, the output label set of the CINO layer is {"B", "M"}; when the model uses Tibetan word segmentation data based on 4-tags, the output label set of the CINO layer is {"B", "M", "E", "S"}. The main function of the output layer is to segment the Tibetan text to be segmented based on the sequence labels output by the CINO layer and output the segmentation results. Specifically, the output layer identifies word boundaries based on the output labels of the CINO layer, namely "S" and "B", and adds a word segmentation symbol " / " to the right boundary of each word. It is important to note that the output labels of the CINO layer include the sequence start marker "". <s>Tags such as "" are not useful for Tibetan word segmentation and instead affect the annotation of syllable sequences. Therefore, these redundant tags were cleaned up in the output layer.

[0035] Figure 7 This is an example diagram of Tibetan word segmentation data in different formats according to the present invention, wherein... Figure 7 The steps to convert manually segmented word data into 2-tag labeled sequences are as follows: First, convert the input manually segmented word sequence... (Separated by spaces) into a list of individual words, where This process involves several steps: First, the word segmentation tags are defined as "B" (representing the first syllable of a word) and "M" (representing a non-first syllable). An empty list `result` is initialized to store the final tagging sequence. Then, each word in the manually segmented sequence is iterated through: for the current word, it is split into a list of syllables using the syllable separator "·". If the current word contains only one syllable (i.e., the syllable list length is 1), it is directly tagged as "B" and added to the `result` list. If the current word contains two or more syllables (i.e., the syllable list length is greater than or equal to 2), the first syllable is tagged as "B" and added to the `result` list. Then, the remaining syllables are processed in a loop (the loop count is the syllable list length minus 1), and all non-first syllables are tagged as "M" and added to the `result` list sequentially. Finally, the `result` list is the converted 2-tag tagging sequence, where each syllable is correctly tagged as either "B" or "M".

[0036] in Figure 7 The specific steps for 4-tag annotation sequence are as follows: First, split the input manually segmented word sequence (each word is separated by a space) into a list of individual words; then define word segmentation tags, including "B" (representing the first syllable of a word), "E" (representing the last syllable of a word), "M" (representing syllables that are not at the beginning or end of a word), and "S" (representing monosyllabic words); then initialize an empty list result to store the final annotation sequence. Then, iterate through each word in the manually segmented sequence: for the current word, split it into a list of syllables using the syllable separator "·"; if the current word is a monosyllabic word (i.e., the length of the syllable list is 1), add the label "S" to the result list; if the current word consists of two syllables, add the labels "B" and "E" to the result list in turn; if the current word has three syllables, add the labels "B", "M", and "E" to the result list in turn; if the current word has four or more syllables, first add the label "B" to the result list, then process the syllables excluding the first and last ones in a loop (the number of loops is the length of the syllable list minus 2), label them all as "M" and add them to the result list, and finally add the label "E"; finally, the result list is the converted 4-tag labeled sequence, in which each syllable is correctly labeled as "B", "E", "M" or "S".

[0037] Specifically, the process for determining whether to split the training dataset is as follows: by analyzing the attribute parameters of the training dataset, the data labeling completeness index of the training dataset is obtained; the data labeling completeness threshold is extracted from the training database and compared with the data labeling completeness index of the training dataset; if the training dataset meets the first condition, it is determined that the training dataset should be split; the aforementioned data labeling completeness threshold represents the minimum value allowed by the data labeling completeness index.

[0038] If the training dataset meets the second condition, then it is determined that the training dataset will not be split, and the training dataset will be optimized. The first condition refers to the data labeling completeness index being greater than or equal to the data labeling completeness threshold; the second condition refers to the data labeling completeness index being less than the data labeling completeness threshold.

[0039] The attribute parameters of the training dataset include the unlabeled word ratio, the label density range, and the label coverage. The unlabeled word ratio refers to the proportion of unlabeled words in the training dataset to the total number of words. The label density range refers to the difference between the maximum and minimum label density values ​​in the dataset. Label density represents the proportion of labels within a unit length (such as a sentence or paragraph), and the range reflects the fluctuation range of label density in the dataset. The label coverage refers to the proportion of labeled words or entities in the dataset to the total number of words or entities that should be labeled. The unlabeled word ratio, label density range, and label coverage can all be obtained through analysis using a programming language (such as Python).

[0040] We introduce metrics to quantify the impact of the ratio between unlabeled words and defined unlabeled words, the ratio between the range of labeled density and defined labeled density, and the ratio between labeled coverage and defined labeled coverage on the data labeling completeness index. We then aggregate these impact factors to derive the data labeling completeness index.

[0041] It's important to explain that the unlabeled word ratio reflects the proportion of unlabeled words in the dataset. A high unlabeled word ratio means a large number of words have not yet been labeled, which directly leads to a decrease in label density (because label density reflects the proportion of labeled words in the overall dataset; more unlabeled words naturally result in a lower proportion of labeled words). Simultaneously, label coverage (i.e., the extent to which labeled words encompass the overall vocabulary) will also decrease, as the lack of labeling means the labels do not fully cover the vocabulary content of the dataset. The label density range, on the other hand, describes the degree of difference in label density between different parts of the dataset. A large label density range indicates that the dataset... The uneven labeling across different parts, with densely labeled areas and sparsely labeled areas, further impacts the labeling coverage. Sparsely labeled areas lead to incomplete overall labeling coverage, while the unlabeled word ratio appears relatively high due to insufficient labeling in some areas. Overall, the increase in the unlabeled word ratio and the widening of the labeling density range both contribute to a decrease in labeling coverage. These three parameters ultimately affect the data labeling completeness index. An excessively high unlabeled word ratio, a large labeling density range, and a low labeling coverage all lower the data labeling completeness index, indicating that the dataset's labeling work is not thorough or comprehensive.

[0042] The data annotation completeness index of the training dataset represents the completeness of the data annotation in the training dataset, and its specific expression is:

[0043]

[0044] In the formula, DA is the data annotation completeness index of the training dataset, LB is the unlabeled word ratio of the training dataset, JC is the annotation density range of the training dataset, FG is the annotation coverage of the training dataset, J_LB is the preset defined unlabeled word ratio in the training database, J_JC is the preset defined annotation density range in the training database, J_FG is the preset defined annotation coverage in the training database, ro1 is the preset unlabeled word ratio metric in the training database, ro2 is the preset annotation density range metric in the training database, and ro3 is the preset annotation coverage metric in the training database.

[0045] The aforementioned unlabeled word ratio metric is used to quantify the impact of the unlabeled word ratio unit value on the data annotation completeness index; the aforementioned annotation density range metric is used to quantify the impact of the annotation density range unit value on the data annotation completeness index; the aforementioned annotation coverage metric is used to quantify the impact of the annotation coverage unit value on the data annotation completeness index; the training database stores the mapping relationship between the unlabeled word ratio, annotation density range, and annotation coverage and their corresponding metrics. For example, by inputting the unlabeled word ratio, annotation density range, and annotation coverage into the training database, the training database can retrieve the unlabeled word ratio metric, annotation density range metric, and annotation coverage metric. The values ​​of the unlabeled word ratio metric, annotation density range metric, and annotation coverage metric are all between 0 and 1.

[0046] The above definition of the unannotated word ratio represents the maximum allowed value of the unannotated word ratio; the above definition of the annotation density range represents the maximum allowed value of the annotation density range; the above definition of the annotation coverage rate represents the minimum allowed value of the annotation coverage rate.

[0047] Specifically, the data optimization process for the training dataset involves: identifying Tibetan sentences with lengths exceeding a predetermined length from the training dataset, summarizing and labeling them as the dataset to be segmented; performing secondary word segmentation on the dataset to be segmented, and obtaining the data labeling completeness index of the dataset after secondary word segmentation; the aforementioned predetermined length represents the maximum allowed length, extracted from the training database; the aforementioned dataset to be segmented is a set of Tibetan sentences selected from the training dataset according to specific rules (i.e., sentences with lengths exceeding the predetermined length). After initial word segmentation and other preprocessing, these sentences, due to their length exceeding the preset predetermined length, may not meet some specific requirements for subsequent model training or processing, and therefore need to be processed separately.

[0048] After secondary word segmentation, the lengths of the Tibetan sentences in the dataset to be segmented are averaged to obtain the average length of the Tibetan sentences in the dataset to be segmented. Then, a threshold correction coefficient is matched from the training database to correct and update the data annotation completeness threshold. The training database stores an average length-threshold correction coefficient mapping table. By directly querying the training database for the average length of the Tibetan sentences in the dataset to be segmented, the threshold correction coefficient corresponding to the average length of the Tibetan sentences in the dataset to be segmented can be obtained. The threshold correction coefficient represents the proportional coefficient for correcting the data annotation completeness threshold. Multiplying the threshold correction coefficient by the data annotation completeness threshold yields the corrected and updated data annotation completeness threshold.

[0049] The data annotation completeness index of the dataset to be segmented after secondary word segmentation is compared with the corrected and updated data annotation completeness threshold. If the dataset to be segmented after secondary word segmentation has the first condition, the dataset to be segmented is re-filled into the dataset to be trained, and the dataset to be trained is determined to be split. If the dataset to be segmented after secondary word segmentation has the second condition, the dataset to be segmented is optimized in a second step.

[0050] Furthermore, a secondary optimization is performed on the dataset to be segmented. The specific optimization process is as follows: Based on the data annotation completeness index and data annotation completeness threshold of the dataset to be segmented, the data annotation completeness deviation value of the dataset to be segmented is obtained. The number of new word segmentation rules is matched from the training database. Word segmentation rules are added in the multilingual pre-trained model CINO according to the number of new word segmentation rules, and word segmentation conversion is performed on the dataset to be segmented. The aforementioned data annotation completeness deviation value is used to quantify the degree of deviation between the data annotation completeness index and the data annotation completeness threshold. Specifically, the data annotation completeness threshold is subtracted from the data annotation completeness index, and the result is the data annotation completeness deviation value. The aforementioned number of new word segmentation rules refers to the number of word segmentation rules that need to be added to the model. The specific matching process is as follows: The training database stores a mapping table of data annotation completeness deviation value and number of new word segmentation rules. The number of new word segmentation rules corresponding to the data annotation completeness deviation value can be obtained by directly querying the training database.

[0051] After word segmentation and conversion, Tibetan sentences with lengths exceeding the defined length are screened from the dataset to be segmented after secondary optimization and marked as a dataset to be warned. The dataset to be segmented is then re-introduced into the dataset to be trained. At the same time, a data warning is issued for the dataset to be warned. Specifically, the warning is displayed through visual instructions, prompting relevant personnel to manually perform word segmentation and conversion. The aforementioned dataset to be warned is a set of Tibetan sentences further filtered from the dataset to be segmented after the word segmentation and conversion data processing step. These Tibetan sentences have a significant characteristic: their length exceeds the pre-set defined length. Since this excessive length may bring potential problems or risks to subsequent data processing, model training, and other stages, it is necessary to pay special attention to and issue warnings for them, hence they are marked as a dataset to be warned.

[0052] At the warning definition time point, it is determined whether a data update instruction has been received. If no data update instruction has been received, it is determined to directly perform data partitioning on the training dataset. The aforementioned warning definition time point refers to the latest time point set for receiving the data update instruction after the data warning operation has been completed for the dataset to be warned. The aforementioned data update instruction includes the result generated after relevant personnel have partitioned the Tibetan sentences in the dataset to be warned.

[0053] If a data update instruction is received, the data in the data update instruction is filled into the training dataset, and the training dataset is partitioned.

[0054] Step 2: Divide the data into training and validation datasets, and use the training and validation datasets to train the multilingual pre-trained model CINO. Collect and analyze the training process parameters to initialize the multilingual pre-trained model CINO.

[0055] The training dataset mentioned above is the basic data set for model learning and parameter tuning; the validation dataset mentioned above is the data set used to evaluate model performance, adjust model hyperparameters, and prevent model overfitting during model training.

[0056] The above-mentioned division of data to obtain training and validation datasets refers to dividing the dataset to be trained according to the data volume ratio preset by relevant personnel.

[0057] In one specific embodiment, the present invention processes the dataset in batches, enabling more detailed monitoring of the training and validation process. By analyzing training parameters to derive anomaly indices and correcting validation thresholds, the training status can be accurately assessed, potential problems can be identified in a timely manner, and subsequent training processes can be adjusted based on the validation accuracy coefficient. This allows for dynamic optimization of the learning rate and the number of training rounds, improving training efficiency and effectiveness. Setting early warning conditions after adjustments can prevent over-adjustment. Batches that still fail to meet the standards after multiple adjustments are marked as training datasets, allowing for targeted training reinforcement. Finally, when the training data is used up, the model completes initialization, ensuring that the model is built based on high-quality data and scientific processes, thereby improving Tibetan word segmentation performance.

[0058] Specifically, the multilingual pre-trained model CINO is initialized as follows: the training dataset is divided into several batches, and the validation dataset is divided into several batches. Based on factors such as the total amount of data, computational resource capacity, and model training strategies, the researchers divide the training dataset into several batches, each containing a certain number of samples. Simultaneously, following the same partitioning logic and scale standards, the validation dataset is divided into a corresponding number of batches. Under this partitioning system, a one-to-one correspondence rule is followed, meaning one batch of training dataset corresponds to one batch of validation dataset. During subsequent model training, each batch of data can be used sequentially for training and validation according to this correspondence, ensuring the scientific rigor of the training process and the reliability of the evaluation results.

[0059] The multilingual pre-trained model CINO was trained using the first batch of training datasets. Parameters from the first batch of training were collected and analyzed to obtain the training anomaly index of the first batch of training datasets. This index was compared with the training anomaly threshold to obtain the training anomaly bias value of the first batch of training datasets. A validation accuracy threshold correction coefficient was then matched from the training database to correct the validation accuracy threshold. The training anomaly threshold represents the maximum allowed value of the training anomaly index, extracted from the training database. The training anomaly bias value is the result of subtracting the training anomaly threshold from the training anomaly index. The validation accuracy threshold correction coefficient is the proportional value used to correct the validation accuracy threshold. Multiplying the validation accuracy threshold correction coefficient by the validation accuracy threshold yields the corrected validation accuracy threshold. The specific matching rule for the validation accuracy threshold correction coefficient is as follows: the training database stores a mapping table of training anomaly bias values ​​and validation accuracy threshold correction coefficients. The validation accuracy threshold correction coefficient corresponding to the training anomaly bias value can be obtained by directly querying the training database.

[0060] After the first batch of training datasets is trained, the multilingual pre-trained model CINO is validated using the first batch of validation datasets. The parameters of the first batch of validation process are collected and analyzed to obtain the validation accuracy coefficient of the first batch of validation datasets. This coefficient is then compared with the validation accuracy threshold after correction to determine whether the training process of the second batch of training datasets needs to be adjusted.

[0061] Specifically, the training anomaly index of the first batch of training datasets is analyzed as follows: First batch training parameters include: the loss function value of the first batch of training datasets, the parameter update magnitude of the first batch of training datasets, and the training duration of the first batch of training datasets. The loss function value measures the difference between the model's predictions and the true labels on the first batch of training datasets. The parameter update magnitude refers to the magnitude by which the model parameters are updated after backpropagation and optimization algorithms (such as gradient descent) on the first batch of training datasets. The training duration refers to the time required for the model to process the first batch of training datasets. The loss function value, parameter update magnitude, and training duration can all be obtained from the model's training logs.

[0062] Obtain the final value of the data label completeness index of the dataset to be trained, and match the correction coefficient from the training database. The final value of the data label completeness index refers to the data label completeness index of the dataset to be trained, which can be obtained through analysis using a programming language (such as Python). The correction coefficient refers to the proportional coefficient used to correct the training anomaly index and the validation accuracy index. The specific matching process is as follows: the training database stores a mapping table of the final value of the data label completeness index and the correction coefficient. By directly querying the final value of the data label completeness index in the training database, the correction coefficient corresponding to the final value of the data label completeness index can be obtained.

[0063] We introduce metric factors to quantify the influence of the ratio between the loss function value and the bound loss function value, the ratio between the parameter update magnitude and the bound parameter update magnitude, and the ratio between the training duration and the bound training duration on the training anomaly index. We summarize the influence of each factor and use correction coefficients to correct the summary results, thereby obtaining the training anomaly index of the first batch of training datasets.

[0064] It's important to explain that the loss function value is closely related to the parameter update magnitude. The parameter update magnitude is often calculated based on the gradient of the loss function value. A larger loss function value means a worse fit between the model and the data, and a larger gradient leads to a larger parameter update magnitude and a more drastic adjustment of the model parameters. Conversely, a smaller loss function value results in a relatively smaller parameter update magnitude and a smoother adjustment of the model parameters. The training time is related to the parameter update magnitude. When the parameter update magnitude is too large, the model parameters change rapidly, causing oscillations and instability in the training process. This may require a longer time to converge, indicating an anomaly in the training process of this batch, suggesting that the model training is unstable or has not been carried out effectively.

[0065] The training anomaly index for the first batch of training datasets characterizes the degree of training anomalies in the first batch of training datasets, and its specific expression is:

[0066]

[0067] In the formula, HUI is the training anomaly index of the first batch of training datasets, Z_DA is the correction coefficient, BM is the loss function value of the first batch of training datasets, PN is the parameter update magnitude of the first batch of training datasets, TO is the training duration of the first batch of training datasets, J_BM is the preset bounded loss function value in the training database, J_PN is the preset bounded parameter update magnitude in the training database, J_TO is the preset bounded training duration in the training database, do1 is the preset loss function value metric in the training database, do2 is the preset parameter update magnitude metric in the training database, and do3 is the preset training duration metric in the training database.

[0068] The above definition of the loss function value indicates the maximum allowed value of the loss function value; the above definition of the parameter update magnitude indicates the maximum allowed value of the parameter update magnitude; the above definition of the training duration indicates the maximum allowed training duration.

[0069] The aforementioned loss function value metric is used to quantify the influence of the unit value of the loss function on the training anomaly index; the aforementioned parameter update magnitude metric is used to quantify the influence of the unit value of the parameter update magnitude on the training anomaly index; the aforementioned training duration factor is used to quantify the influence of the unit value of the training duration on the training anomaly index; the training database stores the mapping relationship between the loss function value, parameter update magnitude, and training duration and their corresponding metric factors. For example, by inputting the loss function value, parameter update magnitude, and training duration into the training database, the training database can retrieve the loss function value metric, parameter update magnitude metric, and training duration factor. The values ​​of the loss function value metric, parameter update magnitude metric, and training duration factor are all between 0 and 1.

[0070] Furthermore, the specific analysis process for the validation accuracy coefficient of the first batch of validation datasets is as follows: The parameters of the first batch of validation processes include: the accuracy, recall, and F1 score of the first batch of validation datasets; the accuracy refers to the proportion of samples correctly predicted by the model on the validation dataset to the total number of samples; the recall refers to the proportion of samples correctly predicted as positive on the validation dataset to the actual number of positive samples; the F1 score is the harmonic mean of accuracy and recall; accuracy, recall, and F1 score can all be obtained from the model's training logs.

[0071] We introduce metric factors to quantify the influence of the training anomaly index, the ratio between precision and definition precision, the ratio between recall and definition recall, and the ratio between F1 score and definition F1 score on the validation accuracy coefficient. We aggregate the influence of each factor and use correction factors to correct the aggregated results to obtain the validation accuracy coefficient.

[0072] It's important to explain that the training anomaly index reflects the degree of anomaly in the model during training. A high index indicates potential data problems or algorithm instability during training. These anomalies directly interfere with the model's normal learning from the data, making it difficult for the model to accurately capture features and patterns. This leads to more errors in predictions and reduced accuracy, as accuracy measures the proportion of correctly predicted samples out of the total sample count. Training anomalies decrease this proportion. Furthermore, training anomalies also reduce recall, which measures the proportion of correctly identified positive samples out of actual positive samples. Training anomalies may cause the model to miss many actually positive samples. This leads to a decrease in recall, while the F1 score is the harmonic mean of precision and recall. A decrease in precision and recall will inevitably lead to a decrease in the F1 score, because the F1 score combines the evaluation of model performance by both. When both perform poorly, the F1 score will also be at a low level. As key indicators of model performance, precision, recall, and F1 score will collectively affect the validation accuracy coefficient, which measures the overall performance of the model on the validation set. A decrease in precision, recall, and F1 score all mean that the model's prediction performance on the validation set has deteriorated, thus causing a decrease in the validation accuracy coefficient. This indicates that the model's performance in the validation stage is not ideal, and there may be problems such as overfitting, underfitting, or training anomalies.

[0073] The validation accuracy coefficient of the first batch of validation datasets characterizes the accuracy of validation performed on the first batch of validation datasets. The specific expression is as follows:

[0074]

[0075] In the formula, MKO is the validation accuracy coefficient of the batch training dataset, Z_DA is the correction coefficient, HUI is the training anomaly index of the batch training dataset, VA is the accuracy of the first batch of validation datasets, VR is the recall of the first batch of validation datasets, BS is the F1 score of the first batch of validation datasets, J_VA is the preset bounded accuracy in the training database, J_VR is the preset bounded recall in the training database, J_BS is the preset bounded F1 score in the training database, sc1 is the preset training anomaly index metric in the training database, sc2 is the preset accuracy metric in the training database, sc3 is the preset recall metric in the training database, and sc4 is the preset F1 score metric in the training database.

[0076] The above definition of precision indicates the minimum allowable value of precision; the above definition of recall indicates the minimum allowable value of recall; the above definition of F1 score indicates the minimum allowable value of F1 score.

[0077] The aforementioned training anomaly index metric is used to quantify the impact of a unit value of the training anomaly index on the validation accuracy coefficient; the aforementioned accuracy metric is used to quantify the impact of a unit value of the accuracy coefficient on the validation accuracy coefficient; the aforementioned recall metric is used to quantify the impact of a unit value of the recall coefficient on the validation accuracy coefficient; the aforementioned F1 score metric is used to quantify the impact of a unit value of the F1 score on the validation accuracy coefficient. The training database stores the mapping relationship between the training anomaly index, accuracy, recall, and F1 score and their corresponding metric. For example, by inputting the training anomaly index, accuracy, recall, and F1 score into the training database, the training database can retrieve the training anomaly index metric, accuracy metric, recall metric, and F1 score metric. The values ​​of the training anomaly index metric, accuracy metric, recall metric, and F1 score metric all range from 0 to 1.

[0078] Furthermore, it is determined whether to adjust the training process of the second batch of training datasets. The specific determination process is as follows: if the validation accuracy coefficient of the first batch of validation datasets is greater than or equal to the validation accuracy threshold, it is determined that the training process of the second batch of training datasets will not be adjusted; the aforementioned validation accuracy threshold represents the minimum value allowed for the validation accuracy coefficient, which is extracted from the training database.

[0079] If the validation accuracy coefficient of the first batch of validation datasets is less than the validation accuracy threshold, then the training process for the second batch of training datasets is adjusted. Specifically, the adjustment process is as follows: based on the validation accuracy coefficient and validation accuracy threshold of the first batch of validation datasets, the validation accuracy deviation value of the first batch of validation datasets is obtained. Then, the learning rate correction coefficient and training epoch correction coefficient are matched from the training database, thereby adjusting the learning rate and training epochs of the training process for the second batch of training datasets. The aforementioned validation accuracy deviation value refers to the result obtained by subtracting the validation accuracy coefficient from the validation accuracy threshold; the aforementioned learning rate correction coefficient refers to the adjustment of the learning rate... The above-mentioned training epoch correction coefficient refers to the proportional value used to correct the number of training epochs. Multiplying the learning rate correction coefficient by the learning rate and the training epoch correction coefficient by the number of training epochs yields the adjusted learning rate and training epochs. The specific matching process for the learning rate correction coefficient and the training epoch correction coefficient is as follows: The training database stores a mapping table of validation accuracy deviation value - learning rate correction coefficient and a mapping table of validation accuracy deviation value - training epoch correction coefficient. By directly querying the validation accuracy deviation value in the training database, the corresponding learning rate correction coefficient and training epoch correction coefficient can be obtained.

[0080] If a third condition exists after adjustment, a correction warning will be issued. The third condition refers to either a learning rate greater than the defined learning rate or a number of training epochs greater than the defined number of training epochs. The defined learning rate refers to the maximum allowed learning rate. The defined number of training epochs refers to the maximum allowed number of training epochs. Both the defined learning rate and the defined number of training epochs are extracted from the training database. The correction warning issued refers to notifying relevant experimental personnel of any abnormalities in the training process through a visual warning method.

[0081] If the third condition does not exist after adjustment, no correction warning will be issued, and the training process parameters and verification process parameters of the next adjacent batch will be continuously collected and analyzed. If the training process of a certain batch of training datasets is adjusted, and the verification accuracy coefficient of the next adjacent batch of training datasets corresponding to that batch of training datasets is still less than the verification accuracy coefficient, then the next adjacent batch of training datasets corresponding to that batch of training datasets will be marked as the training dataset, and the multilingual pre-trained model CINO will be trained using the training dataset. If the data in the training dataset is used up, the initialization of the multilingual pre-trained model CINO will be completed.

[0082] Step 3: Obtain the test dataset and use the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby visualizing the Tibetan word segmentation.

[0083] Specifically, Tibetan word segmentation visualization is performed. The specific analysis process is as follows: The test dataset is input into the initialized multilingual pre-trained model CINO, and the output of the multilingual pre-trained model CINO is labeled as the result dataset; a reference result dataset is obtained from the test dataset and compared with the result dataset to determine the accuracy of the test dataset; the above test dataset was formulated by relevant researchers, and the test set data includes religious, cultural, legal, and political fields, with two text styles: verses and prose. Due to the presence of foreign punctuation marks such as "(" in the Tibetan word segmentation training data, as well as the lack of understanding of the Tibetan word segmentation training data, the accuracy of the test dataset is determined. Tibetan punctuation marks and non-Tibetan characters (such as English and Chinese characters) were segmented from Tibetan syllables. To objectively evaluate model performance, syllable separators were added after these symbols and non-Tibetan characters in the test set to prevent them from adhering to Tibetan syllables and affecting the model's prediction and evaluation. The reference result dataset for the above test dataset was labeled by relevant researchers. The accuracy of the above test dataset is an indicator of the consistency between the result dataset and the reference result dataset. It reflects the overall performance of the model on the entire test dataset. For example, based on overlap comparison using data processing software (such as Matrix Lab), the number of samples in all samples whose model output is consistent with the reference result is counted. For instance, if the test dataset has 100 samples, and after comparison, it is found that the model output of 80 samples is consistent with the reference result, then the accuracy can be calculated based on this statistical result. The reference result dataset for the above test dataset represents the reference result of the result dataset, which was established by relevant researchers.

[0084] The comparison process of the test dataset is obtained. Based on the accuracy of the test dataset results and the comparison process, the Tibetan word segmentation of the test dataset is visualized. The comparison process of the test dataset can be obtained from the model training log. The visualization refers to using intuitive visual elements such as graphics, charts, and images to clearly and vividly present the Tibetan word segmentation in the test dataset.

[0085] In one specific embodiment, this invention provides a Tibetan word segmentation method and system based on the multilingual pre-trained model CINO. First, a dataset to be labeled is collected to provide massive text resources for subsequent research. Then, word segmentation is performed to obtain a training dataset, converting the text into a sequence of lexical units suitable for model processing, facilitating model learning of structure. Next, the attribute parameters of the training dataset are analyzed to determine whether data partitioning is necessary. Reasonable partitioning ensures the representativeness of the training and validation sets, avoids data distribution bias, and improves the model's generalization ability. Subsequently, training and validation datasets are obtained through partitioning and used to train the multilingual pre-trained model CINO. Training process parameters are collected and analyzed to understand the model's training status, allowing for timely adjustments to strategies and hyperparameters. Model initialization is completed, enabling the model to fully utilize training information, quickly obtain a good performance foundation, and improve training efficiency. Finally, a test dataset is obtained, and the initialized model is used for Tibetan word segmentation. The results are then visualized. The test dataset objectively evaluates model performance, while visualization intuitively presents the segmentation effect, promoting the improvement of Tibetan word segmentation accuracy and reliability, and facilitating the application of multilingual processing technology in the Tibetan language field.

[0086] Reference Figure 2 As shown, the second aspect of the present invention provides a Tibetan word segmentation system based on the multilingual pre-trained model CINO, including: a data partitioning module, a model initialization module, a word segmentation visualization module, and a training database.

[0087] The training database is used to store parameters involved in a Tibetan word segmentation system based on the multilingual pre-trained model CINO.

[0088] The data partitioning module is connected to the model initialization module, which in turn is connected to the word segmentation visualization module. All three modules—data partitioning, model initialization, and word segmentation visualization—are connected to the training database.

[0089] The data partitioning module is used to collect the dataset to be labeled, perform word segmentation on the dataset to be labeled, thereby obtaining the dataset to be trained, and obtain and analyze the attribute parameters of the dataset to be trained, so as to determine whether to partition the dataset to be trained.

[0090] The model initialization module is used to derive the training dataset and validation dataset through data partitioning, and to train the multilingual pre-trained model CINO using the training dataset and validation dataset. It also collects and analyzes the training process parameters to initialize the multilingual pre-trained model CINO.

[0091] The word segmentation visualization module is used to obtain the test dataset and use the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby providing a visual representation of the Tibetan word segmentation.

[0092] Figure 3 This is a schematic diagram of the dataset partitioning process of the present invention. After the process begins, the dataset is first collected and segmented for word conversion. That is, the Tibetan dataset to be labeled is collected and segmented for word conversion to obtain the dataset to be trained. Next, the attribute parameters of the dataset are analyzed to understand its characteristics, and based on the analysis results, it is determined whether the dataset needs to be divided into a training set and a validation set. If the partitioning conditions are met, the partitioning is performed. If not, the dataset is optimized, including processing long sentences and re-evaluating the partitioning conditions. If the conditions are still not met after optimization, further optimization is required. After the partitioning or optimization is completed, the multilingual pre-trained model CINO is trained using the training set and the validation set. Figure 4 This is a schematic diagram of the training process adjustment flow of the present invention. The training set and validation set are trained and validated in batches. During the process, relevant parameters are collected and analyzed to evaluate the model training effect and validation accuracy. Based on the analysis results, it is determined whether the training process needs to be adjusted (such as adjusting the learning rate, number of training rounds, etc.). If no adjustment is needed, the next batch of training continues. If adjustment is needed, the corresponding adjustment is made. Then it is determined whether the model has completed all batches of training. If not, it continues. If it has been completed, the model initialization is completed. After that, a Tibetan dataset for testing is collected. The initialized model is used to perform Tibetan word segmentation, and the word segmentation results are visualized for observation and analysis. Finally, the process ends.

[0093] Figure 8 The Tibetan word segmentation and visualization interface of this invention Figure 2 Functionally, the interface has a Tibetan text input area where users can input Tibetan sentences or paragraphs to be segmented. The system will process the input text based on the built-in Tibetan word segmentation algorithm, dividing the continuous Tibetan character sequence into semantic words. The interface will display the word segmentation results in a clear and intuitive way. Figure 9 The training set details interface diagram of this invention will list the basic information of the training set, such as the name of the training set, so that users can understand the source and timeliness of the training set and know the amount of data used to train the model. At the same time, it may also show the distribution of the training set samples, which helps users evaluate the coverage of the training set on various Tibetan texts and judge whether the model can learn comprehensive Tibetan language features. Figure 10 This is a diagram of the model parameter management interface of the present invention, which clearly displays various parameter information of the model. These parameters may include, but are not limited to, learning rate, number of iterations, etc. Users can view the current setting value of each parameter on this interface.

[0094] The above description is merely an example and illustration of the structure of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the structure of the invention or exceed the scope defined by the present invention, they should all fall within the protection scope of the present invention.< / s>

Claims

1. A Tibetan word segmentation method based on the multilingual pre-trained model CINO, characterized in that, include: Step 1: Collect the dataset to be labeled and perform word segmentation on the dataset to be labeled to obtain the dataset to be trained. Obtain and analyze the attribute parameters of the dataset to be trained to determine whether to split the dataset to be trained. The specific process for determining whether to partition the training dataset is as follows: By analyzing the attribute parameters of the dataset to be trained, the data annotation completeness index of the dataset to be trained is obtained; Extract the data labeling integrity threshold from the training database and compare it with the data labeling integrity index of the dataset to be trained. If the dataset to be trained meets the first condition, then determine whether to split the dataset into data. If the training dataset has a second condition, then it is determined that the training dataset will not be split, and the training dataset will be optimized. The first condition refers to the data annotation completeness index being greater than or equal to the data annotation completeness threshold; The second condition refers to the data annotation completeness index being less than the data annotation completeness threshold; The attribute parameters of the training dataset include the unlabeled word ratio, the label density range, and the label coverage. We introduce metrics to quantify the impact of the ratio between unlabeled words and defined unlabeled words, the ratio between the range of labeled density and defined labeled density, and the ratio between labeled coverage and defined labeled coverage on the data labeling completeness index. We then aggregate these impact factors to derive the data labeling completeness index. The data annotation completeness index of the training dataset represents the degree of data annotation completeness of the training dataset. The data optimization process for the training dataset is as follows: Tibetan sentences with a length greater than the defined length are screened out from the training dataset and summarized and labeled as the dataset to be segmented. Secondary word segmentation is performed on the dataset to be segmented, and the data annotation completeness index of the dataset to be segmented after secondary word segmentation is obtained. The average length of the Tibetan sentences in the dataset to be segmented after the secondary word segmentation is processed to obtain the average length of the Tibetan sentences in the dataset to be segmented. The threshold correction coefficient is then matched from the training database to correct and update the data annotation complete threshold. The data annotation completeness index of the dataset to be segmented after the secondary word segmentation is compared with the corrected and updated data annotation completeness threshold. If the dataset to be segmented after the secondary word segmentation has the first condition, the dataset to be segmented is re-filled into the dataset to be trained, and the dataset to be trained is determined to be split. If the dataset to be segmented after secondary word segmentation has a second condition, then the dataset to be segmented will be optimized a second time. Step 2: Divide the data into training and validation datasets, use the training and validation datasets to train the multilingual pre-trained model CINO, collect and analyze the training process parameters, and thus initialize the multilingual pre-trained model CINO. Step 3: Obtain the test dataset and use the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby visualizing the Tibetan word segmentation. The unlabeled word ratio mentioned above refers to the proportion of unlabeled words in the training dataset to the total number of words. The aforementioned annotation density range refers to the difference between the maximum and minimum annotation density values ​​in the dataset. Annotation density represents the proportion of annotations within a unit length, and the range reflects the fluctuation range of annotation density in the dataset. The aforementioned annotation coverage rate refers to the proportion of the number of labeled words or entities in the dataset to the total number of words or entities that should be labeled.

2. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 1, characterized in that: The secondary optimization of the dataset to be segmented is performed as follows: Based on the data annotation completeness index and data annotation completeness threshold of the dataset to be segmented, the data annotation completeness deviation value of the dataset to be segmented is obtained, and the number of newly added word segmentation rules is matched from the training database. Word segmentation rules are added in the multilingual pre-trained model CINO based on the number of newly added word segmentation rules, and word segmentation conversion is performed on the dataset to be segmented. After word segmentation and conversion, Tibetan sentences with a length greater than the defined length are screened out from the dataset to be segmented after secondary optimization and marked as the dataset to be warned. The dataset to be segmented is then refilled into the dataset to be trained, and data warnings are issued for the dataset to be warned. At the warning definition time point, it is determined whether a data update instruction has been received. If no data update instruction has been received, it is determined to directly split the data into parts for the training dataset. If a data update instruction is received, the data in the data update instruction is filled into the training dataset, and the training dataset is partitioned.

3. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 1, characterized in that: The initialization process for the multilingual pre-trained model CINO is as follows: The training dataset is divided into several batches of training datasets, and the validation dataset is divided into several batches of validation datasets. The multilingual pre-trained model CINO was trained using the first batch of training datasets; Collect and analyze the parameters of the first batch of training processes to obtain the training anomaly index of the first batch of training datasets, compare and analyze it with the training anomaly threshold to obtain the training anomaly deviation value of the first batch of training datasets, and match the verification accuracy threshold correction coefficient from the training database to correct the verification accuracy threshold. After the first batch of training datasets is trained, the multilingual pre-trained model CINO is validated using the first batch of validation datasets. The parameters of the first batch of validation process are collected and analyzed to obtain the validation accuracy coefficient of the first batch of validation datasets. This coefficient is then compared with the validation accuracy threshold after correction to determine whether the training process of the second batch of training datasets needs to be adjusted.

4. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 3, characterized in that: The determination process for whether to adjust the training process of the second batch of training datasets is as follows: If the validation accuracy coefficient of the first batch of validation datasets is greater than or equal to the validation accuracy threshold, then it is determined that the training process of the second batch of training datasets will not be adjusted. If the validation accuracy coefficient of the first batch of validation datasets is less than the validation accuracy threshold, it is determined that the training process of the second batch of training datasets will be adjusted. The specific adjustment process is as follows: based on the validation accuracy coefficient and validation accuracy threshold of the first batch of validation datasets, the validation accuracy deviation value of the first batch of validation datasets is obtained, and the learning rate correction coefficient and training round correction coefficient are matched from the training database, so as to adjust the learning rate and training rounds of the training process of the second batch of training datasets. If a third condition exists after the adjustment, a correction warning will be issued. The third condition refers to the learning rate being greater than the defined learning rate or the number of training rounds being greater than the defined number of training rounds. If no third condition exists after the adjustment, no correction warning will be issued, and the training process parameters of the next adjacent batch and the verification process parameters of the next adjacent batch will be continuously collected and analyzed. If the training process of a certain batch of training datasets is adjusted, and the validation accuracy coefficient of the next adjacent batch of training datasets corresponding to that batch of training datasets is still less than the validation accuracy coefficient, then the next adjacent batch of training datasets corresponding to that batch of training datasets is marked as the training dataset, and the training dataset is used to train the multilingual pre-trained model CINO. If the data in the training dataset has been used up, the initialization of the multilingual pre-trained model CINO is complete.

5. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 3, characterized in that: The specific analysis process for the training anomaly index of the first batch of training datasets is as follows: The first batch of training process parameters include: the loss function value of the first batch of training dataset, the parameter update magnitude of the first batch of training dataset, and the training duration of the first batch of training dataset; Obtain the final values ​​of the fully labeled exponents from the dataset to be trained, and match the correction coefficients from the training database; We introduce metric factors to quantify the influence of the ratio between the loss function value and the bound loss function value, the ratio between the parameter update magnitude and the bound parameter update magnitude, and the ratio between the training duration and the bound training duration on the training anomaly index. We summarize the influence of each factor and use correction coefficients to correct the summary results, thereby obtaining the training anomaly index of the first batch of training datasets. The training anomaly index of the first batch of training datasets represents the degree of training anomaly in the first batch of training datasets.

6. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 4, characterized in that: The specific analysis process for the validation accuracy coefficient of the first batch of validation datasets is as follows: The first batch of validation process parameters include: the accuracy of the first batch of validation dataset, the recall of the first batch of validation dataset, and the F1 score of the first batch of validation dataset. We introduce metric factors to quantify the influence of the training anomaly index, the ratio between precision and definition precision, the ratio between recall and definition recall, and the ratio between F1 score and definition F1 score on the validation accuracy coefficient. We aggregate the influence of each factor and use correction factors to correct the aggregated results to obtain the validation accuracy coefficient. The validation accuracy coefficient of the first batch of validation datasets represents the accuracy of the validation of the first batch of validation datasets.

7. The Tibetan word segmentation method based on the multilingual pre-trained model CINO according to claim 1, characterized in that: The specific analysis process for visualizing Tibetan word segmentation is as follows: Input the test dataset into the initialized multilingual pre-trained model CINO, and label the output of the multilingual pre-trained model CINO as the result dataset. Obtain a reference result dataset for the test dataset and compare it with the result dataset to determine the accuracy of the test dataset results. The comparison process of the test dataset is obtained. Based on the accuracy of the test dataset results and the comparison process of the test dataset, the Tibetan word segmentation of the test dataset is visualized.

8. A system applying the Tibetan word segmentation method based on the multilingual pre-trained model CINO as described in any one of claims 1-7, characterized in that: include: The data partitioning module is used to collect the dataset to be labeled, perform word segmentation on the dataset to be labeled, thereby obtaining the dataset to be trained, and obtain and analyze the attribute parameters of the dataset to be trained to determine whether to partition the dataset to be trained. The model initialization module is used to obtain the training dataset and validation dataset by data partitioning, use the training dataset and validation dataset to train the multilingual pre-trained model CINO, collect and analyze the training process parameters, and thus initialize the multilingual pre-trained model CINO. The word segmentation visualization module is used to obtain the test dataset and use the initialized multilingual pre-trained model CINO to perform Tibetan word segmentation on the test dataset, thereby providing a visual representation of the Tibetan word segmentation.

Citation Information

Patent Citations

  • Tibetan word segmentation method based on Transformer-CRF

    CN114330328B

  • A Tibetan word segmentation and part-of-speech tagging integrated method and system

    CN117556814B

  • Non-supervision method for identifying compound phrases divided based on maximum relativity of graph

    CN106649265A

  • Tibetan medicine field entity relationship joint extraction system and method

    CN116681065A