CN117829137A - Chinese language prime topic generation method, device, electronic equipment and storage medium - Google Patents
Chinese language prime topic generation method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117829137A CN117829137A CN202410251103.9A CN202410251103A CN117829137A CN 117829137 A CN117829137 A CN 117829137A CN 202410251103 A CN202410251103 A CN 202410251103A CN 117829137 A CN117829137 A CN 117829137A
- Authority
- CN
- China
- Prior art keywords
- database
- preset
- target
- question
- search
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000004044 response Effects 0.000 claims description 84
- 238000012360 testing method Methods 0.000 claims description 45
- 238000004590 computer program Methods 0.000 claims description 11
- 241000251468 Actinopterygii Species 0.000 description 12
- 230000009182 swimming Effects 0.000 description 12
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 239000000203 mixture Substances 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/258—Heading extraction; Automatic titling; Numbering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/38—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/383—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Library & Information Science (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域Technical Field
本公开的实施例涉及人工智能的技术领域,具体涉及汉语语素题目生成方法、装置、电子设备和存储介质。Embodiments of the present disclosure relate to the technical field of artificial intelligence, and in particular to a method, device, electronic device, and storage medium for generating Chinese morpheme titles.
背景技术Background technique
语素是语言中“最小的音形义结合体”。语素意识对于中文阅读十分重要,可以帮助学习者在学习汉语的过程中,充分了解汉字文字体系,准确地读写复合词汇,促进口头和书面词汇的学习,促进句法分析和阅读理解。Morphemes are the smallest combination of sound, form and meaning in a language. Morpheme awareness is very important for Chinese reading. It can help learners fully understand the Chinese writing system, read and write compound words accurately, promote oral and written vocabulary learning, and promote syntactic analysis and reading comprehension in the process of learning Chinese.
通过编制汉语语素题目可以考察学习者对汉字音形义理解的能力,帮助学习者的语素意识发展,作为训练任务提升学习者的语素意识。但是现有的题目编制方法需要人工搜寻音形义各维度的干扰项,根据具体研究目的编制。编制的题目往往数量有限,维度单一,在组题效率和准确性上有一定的局限性。By compiling Chinese morpheme questions, we can examine learners' ability to understand the pronunciation, form and meaning of Chinese characters, help develop learners' morpheme awareness, and improve learners' morpheme awareness as a training task. However, the existing question compilation method requires manual search for interference items in the dimensions of pronunciation, form and meaning, and compile according to specific research purposes. The compiled questions are often limited in number and single in dimension, and have certain limitations in question compilation efficiency and accuracy.
因此,如何提升语素题目的编制效率,是本领域技术人员亟需解决的技术问题。Therefore, how to improve the efficiency of compiling morpheme questions is a technical problem that technical personnel in this field urgently need to solve.
发明内容Summary of the invention
本公开的实施例提出了汉语语素题目生成方法、装置、电子设备和存储介质。The embodiments of the present disclosure provide a method, device, electronic device and storage medium for generating Chinese morpheme titles.
第一方面,本公开的实施例提供了一种汉语语素题目生成方法,该方法包括:In a first aspect, an embodiment of the present disclosure provides a method for generating a Chinese morpheme title, the method comprising:
获取目标关键字和目标题目类型,上述目标关键字为汉字或词汇,上述目标题目类型为字义辨析、同音字辨析、同声旁字辨析、同形旁字辨析、近义词辨析、反义词辨析或词性辨析中的任意一种;Obtaining a target keyword and a target title type, wherein the target keyword is a Chinese character or a word, and the target title type is any one of character meaning analysis, homophone analysis, homophonic character analysis, homographic character analysis, synonym analysis, antonym analysis, or part of speech analysis;
根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段;According to the above target topic type, determining a search database and a search field in a preset Chinese character database, a preset vocabulary database and a preset sentence database;
根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件;Determine the query conditions according to the target topic type, the target keyword, the search database and the search field;
在上述检索数据库中,检索上述检索字段的取值符合上述查询条件的数据,作为查询结果;In the search database, data whose values of the search fields meet the search conditions are searched as the search results;
根据上述查询结果,生成汉语语素题目。Based on the above query results, Chinese morpheme titles are generated.
可选的,上述获取目标关键字和目标题目类型,包括:Optionally, the above-mentioned target keyword and target title type are obtained, including:
响应于检测到目标用户输入的手动生成题目请求,获取上述目标用户输入的文字作为上述目标关键字,以及获取上述目标用户选择的题目类型作为上述目标题目类型;In response to detecting a manual topic generation request input by a target user, obtaining the text input by the target user as the target keyword, and obtaining the topic type selected by the target user as the target topic type;
响应于检测到上述目标用户输入的批量生成题目请求,在预设文本库中抽取任意汉字作为上述目标关键字,以及将字义辨析、同音字辨析、同声旁字辨析或同形旁字辨析中的任意一种题目类型确定为上述目标题目类型,或者在预设文本库中抽取任意词汇作为上述目标关键字,将近义词辨析、反义词辨析或词性辨析中的任意一种题目类型作为上述目标题目类型。In response to detecting a batch generation question request input by the target user, any Chinese character is extracted from a preset text library as the target keyword, and any question type among word meaning analysis, homophone analysis, homophonic character analysis or homographic character analysis is determined as the target question type, or any vocabulary is extracted from the preset text library as the target keyword, and any question type among synonym analysis, antonym analysis or part of speech analysis is determined as the target question type.
可选的,上述预设汉字数据库存储有至少两个汉字信息,上述汉字信息包括以下至少一项:汉字、字义、字音、声旁和形旁;Optionally, the preset Chinese character database stores at least two pieces of Chinese character information, and the Chinese character information includes at least one of the following: Chinese character, character meaning, character pronunciation, phonetic radical and radical;
上述预设词汇数据库存储有至少两个词汇信息,词汇信息包括以下至少一项:词汇、近义词、反义词、词性和上述词汇中汉字的汉字信息;The preset vocabulary database stores at least two vocabulary information, the vocabulary information including at least one of the following: vocabulary, synonyms, antonyms, parts of speech and Chinese character information of the Chinese characters in the vocabulary;
上述预设语句数据库存储有至少两个语句信息,语句信息包括以下至少一项:语句和上述语句中词汇的词汇信息。The preset sentence database stores at least two sentence information, and the sentence information includes at least one of the following items: a sentence and vocabulary information of the vocabulary in the sentence.
可选的,上述根据上述目标题目类型确定检索数据库和检索字段,包括:Optionally, the above-mentioned determination of the search database and search field according to the above-mentioned target topic type includes:
响应于上述目标题目类型为字义辨析,确定上述检索数据库为上述预设汉字数据库、上述预设词汇数据库和上述预设语句数据库,上述检索字段为字义字段;In response to the target topic type being word meaning analysis, determining that the search database is the preset Chinese character database, the preset vocabulary database, and the preset sentence database, and the search field is the word meaning field;
响应于上述目标题目类型为同音字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为字音字段;In response to the target topic type being homophone analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is a pronunciation field;
响应于上述目标题目类型为同声旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为声旁字段;In response to the target topic type being homophone analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is the phonetic field;
响应于上述目标题目类型为同形旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为形旁字段;In response to the target topic type being homographic character analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is the radical field;
响应于上述目标题目类型为近义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为近义词字段;In response to the target topic type being synonym analysis, determining that the search database is the preset vocabulary database and the preset sentence database, and the search field is a synonym field;
响应于上述目标题目类型为反义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为反义词字段;In response to the target topic type being antonym analysis, determining that the search database is the preset vocabulary database and the preset sentence database, and the search field is an antonym field;
响应于上述目标题目类型为词性辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为词性字段。In response to the target topic type being part of speech analysis, the search database is determined to be the preset vocabulary database and the preset sentence database, and the search field is a part of speech field.
可选的,上述查询结果包括匹配项数据、干扰项数据和题干数据;以及Optionally, the query results include matching item data, distractor item data and question stem data; and
上述根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件,包括:The query conditions are determined based on the target topic type, the target keyword, the search database and the search field, including:
响应于上述目标题目类型为字义辨析,确定上述查询条件为在上述预设汉字数据库中获取上述目标关键字的任一字义,作为考察字义;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字义为上述考察字义的语句,作为上述题干数据;In response to the target question type being word meaning analysis, the query condition is determined to be obtaining any word meaning of the target keyword in the preset Chinese character database as the test word meaning; obtaining a word including the target keyword and having the same meaning as the test word meaning in the preset vocabulary database as the matching item data; obtaining a word including the target keyword and having a different meaning from the test word meaning in the preset vocabulary database as the interference item data; obtaining a sentence including the target keyword and having the same meaning as the test word meaning in the preset sentence database as the question stem data;
响应于上述目标题目类型为同音字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的任一字音,作为考察字音;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,与上述考察字音字音相同的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字音为上述考察字音的语句,作为上述题干数据;In response to the target question type being homophone analysis, the query condition is determined as: obtaining any pronunciation of the target keyword in the preset Chinese character database as the examination pronunciation; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword in the preset Chinese character database that are the same as the examination pronunciation as the interference item data; obtaining a sentence including the target keyword and having the target keyword with the examination pronunciation as the question stem data in the preset sentence database;
响应于上述目标题目类型为同声旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的声旁,作为考察声旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,声旁是上述考察声旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;In response to the target question type being homophone analysis, the query condition is determined as: obtaining the homophone of the target keyword from the preset Chinese character database as the examination homophone; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword whose homophone is the examination homophone from the preset Chinese character database as the interference item data; obtaining a sentence including the target keyword from the preset sentence database as the question stem data;
响应于上述目标题目类型为同形旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的形旁,作为考察形旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,形旁是上述考察形旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;In response to the target question type being the analysis of characters with the same radical, the query condition is determined as: obtaining the radical of the target keyword from the preset Chinese character database as the test radical; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword whose radical is the test radical from the preset Chinese character database as the interference item data; obtaining a sentence including the target keyword from the preset sentence database as the question stem data;
响应于上述目标题目类型为近义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的近义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的近义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;In response to the target question type being synonym analysis, the query condition is determined as: obtaining synonyms of the target keyword in the preset vocabulary database as the matching item data; obtaining any vocabulary other than the synonyms of the target keyword in the preset vocabulary database as the interference item data; obtaining a sentence including the target keyword in the preset sentence database as the question stem data;
响应于上述目标题目类型为反义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的反义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的反义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;In response to the target question type being antonym analysis, the query condition is determined as: obtaining antonyms of the target keyword in the preset vocabulary database as the matching item data; obtaining any vocabulary other than the antonyms of the target keyword in the preset vocabulary database as the interference item data; obtaining a sentence including the target keyword in the preset sentence database as the question stem data;
响应于上述目标题目类型为词性辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的词性,作为考察词性;在上述预设词汇数据库中,获取除上述目标关键字以外,与上述考察词性词性相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取与上述考察词性词性不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。In response to the target question type being part-of-speech analysis, the query condition is determined as follows: obtaining the part-of-speech of the target keyword in the preset vocabulary database as the test part-of-speech; obtaining vocabulary other than the target keyword in the preset vocabulary database that has the same part-of-speech as the test part-of-speech as the matching item data; obtaining vocabulary different from the test part-of-speech as the interference item data in the preset vocabulary database; and obtaining a sentence including the target keyword in the preset sentence database as the question stem data.
可选的,上述汉语语素题目包括题干、干扰项和匹配项,预设题目生成模板包括题干格式、干扰项数量和匹配项数量;以及Optionally, the Chinese morpheme question includes a stem, interference items and matching items, and the preset question generation template includes a stem format, the number of interference items and the number of matching items; and
上述根据上述查询结果,生成汉语语素题目,包括:Based on the above query results, Chinese morpheme titles are generated, including:
从上述题干数据中选取任一语句,按照上述目标题目类型对应的题干格式,生成上述题干;Select any sentence from the above question stem data, and generate the above question stem according to the question stem format corresponding to the above target question type;
从上述干扰项数据中选取上述干扰项数量个汉字或词汇,分别对应生成一个干扰项;Select the Chinese characters or words with the number of interference items from the interference item data, and generate a interference item respectively;
从上述匹配项数据中选取上述匹配项数量个汉字或词汇,分别对应生成一个匹配项;Select the Chinese characters or words of the number of the matching items from the matching item data, and generate a matching item respectively;
将上述干扰项和上述匹配项打乱顺序排列,并与上述题干关联,形成汉语语素题目。Arrange the above interference items and the above matching items in shuffled order, and associate them with the above question stem to form a Chinese morpheme question.
可选的,上述方法还包括:Optionally, the above method further includes:
记录上述干扰项和上述匹配项,作为上述汉语语素题目的答案。Record the above interference items and the above matching items as the answers to the above Chinese morpheme questions.
可选的,上述方法还包括:Optionally, the above method further includes:
响应于无法从上述干扰项数据中选取上述干扰项数量个汉字或词汇或无法从上述匹配项数据中选取上述匹配项数量个汉字或词汇,生成用于指示组题失败的失败提醒信息。In response to failure to select the above number of distractor Chinese characters or words from the above distractor data or failure to select the above number of matching Chinese characters or words from the above matching data, failure reminder information is generated to indicate failure of question combination.
可选的,上述方法还包括:Optionally, the above method further includes:
呈现题干及题干刷新操作显示对象、每个干扰项及每个干扰项的干扰项刷新操作显示对象和每个匹配项及每个匹配项的对应的匹配项刷新操作显示对象;Presenting a question stem and a question stem refresh operation display object, each distractor and a distractor refresh operation display object for each distractor, and each matching item and a matching item refresh operation display object corresponding to each matching item;
响应于检测到上述题干刷新操作显示对象的选中操作,从上述题干数据中选取除呈现的题干以外的任一语句,按照上述目标题目类型对应的题干格式,生成更新题干;用上述更新题干替换上述题干;In response to detecting a selection operation of the question stem refresh operation display object, selecting any sentence other than the presented question stem from the question stem data, generating an updated question stem according to the question stem format corresponding to the target question type; and replacing the question stem with the updated question stem;
响应于检测到任一干扰项的干扰项刷新操作显示对象的选中操作,从上述干扰项数据中选取除上述呈现的干扰项以外的任一汉字或词汇,生成更新干扰项;用上述更新干扰项替换选中的干扰项刷新操作显示对象对应的干扰项;In response to detecting a selection operation of a distractor item refresh operation display object of any distractor item, selecting any Chinese character or word other than the distractor item presented above from the distractor item data to generate an updated distractor item; replacing the distractor item corresponding to the selected distractor item refresh operation display object with the updated distractor item;
响应于检测到任一匹配项的匹配项刷新操作显示对象的选中操作,从上述匹配项数据中选取除上述呈现的匹配项以外的任一汉字或词汇,生成更新匹配项;用上述更新匹配项替换选中的匹配项刷新操作显示对象对应的匹配项。In response to detecting a selection operation of a matching item refresh operation display object of any matching item, any Chinese character or word other than the matching item presented above is selected from the matching item data to generate an updated matching item; and the matching item corresponding to the selected matching item refresh operation display object is replaced with the updated matching item.
可选的,上述方法还包括:Optionally, the above method further includes:
获取限制条件,上述限制条件包括题干年级限制条件和干扰项年级限制条件,上述题干年级限制条件用于限制上述题干数据是否来源于限制的年级的教材,上述干扰项年级限制条件用于限制上述干扰项数据是否来源于限制的年级的教材;以及Obtaining restriction conditions, the restriction conditions including question stem grade restriction conditions and interference item grade restriction conditions, the question stem grade restriction conditions are used to restrict whether the question stem data is derived from textbooks of restricted grades, and the interference item grade restriction conditions are used to restrict whether the interference item data is derived from textbooks of restricted grades; and
上述在上述检索数据库中检索上述检索字段的取值符合上述查询条件的数据,作为查询结果,包括:The above-mentioned search results of searching the above-mentioned search database for data whose values of the above-mentioned search fields meet the above-mentioned search conditions include:
在上述检索数据库中检索上述检索字段的取值符合上述查询条件和上述限制条件的数据,作为查询结果。The data whose value of the search field meets the search condition and the restriction condition are searched in the search database as the search result.
第二方面,本公开的实施例提供了一种汉语语素题目生成装置,该装置包括:In a second aspect, an embodiment of the present disclosure provides a Chinese morpheme title generation device, the device comprising:
获取模块,用于获取目标关键字和目标题目类型,上述目标关键字为汉字或词汇,上述目标题目类型为字义辨析、同音字辨析、同声旁字辨析、同形旁字辨析、近义词辨析、反义词辨析或词性辨析中的任意一种;An acquisition module, used for acquiring a target keyword and a target topic type, wherein the target keyword is a Chinese character or a word, and the target topic type is any one of word meaning analysis, homophone analysis, homophonic character analysis, homographic character analysis, synonym analysis, antonym analysis or part of speech analysis;
数据库字段确定模块,用于根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段;A database field determination module, used to determine the search database and search fields in the preset Chinese character database, the preset vocabulary database and the preset sentence database according to the above target topic type;
查询条件确定模块,用于根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件;A query condition determination module, used to determine the query condition according to the target topic type, the target keyword, the search database and the search field;
查询模块,用于在上述检索数据库中,检索上述检索字段的取值符合上述查询条件的数据,作为查询结果;A query module, used to retrieve data whose values of the search fields meet the query conditions in the search database as query results;
题目生成模块,用于根据上述查询结果,生成汉语语素题目。The topic generation module is used to generate Chinese morpheme topics according to the above query results.
第三方面,本公开的实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面描述的方法。In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect.
第四方面,本公开的实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被一个或多个处理器执行时实现如第一方面描述的方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method described in the first aspect when executed by one or more processors.
为了提升语素题目的编制效率,本公开的实施例提供的汉语语素题目生成方法、装置、电子设备和存储介质,包括:获取目标关键字和目标题目类型,上述目标关键字为汉字或词汇,上述目标题目类型为字义辨析、同音字辨析、同声旁字辨析、同形旁字辨析、近义词辨析、反义词辨析或词性辨析中的任意一种;根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段;根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件;在上述检索数据库中,检索上述检索字段的取值符合上述查询条件的数据,作为查询结果;根据上述查询结果,生成汉语语素题目。即,通过根据关键字和题目类型自动获取组题相关数据,并自动生成汉语语素题目,不需要人工参与,进而可降低人工成本。另外,由于组提数据来自于相应数据库,可减少人工组题可能出现的错误率,以及可提升组题效率。综上,可快速得到全面、准确、个性化的汉语语素题目,组题效率和准确性都有较大提升。In order to improve the efficiency of compiling morpheme titles, the embodiment of the present disclosure provides a Chinese morpheme title generation method, device, electronic device and storage medium, including: obtaining a target keyword and a target title type, the target keyword is a Chinese character or a vocabulary, and the target title type is any one of a character meaning analysis, a homophone analysis, a homophone analysis, a homograph analysis, a synonym analysis, an antonym analysis or a part of speech analysis; according to the target title type, determining a search database and a search field in a preset Chinese character database, a preset vocabulary database and a preset sentence database; determining a query condition according to the target title type, the target keyword, the search database and the search field; in the search database, searching for data whose values of the search field meet the query condition as a query result; generating a Chinese morpheme title according to the query result. That is, by automatically obtaining the data related to the composition of the title according to the keyword and the title type, and automatically generating the Chinese morpheme title, no manual participation is required, thereby reducing the labor cost. In addition, since the composition data comes from the corresponding database, the error rate that may occur in the manual composition of the title can be reduced, and the efficiency of the composition of the title can be improved. In summary, comprehensive, accurate and personalized Chinese morpheme questions can be obtained quickly, and the efficiency and accuracy of question setting are greatly improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显。附图仅用于示出具体实施方式的目的,而并不认为是对本公开的限制。在附图中:Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present disclosure. In the drawings:
图1是本公开的一个实施例可以应用于其中的示例性系统架构图;FIG1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
图2A是根据本公开的汉语语素题目生成方法的一个实施例的流程图;FIG2A is a flow chart of an embodiment of a method for generating Chinese morpheme titles according to the present disclosure;
图2B是根据本公开的汉语语素题目生成方法的一个实施例的分解流程图;FIG2B is a decomposed flow chart of an embodiment of a method for generating Chinese morpheme titles according to the present disclosure;
图2C是根据本公开的汉语语素题目生成方法的另一个实施例的分解流程图;FIG2C is a decomposed flow chart of another embodiment of the method for generating Chinese morpheme titles according to the present disclosure;
图3是根据本公开的汉语语素题目生成方法的检索数据库示意图;FIG3 is a schematic diagram of a search database according to the method for generating Chinese morpheme titles disclosed herein;
图4是根据本公开的汉语语素题目生成方法的另一个实施例的流程图;FIG4 is a flow chart of another embodiment of a method for generating Chinese morpheme titles according to the present disclosure;
图5是根据本公开的汉语语素题目生成方法的一个界面示意图;FIG5 is a schematic diagram of an interface of a method for generating Chinese morpheme titles according to the present disclosure;
图6是根据本公开的汉语语素题目生成装置的一个实施例的结构示意图;FIG6 is a schematic structural diagram of an embodiment of a Chinese morpheme title generating device according to the present disclosure;
图7是适于用来实现本公开的实施例的电子设备的计算机系统的结构示意图。FIG. 7 is a schematic diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
图1示出了可以应用本公开的汉语语素题目生成方法、装置、电子设备和存储介质的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which the embodiments of the Chinese morpheme topic generation method, apparatus, electronic device, and storage medium of the present disclosure can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Fig. 1, system architecture 100 may include terminal devices 101, 102, 103, network 104 and server 105. Network 104 is used to provide a medium for communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如学习类应用、语音识别类应用、短视频社交类应用、音视频会议类应用、视频直播类应用、文档编辑类应用、输入法类应用、网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as learning applications, voice recognition applications, short video social applications, audio and video conferencing applications, video live broadcast applications, document editing applications, input method applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的终端设备中。其可以实现成多个软件或软件模块(例如用来提供 服务),也可以实现成单个软件或软件模块。在此不作具体限定。Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the terminal devices listed above. It can be implemented as multiple software or software modules (for example, to provide services), or it can be implemented as a single software or software module. No specific limitation is made here.
在一些情况下,本公开所提供的汉语语素题目生成方法可以由终端设备101、102、103执行,相应地,汉语语素题目生成装置可以设置于终端设备101、102、103中。这时,系统架构100也可以不包括服务器105。In some cases, the Chinese morpheme title generation method provided by the present disclosure may be executed by the terminal devices 101, 102, 103, and accordingly, the Chinese morpheme title generation apparatus may be disposed in the terminal devices 101, 102, 103. In this case, the system architecture 100 may not include the server 105.
在一些情况下,本公开所提供的汉语语素题目生成方法可以由终端设备101、102、103和服务器105共同执行,例如,“呈现题干及题干刷新操作显示对象、每个干扰项及每个干扰项的干扰项刷新操作显示对象和每个匹配项及每个匹配项的对应的匹配项刷新操作显示对象”的步骤可以由终端设备101、102、103执行,“获取目标关键字和目标题目类型”等步骤可以由服务器105执行。本公开对此不做限定。相应地,汉语语素题目生成装置也可以分别设置于终端设备101、102、103和服务器105中。In some cases, the Chinese morpheme title generation method provided by the present disclosure can be jointly executed by the terminal devices 101, 102, 103 and the server 105. For example, the steps of "presenting the question stem and the question stem refresh operation display object, each distractor and the distractor refresh operation display object of each distractor, and each matching item and the corresponding matching item refresh operation display object of each matching item" can be executed by the terminal devices 101, 102, 103, and the steps of "obtaining the target keyword and the target title type" can be executed by the server 105. The present disclosure does not limit this. Accordingly, the Chinese morpheme title generation device can also be respectively set in the terminal devices 101, 102, 103 and the server 105.
在一些情况下,本公开所提供的汉语语素题目生成方法可以由服务器105执行,相应地,汉语语素题目生成装置也可以设置于服务器105中,这时,系统架构100也可以不包括终端设备101、102、103。In some cases, the Chinese morpheme title generation method provided in the present disclosure may be executed by the server 105 , and accordingly, the Chinese morpheme title generation device may also be set in the server 105 . In this case, the system architecture 100 may not include the terminal devices 101 , 102 , and 103 .
需要说明的是,服务器105可以是硬件,也可以是软件。当服务器105为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器105为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不作具体限定。It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
继续参考图2A,其示出了根据本公开的汉语语素题目生成方法的一个实施例的流程200,该汉语语素题目生成方法包括以下步骤:2A, which shows a process 200 of an embodiment of a method for generating Chinese morpheme titles according to the present disclosure. The method for generating Chinese morpheme titles includes the following steps:
步骤201,获取目标关键字和目标题目类型。Step 201, obtaining target keywords and target topic types.
在本实施例中,目标关键字可以是汉字或词汇,对应将要生成的汉字题目或词汇题目。其中,汉字题目的目标题目类型可以包括字义辨析、同音字辨析、同声旁字辨析和同形旁字辨析;词汇题目的目标题目类型可以包括近义词辨析、反义词辨析和词性辨析。根据目标用户不同的需求,目标关键字可以是目标用户手动输入的,也可以是在预设的文本库中随机抽取的。In this embodiment, the target keyword can be a Chinese character or a vocabulary, corresponding to the Chinese character topic or vocabulary topic to be generated. Among them, the target topic types of the Chinese character topic can include character meaning analysis, homophone analysis, homophone analysis and homographic analysis; the target topic types of the vocabulary topic can include synonym analysis, antonym analysis and part of speech analysis. According to the different needs of the target user, the target keyword can be manually input by the target user or randomly extracted from a preset text library.
具体的,目标用户可以首先通过在显示界面中操作题目生成方式对应的显示对象,选择题目生成方式,即选择手动生成题目,还是批量生成题目。其中,该显示对象可以是文本框的形式,供用户手动输入;也可以是多个下拉选项选择的方式,供用户选择。手动生成题目的方式可以增加题目生成的个性化程度,而批量生成题目更有助于增加题目的生成效率,因此,目标用户可以根据自身需求选择合适的题目生成方式。Specifically, the target user can first select the question generation method by operating the display object corresponding to the question generation method in the display interface, that is, to select manual question generation or batch question generation. The display object can be in the form of a text box for the user to input manually, or it can be in the form of multiple drop-down options for the user to select. The manual question generation method can increase the personalization of question generation, while batch question generation is more conducive to increasing the efficiency of question generation. Therefore, the target user can select the appropriate question generation method according to his or her own needs.
参见图2B,图2B是根据本公开的汉语语素题目生成方法中步骤201的一个实施例的分解流程图,如图2B所示,步骤201可以包括以下子步骤2011和子步骤2012:Referring to FIG. 2B , FIG. 2B is a decomposed flow chart of an embodiment of step 201 in the method for generating Chinese morpheme titles according to the present disclosure. As shown in FIG. 2B , step 201 may include the following sub-steps 2011 and 2012:
子步骤2011:响应于检测到目标用户输入的手动生成题目请求,获取上述目标用户输入的文字作为上述目标关键字,以及获取上述目标用户选择的题目类型作为上述目标题目类型。Sub-step 2011: In response to detecting a manual topic generation request input by a target user, obtaining the text input by the target user as the target keyword, and obtaining the topic type selected by the target user as the target topic type.
在实际应用中,可以在显示界面显示文本框,以便用户输入文字作为目标关键字;并在显示界面显示多个下拉选项,以便用户选择目标题目类型。当用户输入的文字为汉字时,对应的下拉选项为汉字题目的目标题目类型,即字义辨析、同音字辨析、同声旁字辨析和同形旁字辨析,以供用户选择。当用户输入的文字为词汇时,对应的下拉选项为词汇题目的目标题目类型,即近义词辨析、反义词辨析和词性辨析,以供用户选择。In actual application, a text box can be displayed on the display interface so that the user can input text as the target keyword; and multiple drop-down options can be displayed on the display interface so that the user can select the target topic type. When the text input by the user is Chinese characters, the corresponding drop-down options are the target topic types of Chinese character topics, namely, character meaning analysis, homophone analysis, homophonic character analysis, and homographic character analysis, for the user to select. When the text input by the user is vocabulary, the corresponding drop-down options are the target topic types of vocabulary topics, namely, synonym analysis, antonym analysis, and part of speech analysis, for the user to select.
子步骤2012:响应于检测到上述目标用户输入的批量生成题目请求,在预设文本库中抽取任意汉字作为上述目标关键字,以及将字义辨析、同音字辨析、同声旁字辨析或同形旁字辨析中的任意一种题目类型确定为上述目标题目类型,或者在预设文本库中抽取任意词汇作为上述目标关键字,将近义词辨析、反义词辨析或词性辨析中的任意一种题目类型作为上述目标题目类型。Sub-step 2012: In response to detecting a batch generation question request input by the target user, extract any Chinese character from a preset text library as the target keyword, and determine any question type among word meaning analysis, homophone analysis, homophonic character analysis or homographic character analysis as the target question type, or extract any vocabulary from a preset text library as the target keyword, and determine any question type among synonym analysis, antonym analysis or part of speech analysis as the target question type.
在实际应用中,批量生成题目时,预设文本库可以根据不同年级的语文教材构建,目标用户可以对预设文本库进行年级限定,即规定在固定年级对应的文本库中抽取目标关键字。作为另一种可能的实施方式,上述预设文本库也可以是目标用户人为设定的语料库,或者AI生成的语料库。在此,对预设文本库的具体形式和内容不做具体限定。In actual applications, when batch generating questions, the preset text library can be constructed according to Chinese textbooks of different grades, and the target user can set a grade limit for the preset text library, that is, to extract target keywords from the text library corresponding to a fixed grade. As another possible implementation, the preset text library can also be a corpus manually set by the target user, or a corpus generated by AI. Here, the specific form and content of the preset text library are not specifically limited.
步骤202,根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段。Step 202, according to the above target topic type, determine the search database and search field in the preset Chinese character database, the preset vocabulary database and the preset sentence database.
针对不同的目标题目类型,会去不同的检索数据库的检索字段查找符合要求的数据,再以此为据生成题目。因此,需要先根据目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索需要用的数据库,即检索数据库;同时,根据目标题目类型,确定在上述检索数据库中检索的字段,即检索字段。For different target topic types, we will search for data that meets the requirements in the search fields of different search databases, and then generate topics based on this. Therefore, we need to first determine the database to be searched in the preset Chinese character database, preset vocabulary database, and preset sentence database according to the target topic type, i.e., the search database; at the same time, we need to determine the field to be searched in the above search database, i.e., the search field, according to the target topic type.
作为一种可能的实施方式,响应于上述目标题目类型为字义辨析,确定上述检索数据库为上述预设汉字数据库、上述预设词汇数据库和上述预设语句数据库,上述检索字段为字义字段;As a possible implementation, in response to the target topic type being word meaning analysis, the search database is determined to be the preset Chinese character database, the preset vocabulary database and the preset sentence database, and the search field is the word meaning field;
响应于上述目标题目类型为同音字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为字音字段;In response to the target topic type being homophone analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is a pronunciation field;
响应于上述目标题目类型为同声旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为声旁字段;In response to the target topic type being homophone analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is the phonetic field;
响应于上述目标题目类型为同形旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为形旁字段;In response to the target topic type being homographic character analysis, determining that the search database is the preset Chinese character database and the preset sentence database, and the search field is the radical field;
响应于上述目标题目类型为近义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为近义词字段;In response to the target topic type being synonym analysis, determining that the search database is the preset vocabulary database and the preset sentence database, and the search field is a synonym field;
响应于上述目标题目类型为反义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为反义词字段;In response to the target topic type being antonym analysis, determining that the search database is the preset vocabulary database and the preset sentence database, and the search field is an antonym field;
响应于上述目标题目类型为词性辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为词性字段。In response to the target topic type being part of speech analysis, the search database is determined to be the preset vocabulary database and the preset sentence database, and the search field is a part of speech field.
以上不同的目标题目类型对应的检索数据库和检索字段,可以由用户预先设定,以上仅为部分参考性示例,不用于限制本公开的保护范围。The search databases and search fields corresponding to the above different target topic types can be preset by the user. The above are only some reference examples and are not intended to limit the protection scope of the present disclosure.
其中,预设汉字数据库、预设词汇数据库和预设语句数据库可以是预先构建的数据库。预设汉字数据库存储有至少两个汉字信息,汉字信息包括以下至少一项:汉字、字义、字音、声旁和形旁;预设词汇数据库存储有至少两个词汇信息,词汇信息包括以下至少一项:词汇、近义词、反义词、词性和上述词汇中汉字的汉字信息;预设语句数据库存储有至少两个语句信息,语句信息包括以下至少一项:语句和上述语句中词汇的词汇信息。The preset Chinese character database, the preset vocabulary database and the preset sentence database may be pre-built databases. The preset Chinese character database stores at least two pieces of Chinese character information, including at least one of the following: Chinese characters, meanings, pronunciations, phonetic radicals and radicals; the preset vocabulary database stores at least two pieces of vocabulary information, including at least one of the following: vocabulary, synonyms, antonyms, parts of speech and Chinese character information in the above vocabulary; the preset sentence database stores at least two pieces of sentence information, including at least one of the following: sentences and vocabulary information in the above sentences.
参见图3,通过上述描述可知,预设汉字数据库、预设词汇数据库和预设语句数据库中都会包括汉字信息中的汉字和字义,即可以通过汉字和相应字义将以上三个数据库联系在一起。Referring to FIG. 3 , it can be seen from the above description that the preset Chinese character database, the preset vocabulary database and the preset sentence database all include Chinese characters and meanings in the Chinese character information, that is, the above three databases can be linked together through Chinese characters and corresponding meanings.
下面以汉字“清”为例,介绍预设汉字数据库、预设词汇数据库和预设语句数据库的形式,包括但不限于以下字段:Taking the Chinese character "清" as an example, the following describes the forms of the preset Chinese character database, preset vocabulary database, and preset sentence database, including but not limited to the following fields:
①预设汉字数据库中关于汉字“清”可存储有以下不同字段对应的数据:① The preset Chinese character database can store data corresponding to the following different fields about the Chinese character "清":
汉字:清;Chinese character: Qing;
字音:qīng;Pronunciation: qīng;
声旁:青;Phonetic component: qing;
形旁:氵;Radical: 氵;
根据小学语文教材需掌握的年级:1年级;Grades to be mastered according to primary school Chinese textbooks: Grade 1;
字义1:洁净;清澄,与“浊”相对;Meaning 1: clean; clear, opposite to "turbid";
字义2:清楚;明白;Meaning 2: clear; understand;
字义3:查点;Meaning 3: check;
字义4:寂静;Meaning 4: Silence;
字义5:尽;完;一点不留;Meaning 5: to finish; to finish; to leave nothing behind;
字义6:不贪污;Meaning 6: Not corrupt;
字义7:朝代名;Meaning 7: Dynasty name;
需要说明的是,由于数据库设定汉字字义有10个字段,所以所有的字都需要设置10个字段来表达字义。当字义不足10个的时候,后续字段填充为空。例如“清”只有7个字义,那么前7个字段可以正常写入,后3个字段为空。It should be noted that since the database sets 10 fields for Chinese character meanings, all characters need to have 10 fields to express their meanings. When there are less than 10 meanings, the subsequent fields are filled with empty. For example, "清" has only 7 meanings, so the first 7 fields can be written normally, and the last 3 fields are empty.
②预设词汇数据库中关于词汇“清澈”可存储有以下不同字段对应的数据:② The preset vocabulary database may store data corresponding to the following different fields for the word “clear”:
词汇:清澈;Vocabulary: clarity;
包含汉字1:清;Contains Chinese characters 1: Qing;
包含汉字2:澈;Contains Chinese characters 2: 澈;
汉字1字义:清字义1;Chinese character 1 meaning: Qing character meaning 1;
汉字2字义:澈字义1;Chinese character 2 meaning: 澈 character meaning 1;
近义词:澄澈、清冽、明澈;Synonyms: clear, lucid, lucid;
反义词:污浊、浑浊、混浊;Antonyms: dirty, turbid, muddy;
词性:形容词;Part of speech: adjective;
根据小学语文教材需掌握的年级:1年级。The grade that needs to be mastered according to the primary school Chinese textbook is: Grade 1.
③预设语句数据库:③Preset statement database:
包含汉字:清;Contains Chinese characters: Qing;
包含词汇:清澈;Contains vocabulary: clear;
包含汉字字义:清字义1;Contains Chinese character meanings: Qing character meaning 1;
语句:小溪的水非常清澈,可以看到里面游动的鱼。Sentence: The water in the creek is so clear that you can see the fish swimming in it.
从上述举例可看出,预设词汇数据库中存储了词汇“清澈”对应“清”这个汉字的字义1。预设词汇数据库中存储了语句“小溪的水非常清澈,可以看到里面游动的鱼”也可对应“清”这个汉字的字义1。换句话说,汉字“清”的字义1像是线索一样把汉字、词汇和语句串联起来,通过汉字的不同字义可以在这三个数据库中找到相应的汉字信息、词汇信息或者语句信息。As can be seen from the above examples, the preset vocabulary database stores the word "clear" corresponding to the meaning 1 of the Chinese character "清". The preset vocabulary database stores the sentence "The water in the stream is very clear, and you can see the fish swimming in it" which can also correspond to the meaning 1 of the Chinese character "清". In other words, the meaning 1 of the Chinese character "清" is like a clue that connects Chinese characters, vocabulary and sentences. Through the different meanings of Chinese characters, the corresponding Chinese character information, vocabulary information or sentence information can be found in these three databases.
需要说明的是,预设语句数据库只有句子没有词汇,语句数据库会关联字的某个字义。例如,“小溪的水非常清澈,可以看到里面游动的鱼”,会关联里面的“清”的字义1:“洁净;清澄”的字义,不会关联别的字义,相当于每一个字的每个字义都会至少一句话关联到它。It should be noted that the preset sentence database only has sentences but no words. The sentence database will associate a certain meaning of a word. For example, "The water in the stream is so clear that you can see the fish swimming in it" will be associated with the meaning of "清" in it: "clean; clear", and will not be associated with other meanings. This means that every meaning of every word will be associated with it in at least one sentence.
再例如有两句话,都关联了汉字“清”的“洁净;清澄”这个字义,那会在预设语句数据库中有两条不同的语句信息的记录。For another example, there are two sentences, both of which are associated with the meaning of the Chinese character "清" (clean and clear), then there will be two different records of sentence information in the preset sentence database.
另外例如“小溪的水非常清澈,可以看到里面游动的鱼”这句话,还可以关联汉字“澈”,则预设语句数据库还会另存一句话,用来关联汉字“澈”的具体某个字义。In addition, for example, the sentence "The water in the stream is very clear, and you can see the fish swimming in it" can also be associated with the Chinese character "澈". In this case, the preset sentence database will also store another sentence to associate with a specific meaning of the Chinese character "澈".
步骤203,根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件。Step 203, determining the query conditions according to the target title type, the target keyword, the search database and the search field.
针对不同的目标题目类型,需要去检索数据库的检索字段中,获取与目标关键字关联的不同的内容。其中,获取的内容可以由目标用户依据想要生成的题目内容预先设定,在此不做限定。For different target topic types, it is necessary to search the search field of the database to obtain different content associated with the target keyword. The obtained content can be pre-set by the target user according to the topic content to be generated, which is not limited here.
作为一种可能的实施方式,针对几种常见的目标题目类型,对其确定的查询条件进行示例:As a possible implementation method, the query conditions determined for several common target topic types are exemplified:
响应于上述目标题目类型为字义辨析,确定上述查询条件为在上述预设汉字数据库中获取上述目标关键字的任一字义,作为考察字义;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字义为上述考察字义的语句,作为上述题干数据。In response to the target question type being word meaning analysis, the query condition is determined as obtaining any word meaning of the target keyword in the preset Chinese character database as the test word meaning; obtaining words including the target keyword and whose meaning is the same as the test word meaning in the preset vocabulary database as the matching item data; obtaining words including the target keyword and whose meaning is different from the test word meaning in the preset vocabulary database as the interference item data; obtaining sentences including the target keyword and whose meaning is the test word meaning in the preset sentence database as the question stem data.
例如,字义辨析题目的目标关键字为“清”,则先获取“清”的任一字义或是用户自行选择字义,作为考察字义,例如字义1“洁净;清澄”;再获取包括“清”字,且“清”的字义为字义1的词汇,作为匹配项数据,例如“清冽”、“清爽”;然后获取包括“清”字,且“清”的字义不是字义1的词汇,作为干扰项数据,例如“清朝”、“清仓”、“清廉”;最后,获取包括“清”字,且句子中“清”的字义是字义1的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of a word meaning analysis question is "qing", then first obtain any meaning of "qing" or a meaning selected by the user as the test meaning, such as meaning 1 "clean; clear"; then obtain words that include the word "qing" and whose meaning is meaning 1 as matching item data, such as "clear and crisp" and "refreshing"; then obtain words that include the word "qing" and whose meaning is not meaning 1 as interference item data, such as "Qing Dynasty", "clear warehouses", and "clean and honest"; finally, obtain sentences that include the word "qing" and whose meaning is meaning 1 as question stem data, such as "the water in the stream is very clear, and you can see the fish swimming in it."
响应于上述目标题目类型为同音字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的任一字音,作为考察字音;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,与上述考察字音字音相同的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字音为上述考察字音的语句,作为上述题干数据。In response to the target question type being homophone analysis, the query conditions are determined as: obtaining any pronunciation of the target keyword in the preset Chinese character database as the examination pronunciation; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword in the preset Chinese character database that are identical to the examination pronunciation as the interference item data; and obtaining a sentence including the target keyword and having the target keyword whose pronunciation is the examination pronunciation as the question stem data in the preset sentence database.
例如,同音字辨析题目的目标关键字为“当”,则先获取“当”的任一字音,作为考察字音,例如“dāng”;将“当”作为匹配项数据;再获取除“当”以外,字音是“dāng”的汉字,作为干扰项数据,例如“铛”、“珰”、“裆”;最后,获取包括“当”,且句子中“当”的字音为“dāng”的语句,作为题干数据,例如“好雨知时节,当春乃发生”。For example, if the target keyword of the homophone analysis question is "当", then first obtain any pronunciation of "当" as the test pronunciation, such as "dāng"; use "当" as the matching item data; then obtain Chinese characters other than "当" with the pronunciation of "dāng" as interference item data, such as "铛", "珰", and "胯"; finally, obtain the sentence that includes "当" and the pronunciation of "当" in the sentence is "dāng" as the question stem data, such as "好雨知季季,当春乃发生".
响应于上述目标题目类型为同声旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的声旁,作为考察声旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,声旁是上述考察声旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。In response to the target question type being homophone analysis, the query conditions are determined as follows: obtaining the phonetic component of the target keyword in the preset Chinese character database as the examination phonetic component; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword whose phonetic component is the examination phonetic component in the preset Chinese character database as the interference item data; and obtaining a sentence including the target keyword in the preset sentence database as the question stem data.
例如,同声旁字辨析题目的目标关键字为“清”,则先获取“清”的声旁,作为考察声旁,例如“青”;再将“清”作为匹配项数据;然后再获取除“清”以外,声旁是“青”的汉字,作为干扰项数据,例如“请”、“情”、“晴”;最后,获取包括“清”的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of the question on distinguishing homophones is "清", then the phonetic component of "清" is first obtained as the examination phonetic component, such as "青"; then "清" is used as the matching item data; then Chinese characters other than "清" whose phonetic component is "青" are obtained as interference item data, such as "请", "情", and "晴"; finally, the sentence including "清" is obtained as the question stem data, such as "The water in the stream is very clear, and you can see the fish swimming in it."
响应于上述目标题目类型为同形旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的形旁,作为考察形旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,形旁是上述考察形旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。In response to the target question type being analysis of characters with the same radical, the query conditions are determined as: obtaining the radical of the target keyword in the preset Chinese character database as the test radical; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword whose radicals are the test radicals in the preset Chinese character database as the interference item data; and obtaining a sentence including the target keyword in the preset sentence database as the question stem data.
例如,同形旁字辨析题目的目标关键字为“清”,则先获取“清”的形旁,作为考察形旁,例如“氵”;再将“清”作为匹配项数据;然后获取除“清”以外,形旁为“氵”的汉字,作为干扰项数据,例如“洁”、“澈”、“浑”;最后,获取包括“清”的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of the question on distinguishing characters with the same radical is "清", then the radical of "清" is first obtained as the test radical, such as "氵"; then "清" is used as the matching item data; then Chinese characters other than "清" with the radical "氵" are obtained as interference item data, such as "洁", "澈", and "昏"; finally, the sentence including "清" is obtained as the question stem data, such as "The water in the stream is very clear, and you can see the fish swimming in it."
响应于上述目标题目类型为近义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的近义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的近义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;In response to the target question type being synonym analysis, the query condition is determined as: obtaining synonyms of the target keyword in the preset vocabulary database as the matching item data; obtaining any vocabulary other than the synonyms of the target keyword in the preset vocabulary database as the interference item data; obtaining a sentence including the target keyword in the preset sentence database as the question stem data;
例如,近义词辨析题目的目标关键字为“清澈”,则先获取“清澈”的近义词,作为匹配项数据,例如“澄澈”、“、清冽”、“明澈”;然后获取除“清澈”的近义词以外的任意词汇,作为干扰项数据,例如“污浊”、“挺拔”;最后获取包括“清澈”的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of a synonym analysis question is "clear", then first obtain the synonyms of "clear" as matching item data, such as "clear", "clear", and "clear"; then obtain any words except the synonyms of "clear" as interference item data, such as "dirty" and "upright"; finally, obtain the sentence including "clear" as the question stem data, such as "the water in the stream is very clear, and you can see the fish swimming in it."
响应于上述目标题目类型为反义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的反义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的反义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。In response to the target question type being antonym analysis, the query condition is determined as: obtaining the antonym of the target keyword in the preset vocabulary database as the matching item data; obtaining any vocabulary other than the antonym of the target keyword in the preset vocabulary database as the interference item data; and obtaining the sentence including the target keyword in the preset sentence database as the question stem data.
例如,反义词辨析题目的目标关键字为“清澈”,则先获取“清澈”的反义词,作为匹配项数据,例如“污浊”、“浑浊”、“混浊”;再获取除“清澈”的反义词以外的任意词汇,作为干扰项数据,例如“澄澈”、“高大”、“挺拔”;最后,获取包括“清澈”的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of an antonym analysis question is "clear", then first obtain the antonyms of "clear" as matching item data, such as "dirty", "muddy", and "turbid"; then obtain any words other than the antonyms of "clear" as interference item data, such as "clear", "tall", and "upright"; finally, obtain the sentence including "clear" as the question stem data, such as "the water in the stream is very clear, and you can see the fish swimming in it."
响应于上述目标题目类型为词性辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的词性,作为考察词性;在上述预设词汇数据库中,获取除上述目标关键字以外,与上述考察词性词性相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取与上述考察词性词性不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。In response to the target question type being part-of-speech analysis, the query condition is determined as follows: obtaining the part-of-speech of the target keyword in the preset vocabulary database as the test part-of-speech; obtaining vocabulary other than the target keyword in the preset vocabulary database that has the same part-of-speech as the test part-of-speech as the matching item data; obtaining vocabulary different from the test part-of-speech as the interference item data in the preset vocabulary database; and obtaining a sentence including the target keyword in the preset sentence database as the question stem data.
例如,词性辨析题目的目标关键字为“清澈”,则先获取“清澈”的词性“形容词”,作为考察词性;再获取除“清澈”以外,词性为“形容词”的词语,作为匹配项数据,例如“高大”、“挺拔”;然后,获取词性不是“形容词”的词汇,作为干扰项数据,例如“爸爸”、“小溪”、“看到”;最后,获取包括“清澈”的语句,作为题干数据,例如“小溪的水非常清澈,可以看到里面游动的鱼”。For example, if the target keyword of a part-of-speech analysis question is "clear", then the part-of-speech "adjective" of "clear" is first obtained as the part-of-speech to be tested; then, words other than "clear" whose part-of-speech is "adjective" are obtained as matching item data, such as "tall" and "upright"; then, words whose part-of-speech is not "adjective" are obtained as interference item data, such as "dad", "creek", and "see"; finally, sentences including "clear" are obtained as question stem data, such as "the water in the creek is very clear, and you can see the fish swimming in it."
步骤204,在上述检索数据库中,检索上述检索字段的取值符合上述查询条件的数据,作为查询结果。Step 204, searching the search database for data whose values of the search fields meet the search conditions as the search results.
由于步骤203已经确定了查询条件的具体内容,可以直接在检索数据库中检索,获取检索字段的取值满足查询条件的数据,作为查询结果。具体的,查询结果可以包括匹配项数据、干扰项数据和题干数据。Since the specific content of the query condition has been determined in step 203, the search database can be directly searched to obtain data whose values of the search fields meet the query condition as the query result. Specifically, the query result may include matching item data, interference item data and question stem data.
其中,匹配项数据中包括可以作为匹配项的全部数据,干扰项数据中包括可以作为干扰项的全部数据,题干数据中包括可以作为题干的全部数据。这也就导致,最后生成的题目中,可能只包括部分匹配项数据、干扰项数据或题干数据。例如,匹配项数据包括词语“澄澈”、“、清冽”、“明澈”,但是题目中只需要设置一个匹配项,则最后的题目中只会包括“澄澈”、“、清冽”、“明澈”中的任一词语。Among them, the matching item data includes all data that can be used as matching items, the interference item data includes all data that can be used as interference items, and the question stem data includes all data that can be used as the question stem. This also leads to the fact that the final generated question may only include part of the matching item data, interference item data or question stem data. For example, the matching item data includes the words "清澈", "、清漓", "明澈", but only one matching item needs to be set in the question, then the final question will only include any one of the words "清澈", "、清漓", "明澈".
作为一种可能的实施方式,上述方法还可以获取限制条件,这样,在上述检索数据库中检索上述检索字段的取值符合上述查询条件的数据时,可以以上述限制条件筛选得到的查询结果,得到同时满足限制条件和查询条件的数据。即在上述检索数据库中检索上述检索字段的取值符合上述查询条件和上述限制条件的数据,作为查询结果。As a possible implementation, the method can also obtain a restriction condition, so that when searching the search database for data whose values of the search field meet the search condition, the search results can be filtered by the restriction condition to obtain data that meets both the restriction condition and the search condition. That is, the search database is searched for data whose values of the search field meet the search condition and the restriction condition as the search result.
其中,限制条件包括题干年级限制条件和干扰项年级限制条件。题干年级限制条件用于限制上述题干数据是否来源于限制的年级的教材。干扰项年级限制条件用于限制上述干扰项数据是否来源于限制的年级的教材。例如,干扰项数据包括词语“澄澈”、“清冽”、“明澈”,限制条件限制干扰项数据来源于一年级到三年级的教材,而“澄澈”来源于四年级的教材,则查询结果只包括词语“清冽”和“明澈”。Among them, the restriction conditions include the question stem grade restriction condition and the interference item grade restriction condition. The question stem grade restriction condition is used to restrict whether the above question stem data comes from the textbooks of the restricted grade. The interference item grade restriction condition is used to restrict whether the above interference item data comes from the textbooks of the restricted grade. For example, the interference item data includes the words "清澈", "清漓", and "明澈". The restriction condition restricts the interference item data to come from the textbooks of grades one to three, and "清澈" comes from the textbooks of grade four. Then the query results only include the words "清漓" and "明澈".
步骤205,根据上述查询结果,生成汉语语素题目。Step 205, generating Chinese morpheme titles based on the above query results.
由于查询结果中的数据包括可以生成汉语语素题目的全部数据,因此,需要对查询结果进行筛选和整理,得到最后应用于汉语语素题目的数据。在对查询结果进行筛选和整理后,可以按照目标用户预设的题目模板,将整理后的数据填入对应的模板中,生成汉语语素题目。Since the data in the query results include all data that can generate Chinese morpheme titles, it is necessary to filter and sort the query results to obtain the data that is finally applied to the Chinese morpheme titles. After filtering and sorting the query results, the sorted data can be filled into the corresponding template according to the title template preset by the target user to generate the Chinese morpheme title.
例如,整理后的题干数据为“小溪的水非常清澈,可以看到里面游动的鱼”,字义辨析的题目模板由目标用户预设为:“题干数据”,在本句话中与“目标关键字”表达的意思相同的选项是?;则生成题干为:“小溪的水非常清澈,可以看到里面游动的鱼”,在本句话中与“清”表达的意思相同的选项是?For example, if the sorted question stem data is "The water in the creek is so clear that you can see the fish swimming in it", the question template for word meaning analysis is preset by the target user as: "Question stem data", which option has the same meaning as "target keyword" in this sentence? ; then the generated question stem is: "The water in the creek is so clear that you can see the fish swimming in it", which option has the same meaning as "clear" in this sentence?
作为一种可能的实施方式,可以预设题目生成模板,预设题目生成模板包括题干格式、干扰项数量和匹配项数量。参见图2C,图2C是根据本公开的汉语语素题目生成方法的另一个实施例的分解流程图,以上步骤205,可以包括以下子步骤2051到子步骤2054:As a possible implementation, a question generation template may be preset, and the preset question generation template includes the question stem format, the number of distractors, and the number of matching items. Referring to FIG. 2C , FIG. 2C is a decomposed flow chart of another embodiment of the Chinese morpheme question generation method according to the present disclosure. The above step 205 may include the following sub-steps 2051 to 2054:
子步骤2051:从上述题干数据中选取任一语句,按照上述目标题目类型对应的题干格式,生成上述题干。Sub-step 2051: Select any sentence from the above-mentioned question stem data, and generate the above-mentioned question stem according to the question stem format corresponding to the above-mentioned target question type.
具体的题干格式可以由用户自主设定,在此不做限定。The specific question format can be set by the user and is not limited here.
子步骤2052:从上述干扰项数据中选取上述干扰项数量个汉字或词汇,分别对应生成一个干扰项。Sub-step 2052: Select the above-mentioned number of Chinese characters or words from the above-mentioned interference item data, and generate a corresponding interference item respectively.
干扰项即为错误答案,其数量一般为3个,也可以根据目标用户的需求设定为其他数量,在此不做限制。例如,干扰项数据为“清朝”、“清仓”、“清廉”,干扰项数量为“2个”,则生成干扰项“清朝”、“清仓”。例如,干扰项数据为“青”、“轻”、“倾”,干扰项数量为“2个”,则生成干扰项“青”、“轻”。Interference items are wrong answers, and the number is generally 3. It can also be set to other numbers according to the needs of the target users, and there is no limit here. For example, if the interference item data is "Qing Dynasty", "Clearance", "Integrity", and the number of interference items is "2", then the interference items "Qing Dynasty" and "Clearance" are generated. For example, if the interference item data is "Qing", "Light", "Tilting", and the number of interference items is "2", then the interference items "Qing" and "Light" are generated.
子步骤2053:从上述匹配项数据中选取上述匹配项数量个汉字或词汇,分别对应生成一个匹配项。Sub-step 2053: Select the above-mentioned number of Chinese characters or words from the above-mentioned matching item data, and generate a matching item for each of them.
匹配项即为正确答案,其数量一般为1个,也可以根据目标用户的需求设定为其他数量,在此不做限制。当匹配项数量为1个的时候,该题目为单选题;当匹配项数量为多个的时候,该题目为多选题。例如,匹配项数据为“清朝”、“清仓”、“清廉”,干扰项数量为“1个”,则生成干扰项“清朝”。例如,匹配项数据为“青”、“轻”、“倾”,匹配项数量为“2个”,则生成匹配项“青”、“轻”。The matching item is the correct answer, and its number is generally 1. It can also be set to other numbers according to the needs of the target users, and there is no limit here. When the number of matching items is 1, the question is a single-choice question; when the number of matching items is multiple, the question is a multiple-choice question. For example, if the matching item data is "Qing Dynasty", "clear warehouse", "clean and honest", and the number of interference items is "1", then the interference item "Qing Dynasty" is generated. For example, if the matching item data is "qing", "qing", "qing", and the number of matching items is "2", then the matching items "qing" and "qing" are generated.
子步骤2054:将上述干扰项和上述匹配项打乱顺序排列,并与上述题干关联,形成汉语语素题目。Sub-step 2054: Arrange the interference items and the matching items in random order, and associate them with the question stem to form a Chinese morpheme question.
由于题目需要具备考察能力,所以需要将匹配项和干扰项随机排列,这样改变正确答案的位置,可以避免被考察者根据答案的出现规律选择正确答案,提高题目的难度。题干、干扰项、匹配项也是相互关联的,因此需要关联后形成汉语语素题目。Since the questions need to test ability, the matching items and interference items need to be randomly arranged. Changing the position of the correct answer can prevent the examinee from choosing the correct answer based on the pattern of the answer, which increases the difficulty of the question. The question stem, interference items, and matching items are also interrelated, so they need to be related to form a Chinese morpheme question.
作为一个可能的实施方式,响应于无法从上述干扰项数据中选取上述干扰项数量个汉字或词汇或无法从上述匹配项数据中选取上述匹配项数量个汉字或词汇,生成用于指示组题失败的失败提醒信息。As a possible implementation, in response to failure to select the above number of distractor Chinese characters or words from the above distractor data or failure to select the above number of matching Chinese characters or words from the above matching data, failure reminder information is generated to indicate failure of question combination.
在干扰项数据或匹配项数据较少时,可能无法满足目标用户预设的组题需求,因此,可以通过生成指示组题失败的失败提醒信息,以提醒目标用户更改目标关键字或执行其他操作。When there is less interference item data or matching item data, the preset question setting requirements of the target user may not be met. Therefore, a failure reminder message indicating the failure of question setting can be generated to remind the target user to change the target keyword or perform other operations.
在执行完以上步骤201-205之后,上述方法还包括以下步骤206到步骤210,以使方法更加完善:After executing the above steps 201-205, the above method further includes the following steps 206 to 210 to make the method more perfect:
步骤206:记录上述干扰项和上述匹配项,作为上述汉语语素题目的答案。Step 206: Record the interference items and the matching items as the answer to the Chinese morpheme question.
为了便于目标用户对于题目的作答结果进行评估,可以通过记录的干扰项和匹配项,来得到作答结果的评估依据。In order to facilitate the target user to evaluate the answer results of the question, the evaluation basis of the answer results can be obtained through the recorded interference items and matching items.
步骤207:呈现题干及题干刷新操作显示对象、每个干扰项及每个干扰项的干扰项刷新操作显示对象和每个匹配项及每个匹配项的对应的匹配项刷新操作显示对象。Step 207: presenting the question stem and the question stem refresh operation display object, each distractor and the distractor item refresh operation display object of each distractor item, and each matching item and the corresponding matching item refresh operation display object of each matching item.
为了满足目标用户对于生成汉语语素题目的个性化需求,可以先展示出生成的题干、干扰项和匹配项,再针对每个题干、干扰项和匹配项对应展示一个刷新操作显示对象。当刷新操作显示对象被操作时,重新生成一个题干、干扰项或匹配项替换原本的题干、干扰项或匹配项,直到所有的题干、干扰项和匹配项满足目标用户的需求。这样生成的题目,既可以提高题目生成的效率,又可以提高题目生成的自由度。In order to meet the personalized needs of target users for generating Chinese morpheme questions, the generated question stem, interference items and matching items can be displayed first, and then a refresh operation display object can be displayed for each question stem, interference item and matching item. When the refresh operation display object is operated, a new question stem, interference item or matching item is generated to replace the original question stem, interference item or matching item until all question stems, interference items and matching items meet the needs of target users. The questions generated in this way can improve the efficiency of question generation and the degree of freedom of question generation.
步骤208:响应于检测到上述题干刷新操作显示对象的选中操作,从上述题干数据中选取除呈现的题干以外的任一语句,按照上述目标题目类型对应的题干格式,生成更新题干;用上述更新题干替换上述题干。Step 208: In response to detecting the selection operation of the above-mentioned question stem refresh operation display object, select any sentence other than the presented question stem from the above-mentioned question stem data, generate an updated question stem according to the question stem format corresponding to the above-mentioned target question type; and replace the above-mentioned question stem with the above-mentioned updated question stem.
步骤209:响应于检测到任一干扰项的干扰项刷新操作显示对象的选中操作,从上述干扰项数据中选取除呈现的干扰项以外的任一汉字或词汇,生成更新干扰项;用上述更新干扰项替换上述选中的干扰项刷新操作显示对象对应的干扰项。Step 209: In response to detecting a selection operation of an interference item refresh operation display object of any interference item, select any Chinese character or word other than the presented interference item from the above interference item data to generate an updated interference item; and replace the interference item corresponding to the above selected interference item refresh operation display object with the above updated interference item.
步骤210:响应于检测到任一匹配项的匹配项刷新操作显示对象的选中操作,从上述匹配项数据中选取除呈现的匹配项以外的任一汉字或词汇,生成更新匹配项;用上述更新匹配项替换选中的匹配项刷新操作显示对象对应的匹配项。Step 210: In response to detecting a selection operation of a matching item refresh operation display object of any matching item, select any Chinese character or word other than the presented matching item from the matching item data to generate an updated matching item; and replace the matching item corresponding to the selected matching item refresh operation display object with the updated matching item.
作为一种可能的实施方式,可以预设一个题目保存数据库,当每次执行完以上步骤后,可以将本次生成的汉语语素题目保存为一个字段。然后,定期输出汉语语素题目,这样输出的结果可以包括多个汉语语素题目,进而形成一整套试卷。此外,也可以将生成的汉语语素题目保存至指定的位置,在此不做限定。用户还可以对以上题目内容的部分或全部进行下载操作。As a possible implementation method, a topic storage database can be preset. After executing the above steps each time, the Chinese morpheme topic generated this time can be saved as a field. Then, the Chinese morpheme topic is output regularly, and the output result can include multiple Chinese morpheme topics, thereby forming a complete set of test papers. In addition, the generated Chinese morpheme topic can also be saved to a specified location, which is not limited here. The user can also download part or all of the above topic content.
本公开的上述实施例提供的汉语语素题目生成方法,根据关键字和题目类型自动获取组题相关数据,并自动生成汉语语素题目,不需要人工参与,即可快速得到全面、准确、个性化的汉语语素题目,组题效率和准确性都有较大提升。The Chinese morpheme topic generation method provided by the above-mentioned embodiment of the present disclosure automatically obtains question-setting-related data according to keywords and topic types, and automatically generates Chinese morpheme topics. Without the need for human intervention, comprehensive, accurate, and personalized Chinese morpheme topics can be quickly obtained, and the question-setting efficiency and accuracy are greatly improved.
在本公开实施例中,上述图2A上述的步骤存在多种可能的实现方式,下面以手动输入汉字考察字义辨析为例,介绍其中一种实现方式。需要说明的是,下文介绍中给出的实现方式仅作为示例性的说明,并不代表本公开实施例的全部实现方式。In the embodiment of the present disclosure, there are multiple possible implementations of the steps in FIG. 2A. The following takes manually inputting Chinese characters to examine the meaning of the characters as an example to introduce one of the implementations. It should be noted that the implementations given in the following introduction are only exemplary and do not represent all implementations of the embodiment of the present disclosure.
步骤401:响应于检测到目标用户输入的手动生成题目请求,获取上述目标用户输入的文字作为上述目标关键字,以及获取上述目标用户选择的题目类型作为上述目标题目类型。Step 401: In response to detecting a manual topic generation request input by a target user, obtaining the text input by the target user as the target keyword, and obtaining the topic type selected by the target user as the target topic type.
参见图5,图5是根据本公开的显示界面的一个实施例的示意图,如图5所示,目标用户可以通过显示界面显示的多个下拉选项选择“手动输入关键字”或“批量生成关键字”。See FIG. 5 , which is a schematic diagram of an embodiment of a display interface according to the present disclosure. As shown in FIG. 5 , the target user can select “manually input keywords” or “batch generate keywords” through multiple drop-down options displayed on the display interface.
步骤402:获取限制条件。Step 402: Obtain restriction conditions.
参见图5,目标用户可以通过点击不同的限制条件操作按钮来确定限制条件,具体包括题干来源是否为小学教材、干扰项是否限制所学年级。Referring to FIG5 , the target user can determine the restriction conditions by clicking on different restriction operation buttons, including whether the source of the question stem is a primary school textbook and whether the interference items are limited to the grade studied.
步骤403:根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段。Step 403: According to the above target topic type, determine the search database and search field in the preset Chinese character database, the preset vocabulary database and the preset sentence database.
步骤404:响应于上述目标题目类型为字义辨析,确定上述查询条件为在上述预设汉字数据库中获取上述目标关键字的任一字义,作为考察字义;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字义为上述考察字义的语句,作为上述题干数据。Step 404: In response to the target question type being word meaning analysis, the query condition is determined to be obtaining any word meaning of the target keyword in the preset Chinese character database as the test word meaning; obtaining words including the target keyword and whose meaning is the same as the test word meaning in the preset vocabulary database as the matching item data; obtaining words including the target keyword and whose meaning is different from the test word meaning in the preset vocabulary database as the interference item data; obtaining sentences including the target keyword and whose meaning is the test word meaning in the preset sentence database as the question stem data.
需要说明的是,可以先呈现目标关键字的全部字义,再针对每个字义呈现一个操作显示对象,当检测到某一操作显示对象的选中操作时,确定选中的操作显示对象对应的字义为考察字义。即考察字义也可以是用户设定的任一字义。It should be noted that all the meanings of the target keyword may be presented first, and then an operation display object may be presented for each meaning, and when a selection operation of a certain operation display object is detected, the meaning corresponding to the selected operation display object is determined to be the investigation meaning. That is, the investigation meaning may also be any meaning set by the user.
步骤405:在上述检索数据库中检索上述检索字段的取值符合上述查询条件和上述限制条件的数据,作为查询结果。Step 405: Retrieve data in the search database whose values of the search fields meet the search conditions and the restriction conditions as the search results.
步骤406:根据上述查询结果,生成汉语语素题目。Step 406: Generate Chinese morpheme titles based on the above query results.
步骤407:呈现题干及题干刷新操作显示对象、每个干扰项及每个干扰项的干扰项刷新操作显示对象和每个匹配项及每个匹配项的对应的匹配项刷新操作显示对象。Step 407: presenting the question stem and the question stem refresh operation display object, each distractor and the distractor item refresh operation display object of each distractor item, and each matching item and the corresponding matching item refresh operation display object of each matching item.
参见图5,题干刷新操作显示对象可以是图5中“题干”右侧的“刷新”按钮或其他形式,在此不做限定。Referring to FIG. 5 , the display object for the question stem refresh operation may be a “refresh” button or other forms on the right side of the “question stem” in FIG. 5 , which is not limited here.
步骤408:响应于检测到上述题干刷新操作显示对象的选中操作,从上述题干数据中选取除呈现的题干以外的任一语句,按照上述目标题目类型对应的题干格式,生成更新题干;用上述更新题干替换上述题干。Step 408: In response to detecting the selection operation of the above-mentioned stem refresh operation display object, select any sentence other than the presented stem from the above-mentioned stem data, generate an updated stem according to the stem format corresponding to the above-mentioned target question type; and replace the above-mentioned stem with the above-mentioned updated stem.
步骤409:响应于检测到任一干扰项的干扰项刷新操作显示对象的选中操作,从上述干扰项数据中选取除呈现的干扰项以外的任一汉字或词汇,生成更新干扰项;用上述更新干扰项替换选中的干扰项刷新操作显示对象对应的干扰项。Step 409: In response to detecting a selection operation of an interference item refresh operation display object of any interference item, select any Chinese character or word other than the presented interference item from the above interference item data to generate an updated interference item; and replace the interference item corresponding to the selected interference item refresh operation display object with the above updated interference item.
步骤410:响应于检测到任一匹配项的匹配项刷新操作显示对象的选中操作,从上述匹配项数据中选取除呈现的匹配项以外的任一汉字或词汇,生成更新匹配项;用上述更新匹配项替换选中的匹配项刷新操作显示对象对应的匹配项。Step 410: In response to detecting a selection operation of a matching item refresh operation display object of any matching item, select any Chinese character or word other than the presented matching item from the matching item data to generate an updated matching item; and replace the matching item corresponding to the selected matching item refresh operation display object with the updated matching item.
在执行完以上操作之后,上述方法还包括呈现对每个题干、干扰项和匹配项的选定操作显示对象;在检测到所有的选定操作显示对象的选定操作之后,呈现汉语语素题目以及保存操作显示对象,以便用户操作保存操作显示对象,将本次生成的汉语语素题目保存为一个字段。After performing the above operations, the method also includes presenting a selected operation display object for each question stem, interference item and matching item; after detecting the selection operations of all the selected operation display objects, presenting the Chinese morpheme title and the save operation display object so that the user can operate the save operation display object and save the Chinese morpheme title generated this time as a field.
本公开的上述实施例提供的汉语语素题目生成方法,通过自定义关键词,生成对应的汉语语素题目,若不满意可以通过刷新按钮变更,组题自由度较高,可以输出满足用户需求的题目,一方面提高了组题效率,一方面满足用户需求,快速得到全面、准确、个性化的汉语语素题目,组题效率和准确性都有较大提升。The Chinese morpheme topic generation method provided by the above-mentioned embodiment of the present disclosure generates corresponding Chinese morpheme topics by customizing keywords. If you are not satisfied, you can change it by clicking the refresh button. The freedom of question combination is relatively high, and questions that meet user needs can be output. On the one hand, the question combination efficiency is improved, and on the other hand, user needs are met, and comprehensive, accurate, and personalized Chinese morpheme topics can be quickly obtained, and the question combination efficiency and accuracy are greatly improved.
进一步参考图6,作为对上述各图所示方法的实现,本公开提供了一种汉语语素题目生成装置的一个实施例,该装置实施例与图2A所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 6 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a Chinese morpheme title generation device, which corresponds to the method embodiment shown in FIG. 2A , and can be specifically applied to various electronic devices.
如图6所示,本实施例的汉语语素题目生成装置600包括:As shown in FIG6 , the Chinese morpheme title generating device 600 of this embodiment includes:
获取模块601,用于获取目标关键字和目标题目类型,上述目标关键字为汉字或词汇,上述目标题目类型为字义辨析、同音字辨析、同声旁字辨析、同形旁字辨析、近义词辨析、反义词辨析或词性辨析中的任意一种;The acquisition module 601 is used to acquire a target keyword and a target topic type, wherein the target keyword is a Chinese character or a word, and the target topic type is any one of a word meaning analysis, a homophone analysis, a homophone analysis, a homograph analysis, a synonym analysis, an antonym analysis, or a part of speech analysis;
数据库字段确定模块602,用于根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段;A database field determination module 602 is used to determine a search database and a search field in a preset Chinese character database, a preset vocabulary database and a preset sentence database according to the target topic type;
查询条件确定模块603,用于根据上述目标题目类型、上述目标关键字、上述检索数据库和上述检索字段,确定查询条件;A query condition determination module 603, for determining a query condition according to the target topic type, the target keyword, the search database and the search field;
查询模块604,用于在上述检索数据库中,检索上述检索字段的取值符合上述查询条件的数据,作为查询结果;A query module 604 is used to retrieve data whose values of the search fields meet the query conditions in the search database as query results;
题目生成模块605,用于根据上述查询结果,生成汉语语素题目。The topic generating module 605 is used to generate Chinese morpheme topics according to the above query results.
作为一种可能的实施方式,上述获取模块601,包括:As a possible implementation, the acquisition module 601 includes:
手动获取单元,用于响应于检测到目标用户输入的手动生成题目请求,获取上述目标用户输入的文字作为上述目标关键字,以及获取上述目标用户选择的题目类型作为上述目标题目类型;A manual acquisition unit, configured to, in response to detecting a manual topic generation request input by a target user, acquire the text input by the target user as the target keyword, and acquire the topic type selected by the target user as the target topic type;
批量获取单元,用于响应于检测到上述目标用户输入的批量生成题目请求,在预设文本库中抽取任意汉字作为上述目标关键字,以及将字义辨析、同音字辨析、同声旁字辨析或同形旁字辨析中的任意一种题目类型确定为上述目标题目类型,或者在预设文本库中抽取任意词汇作为上述目标关键字,将近义词辨析、反义词辨析或词性辨析中的任意一种题目类型作为上述目标题目类型。A batch acquisition unit is used to extract any Chinese character from a preset text library as the target keyword in response to detecting a batch generation request input by the target user, and determine any one of the topic types of word meaning analysis, homophone analysis, homophonic character analysis or homographic character analysis as the target topic type, or extract any vocabulary from the preset text library as the target keyword, and determine any one of the topic types of synonym analysis, antonym analysis or part of speech analysis as the target topic type.
作为一种可能的实施方式,上述预设汉字数据库存储有至少两个汉字信息,汉字信息包括以下至少一项:汉字、字义、字音、声旁和形旁;As a possible implementation, the preset Chinese character database stores at least two pieces of Chinese character information, and the Chinese character information includes at least one of the following: Chinese character, character meaning, character pronunciation, phonetic radical and radical;
上述预设词汇数据库存储有至少两个词汇信息,词汇信息包括以下至少一项:词汇、近义词、反义词、词性和上述词汇中汉字的汉字信息;The preset vocabulary database stores at least two vocabulary information, the vocabulary information including at least one of the following: vocabulary, synonyms, antonyms, parts of speech and Chinese character information of the Chinese characters in the vocabulary;
上述预设语句数据库存储有至少两个语句信息,语句信息包括以下至少一项:语句和上述语句中词汇的词汇信息。The preset sentence database stores at least two sentence information, and the sentence information includes at least one of the following items: a sentence and vocabulary information of the vocabulary in the sentence.
作为一种可能的实施方式,上述数据库字段确定模块602,包括:As a possible implementation, the database field determination module 602 includes:
第一数据库确定单元,用于响应于上述目标题目类型为字义辨析,确定上述检索数据库为上述预设汉字数据库、上述预设词汇数据库和上述预设语句数据库,上述检索字段为字义字段;A first database determination unit is used for determining, in response to the target topic type being word meaning analysis, that the search database is the preset Chinese character database, the preset vocabulary database and the preset sentence database, and the search field is the word meaning field;
第二数据库确定单元,用于响应于上述目标题目类型为同音字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为字音字段;A second database determination unit is used for determining, in response to the target topic type being homophone identification, that the search database is the preset Chinese character database and the preset sentence database, and the search field is a pronunciation field;
第三数据库确定单元,用于响应于上述目标题目类型为同声旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为声旁字段;A third database determination unit is used for determining, in response to the target topic type being homophone identification, that the search database is the preset Chinese character database and the preset sentence database, and the search field is the homophone field;
第四数据库确定单元,用于响应于上述目标题目类型为同形旁字辨析,确定上述检索数据库为上述预设汉字数据库和上述预设语句数据库,上述检索字段为形旁字段;A fourth database determination unit is used for determining, in response to the target topic type being homographic character analysis, that the search database is the preset Chinese character database and the preset sentence database, and the search field is the radical field;
第五数据库确定单元,用于响应于上述目标题目类型为近义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为近义词字段;a fifth database determination unit, configured to determine, in response to the target topic type being synonym analysis, that the search database is the preset vocabulary database and the preset sentence database, and the search field is a synonym field;
第六数据库确定单元,用于响应于上述目标题目类型为反义词辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为反义词字段;a sixth database determination unit, configured to determine, in response to the target topic type being antonym analysis, that the search database is the preset vocabulary database and the preset sentence database, and the search field is an antonym field;
第七数据库确定单元,用于响应于上述目标题目类型为词性辨析,确定上述检索数据库为上述预设词汇数据库和上述预设语句数据库,上述检索字段为词性字段。The seventh database determination unit is used to determine that the retrieval database is the preset vocabulary database and the preset sentence database, and the retrieval field is the part of speech field in response to the target title type being part of speech analysis.
作为一种可能的实施方式,上述查询结果包括匹配项数据、干扰项数据和题干数据;以及As a possible implementation, the query result includes matching item data, distractor item data and question stem data; and
上述查询条件确定模块603,包括:The query condition determination module 603 includes:
第一条件确定单元,用于响应于上述目标题目类型为字义辨析,确定上述查询条件为在上述预设汉字数据库中获取上述目标关键字的任一字义,作为考察字义;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取包括上述目标关键字且上述目标关键字的字义与上述考察字义不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字义为上述考察字义的语句,作为上述题干数据;The first condition determination unit is used for determining the query condition as obtaining any meaning of the target keyword in the preset Chinese character database as the test meaning in response to the target question type being word meaning analysis; obtaining a word including the target keyword and having the same meaning as the test meaning in the preset vocabulary database as the matching item data; obtaining a word including the target keyword and having a different meaning from the test meaning in the preset vocabulary database as the interference item data; obtaining a sentence including the target keyword and having the same meaning as the test meaning in the preset sentence database as the question stem data;
第二条件确定单元,用于响应于上述目标题目类型为同音字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的任一字音,作为考察字音;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,与上述考察字音字音相同的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字且上述目标关键字的字音为上述考察字音的语句,作为上述题干数据;The second condition determination unit is used for, in response to the target question type being homophone analysis, determining the query condition as obtaining any pronunciation of the target keyword in the preset Chinese character database as the examination pronunciation; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword in the preset Chinese character database that are the same as the examination pronunciation as the interference item data; obtaining a sentence including the target keyword and having the target keyword with the examination pronunciation as the question stem data in the preset sentence database;
第三条件确定单元,用于响应于上述目标题目类型为同声旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的声旁,作为考察声旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,声旁是上述考察声旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;The third condition determination unit is used for, in response to the target question type being homophone analysis, determining the query condition as obtaining the phonetic component of the target keyword from the preset Chinese character database as the examination phonetic component; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword whose phonetic component is the examination phonetic component from the preset Chinese character database as the interference item data; obtaining a sentence including the target keyword from the preset sentence database as the question stem data;
第四条件确定单元,用于响应于上述目标题目类型为同形旁字辨析,确定上述查询条件为在上述预设汉字数据库中,获取上述目标关键字的形旁,作为考察形旁;将上述目标关键字作为上述匹配项数据;在上述预设汉字数据库中,获取除上述目标关键字以外,形旁是上述考察形旁的汉字,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;The fourth condition determination unit is used for, in response to the target question type being the character analysis of homonymous radicals, determining the query condition as obtaining the radical of the target keyword from the preset Chinese character database as the test radical; using the target keyword as the matching item data; obtaining Chinese characters other than the target keyword from the preset Chinese character database whose radicals are the test radicals as the interference item data; and obtaining a sentence including the target keyword from the preset sentence database as the question stem data;
第五条件确定单元,用于响应于上述目标题目类型为近义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的近义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的近义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;a fifth condition determination unit, for determining, in response to the target question type being synonym analysis, that the query condition is to obtain synonyms of the target keyword in the preset vocabulary database as the matching item data; to obtain any vocabulary other than the synonyms of the target keyword in the preset vocabulary database as the interference item data; and to obtain a sentence including the target keyword in the preset sentence database as the question stem data;
第六条件确定单元,用于响应于上述目标题目类型为反义词辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的反义词,作为上述匹配项数据;在上述预设词汇数据库中,获取除上述目标关键字的反义词以外的任意词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据;The sixth condition determination unit is used for, in response to the target question type being antonym analysis, determining the query condition as obtaining antonyms of the target keyword in the preset vocabulary database as the matching item data; obtaining any vocabulary other than the antonyms of the target keyword in the preset vocabulary database as the interference item data; and obtaining a sentence including the target keyword in the preset sentence database as the question stem data;
第七条件确定单元,用于响应于上述目标题目类型为词性辨析,确定上述查询条件为在上述预设词汇数据库中,获取上述目标关键字的词性,作为考察词性;在上述预设词汇数据库中,获取除上述目标关键字以外,与上述考察词性词性相同的词汇,作为上述匹配项数据;在上述预设词汇数据库中,获取与上述考察词性词性不同的词汇,作为上述干扰项数据;在上述预设语句数据库中,获取包括上述目标关键字的语句,作为上述题干数据。The seventh condition determination unit is used to determine the above-mentioned query condition in response to the above-mentioned target question type being part of speech analysis, as follows: obtaining the part of speech of the above-mentioned target keyword in the above-mentioned preset vocabulary database as the test part of speech; obtaining the words with the same part of speech as the above-mentioned test part of speech other than the above-mentioned target keyword in the above-mentioned preset vocabulary database as the above-mentioned matching item data; obtaining the words with different part of speech from the above-mentioned test part of speech in the above-mentioned preset vocabulary database as the above-mentioned interference item data; obtaining the sentence including the above-mentioned target keyword in the above-mentioned preset sentence database as the above-mentioned question stem data.
作为一种可能的实施方式,上述汉语语素题目包括题干、干扰项和匹配项,预设题目生成模板包括题干格式、干扰项数量和匹配项数量;以及As a possible implementation, the Chinese morpheme question includes a stem, interference items, and matching items, and the preset question generation template includes a stem format, the number of interference items, and the number of matching items; and
上述题目生成模块605,包括:The above-mentioned topic generation module 605 includes:
题干生成单元,用于从上述题干数据中选取任一语句,按照上述目标题目类型对应的题干格式,生成上述题干;A question stem generating unit, configured to select any sentence from the question stem data and generate the question stem according to the question stem format corresponding to the target question type;
干扰项生成单元,用于从上述干扰项数据中选取上述干扰项数量个汉字或词汇,分别对应生成一个干扰项;An interference item generating unit, used for selecting the above-mentioned interference item number Chinese characters or words from the above-mentioned interference item data, and generating a corresponding interference item respectively;
匹配项生成单元,用于从上述匹配项数据中选取上述匹配项数量个汉字或词汇,分别对应生成一个匹配项;A matching item generating unit, used for selecting the matching item number Chinese characters or words from the matching item data, and generating a matching item for each of them;
题目生成单元,用于将上述干扰项和上述匹配项打乱顺序排列,并与上述题干关联,形成汉语语素题目。The question generating unit is used to arrange the interference items and the matching items in a random order and associate them with the question stem to form a Chinese morpheme question.
作为一种可能的实施方式,上述装置600还包括:As a possible implementation manner, the above-mentioned device 600 further includes:
记录模块606,用于记录上述干扰项和上述匹配项,作为上述汉语语素题目的答案。The recording module 606 is used to record the interference items and the matching items as the answers to the Chinese morpheme questions.
作为一种可能的实施方式,上述装置600还包括:As a possible implementation manner, the above-mentioned device 600 further includes:
提醒模块607,用于响应于无法从上述干扰项数据中选取上述干扰项数量个汉字或词汇或无法从上述匹配项数据中选取上述匹配项数量个汉字或词汇,生成用于指示组题失败的失败提醒信息。The reminder module 607 is used to generate a failure reminder message indicating a failure in question formation in response to failure to select the above number of Chinese characters or words from the above interference item data or failure to select the above number of Chinese characters or words from the above matching item data.
作为一种可能的实施方式,上述装置600还包括:As a possible implementation manner, the above-mentioned device 600 further includes:
呈现模块608,用于呈现题干及题干刷新操作显示对象、每个干扰项及每个干扰项的干扰项刷新操作显示对象和每个匹配项及每个匹配项的对应的匹配项刷新操作显示对象;A presentation module 608 is used to present the question stem and the question stem refresh operation display object, each distractor and the distractor refresh operation display object of each distractor, and each matching item and the matching item refresh operation display object corresponding to each matching item;
题干刷新模块609,用于响应于检测到上述题干刷新操作显示对象的选中操作,从上述题干数据中选取除呈现的题干以外的任一语句,按照上述目标题目类型对应的题干格式,生成更新题干;用上述更新题干替换上述题干;The question stem refreshing module 609 is used to select any sentence other than the presented question stem from the question stem data in response to detecting the selection operation of the question stem refreshing operation display object, generate an updated question stem according to the question stem format corresponding to the target question type, and replace the question stem with the updated question stem;
干扰项刷新模块610,用于响应于检测到任一干扰项的干扰项刷新操作显示对象的选中操作,从上述干扰项数据中选取除呈现的干扰项以外的任一汉字或词汇,生成更新干扰项;用上述更新干扰项替换选中的干扰项刷新操作显示对象对应的干扰项;The distractor item refreshing module 610 is used to select any Chinese character or word other than the presented distractor item from the distractor item data in response to the selection operation of the distractor item refreshing operation display object detected for any distractor item, generate an updated distractor item; and replace the distractor item corresponding to the selected distractor item refreshing operation display object with the updated distractor item;
匹配项刷新模块611,用于响应于检测到任一匹配项的匹配项刷新操作显示对象的选中操作,从上述匹配项数据中选取除呈现的匹配项以外的任一汉字或词汇,生成更新匹配项;用上述更新匹配项替换选中的匹配项刷新操作显示对象对应的匹配项。The matching item refresh module 611 is used to respond to the selection operation of the matching item refresh operation display object detected for any matching item, select any Chinese character or word other than the presented matching item from the above matching item data, generate an updated matching item; and replace the matching item corresponding to the selected matching item refresh operation display object with the above updated matching item.
作为一种可能的实施方式,上述装置600还包括:As a possible implementation manner, the above-mentioned device 600 further includes:
限制条件获取模块612,用于获取限制条件,上述限制条件包括题干年级限制条件和干扰项年级限制条件,上述题干年级限制条件用于限制上述题干数据是否来源于限制的年级的教材,上述干扰项年级限制条件用于限制上述干扰项数据是否来源于限制的年级的教材;以及A restriction condition acquisition module 612 is used to acquire restriction conditions, wherein the restriction conditions include a stem grade restriction condition and a distractor grade restriction condition, wherein the stem grade restriction condition is used to restrict whether the stem data is derived from a textbook of a restricted grade, and the distractor grade restriction condition is used to restrict whether the distractor data is derived from a textbook of a restricted grade; and
上述查询模块604,包括:The query module 604 includes:
限制查询单元,用于在上述检索数据库中检索上述检索字段的取值符合上述查询条件和上述限制条件的数据,作为查询结果。The restricted query unit is used to retrieve data whose values of the search field meet the search conditions and the restricted conditions in the search database as the query result.
下面参考图7,其示出了适于用来实现本公开的电子设备的计算机系统700的结构示意图。图7示出的计算机系统700仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring to Fig. 7, a schematic diagram of a computer system 700 suitable for implementing the electronic device of the present disclosure is shown. The computer system 700 shown in Fig. 7 is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
如图7所示,计算机系统700可以包括处理装置(例如中央处理器、图形处理器等)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储装置708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有计算机系统700操作所需的各种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG7 , the computer system 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the computer system 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to the bus 704.
通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风等的输入装置706;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置708;以及通信装置709。通信装置709可以允许计算机系统700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有各种装置的电子设备的计算机系统700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the computer system 700 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 7 shows a computer system 700 of an electronic device having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置708被安装,或者从ROM 702被安装。在该计算机程序被处理装置701执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备实现如图2A所示的实施例及其可选实施方式示出的汉语语素题目生成方法。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device implements the Chinese morpheme topic generation method shown in the embodiment shown in FIG. 2A and its optional implementation manner.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取模块还可以被描述为“根据上述目标题目类型,在预设汉字数据库、预设词汇数据库和预设语句数据库中确定检索数据库和检索字段的模块”。The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the unit does not limit the unit itself in some cases. For example, the acquisition module may also be described as "a module for determining a search database and a search field in a preset Chinese character database, a preset vocabulary database, and a preset sentence database according to the above target topic type."
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410251103.9A CN117829137A (en) | 2024-03-06 | 2024-03-06 | Chinese language prime topic generation method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410251103.9A CN117829137A (en) | 2024-03-06 | 2024-03-06 | Chinese language prime topic generation method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117829137A true CN117829137A (en) | 2024-04-05 |
Family
ID=90506125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410251103.9A Pending CN117829137A (en) | 2024-03-06 | 2024-03-06 | Chinese language prime topic generation method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117829137A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118606523A (en) * | 2024-08-07 | 2024-09-06 | 北京智精灵科技有限公司 | Word group training data generating device, word group training device and method, electronic device, storage medium and computer program |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05134598A (en) * | 1991-11-12 | 1993-05-28 | Dainippon Printing Co Ltd | Test question forming device |
CN1632780A (en) * | 2003-12-22 | 2005-06-29 | 英业达股份有限公司 | Chinese electronic test paper generation method and system |
CN101308486A (en) * | 2008-03-21 | 2008-11-19 | 北京印刷学院 | System and method for automatically generating test questions |
CN109523194A (en) * | 2018-12-14 | 2019-03-26 | 深圳市小柠檬教育科技有限公司 | Chinese reading capability comparison method, apparatus and readable storage medium storing program for executing |
CN111400506A (en) * | 2020-03-13 | 2020-07-10 | 苏州思必驰信息科技有限公司 | Ancient poetry proposition method and system |
CN113505195A (en) * | 2021-06-24 | 2021-10-15 | 作业帮教育科技(北京)有限公司 | Knowledge base, construction method and retrieval method thereof, and question setting method and system based on knowledge base |
CN116070599A (en) * | 2022-12-01 | 2023-05-05 | 国家电网有限公司高级培训中心 | Intelligent question bank generation and auxiliary management system |
-
2024
- 2024-03-06 CN CN202410251103.9A patent/CN117829137A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05134598A (en) * | 1991-11-12 | 1993-05-28 | Dainippon Printing Co Ltd | Test question forming device |
CN1632780A (en) * | 2003-12-22 | 2005-06-29 | 英业达股份有限公司 | Chinese electronic test paper generation method and system |
CN101308486A (en) * | 2008-03-21 | 2008-11-19 | 北京印刷学院 | System and method for automatically generating test questions |
CN109523194A (en) * | 2018-12-14 | 2019-03-26 | 深圳市小柠檬教育科技有限公司 | Chinese reading capability comparison method, apparatus and readable storage medium storing program for executing |
CN111400506A (en) * | 2020-03-13 | 2020-07-10 | 苏州思必驰信息科技有限公司 | Ancient poetry proposition method and system |
CN113505195A (en) * | 2021-06-24 | 2021-10-15 | 作业帮教育科技(北京)有限公司 | Knowledge base, construction method and retrieval method thereof, and question setting method and system based on knowledge base |
CN116070599A (en) * | 2022-12-01 | 2023-05-05 | 国家电网有限公司高级培训中心 | Intelligent question bank generation and auxiliary management system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118606523A (en) * | 2024-08-07 | 2024-09-06 | 北京智精灵科技有限公司 | Word group training data generating device, word group training device and method, electronic device, storage medium and computer program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Sanchez et al. | childes-db: A flexible and reproducible interface to the child language data exchange system | |
US20070112554A1 (en) | System of interactive dictionary | |
CN105512349A (en) | Question and answer method and question and answer device for adaptive learning of learners | |
WO2012011092A1 (en) | System, method and device for intelligent textual conversation system | |
Ramdeen et al. | A tale of two interfaces: How facets affect the library catalog search | |
JP2009063819A (en) | English word learning support system, server to be used for the same, portable terminal, and learning support program | |
CN109801527A (en) | Method and apparatus for output information | |
US20160217704A1 (en) | Information processing device, control method therefor, and computer program | |
Borges et al. | Semantic-enhanced recommendation of video lectures | |
CN117829137A (en) | Chinese language prime topic generation method, device, electronic equipment and storage medium | |
Basyuk et al. | Peculiarities of an Information System Development for Studying Ukrainian Language and Carrying out an Emotional and Content Analysis. | |
Ma et al. | The influence of exemplar variability on young children’s construal of verb meaning | |
Beegle | The new national core arts standards and world music | |
Jiang et al. | What Should Go With This Word Here: Connecting Lexical Collocations and Rhetorical Moves in Narrative Stories | |
CN111506739A (en) | Corpus processing method and apparatus, storage medium, and electronic apparatus | |
Borman et al. | PicNet: Augmenting Semantic Resources with Pictorial Representations. | |
CN110060686A (en) | Voice interaction method and device, terminal equipment and computer readable storage medium | |
WO2019087064A1 (en) | Language learning system and methods | |
de Oliveira et al. | Use of Twitter and semantic resource recovery in the educational context | |
JP7420293B2 (en) | Learning support systems, learning support methods and programs | |
König et al. | F-Lingo: Leveraging smart CALL for massive open online courses | |
Erickson | The role of taxonomy and search in content usability | |
Jain et al. | Hindi podcast genre prediction using support vector classifier | |
TWI226990B (en) | Chinese electronic examination paper generation method and system thereof | |
Vidanelage | EO4GEO BoK Annotation of GI Resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20240405 |