CN109801527A - Method and apparatus for output information - Google Patents
Method and apparatus for output information Download PDFInfo
- Publication number
- CN109801527A CN109801527A CN201910099326.7A CN201910099326A CN109801527A CN 109801527 A CN109801527 A CN 109801527A CN 201910099326 A CN201910099326 A CN 201910099326A CN 109801527 A CN109801527 A CN 109801527A
- Authority
- CN
- China
- Prior art keywords
- target
- name
- template
- user
- variable
- 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.)
- Granted
Links
Landscapes
- Electrically Operated Instructional Devices (AREA)
Abstract
Embodiment of the disclosure discloses the method and apparatus for output information.One specific embodiment of this method includes: to request in response to receiving the answer of the user information including user, selection and the matched target template of user information from preset topic template set, wherein, topic template includes fixed text, name variable slot position, digital slot position;The range of number to be filled is determined according to user information, and generates the target number in the digital slot position for inserting target template at random according to range;According to user information from preset name variable dictionary selection filling target template name variable slot position in target variable designation;Problem is generated according to fixed text, target number, target variable designation and is exported.The embodiment realizes and quickly automatically generates a large amount of math problems, even customizes personalized application topic.
Description
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus for output information.
Background technique
It is test using network or learns to be known from, and most method is all to be with teaching demonstration
It is main, practice supplemented by website, or single study and self test service system are provided using website.
In existing mathematical studying system, mostly it is typically all oneself to write topic or collect topic, will finally consolidates
Fixed topic is put into a database, need using when carry out picking at random.This method generates the speed of topic very
Slowly, the data that will lead in exam pool are limited always.User often after having done several problems, finds that topic has been opened
Beginning is repeated.Also, because topic be it is fixed, can not accomplish to customize and personalized, the substitution sense of user is not strong, lacks emerging
Interest.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for output information.
In a first aspect, embodiment of the disclosure provides a kind of method for output information, comprising: in response to receiving
The answer of user information including user is requested, selection and the matched target mould of user information from preset topic template set
Plate, wherein topic template includes fixed text, name variable slot position, digital slot position;Number to be filled is determined according to user information
The range of word, and according to range at random generate filling target template digital slot position in target number;According to user information
From the target variable designation in preset name variable dictionary in the name variable slot position of selection filling target template;According to fixation
Text, target number, target variable designation generate problem and export.
In some embodiments, this method further include: the phase is generated according to fixed text, target variable designation and target number
Hope answer;In response to receiving the reply message of user, determine whether reply message matches with desired answer;If matching, defeated
First predetermined information out, and regenerate in target number and target variable designation filling target template to generate new problem simultaneously
Output.
In some embodiments, this method further include: the answer accuracy of counting user;It is higher than in response to answer accuracy
Predetermined threshold reselects and the matched target template of user information from topic template set;According to the target reselected
Template regenerates new problem and exports.
In some embodiments, this method further include: if mismatching, export the second predetermined information and repeat output and ask
Topic.
In some embodiments, name variable dictionary includes name dictionary and classification thesaurus, and user information includes the age
And/or gender;And the name variable slot of filling target template is selected from preset name variable dictionary according to user information
Target variable designation in position, comprising: select from name dictionary and the age of user and/or the matched name word of gender as
Target name in the name variable slot position of target template to be inserted;It is selected from classified lexicon and the age of user and/or property
Not matched classification noun is as the target classification noun in the name variable slot position of target template to be inserted.
In some embodiments, classified lexicon is to be parsed by segmenting from magnanimity examination question with part of speech.
In some embodiments, this method further include: in response to receiving the request of specified name and Item Title, by institute
Specified name and Item Title is separately added into name dictionary and classification thesaurus.
Second aspect, embodiment of the disclosure provide a kind of device for output information, comprising: stencil-chosen list
Member is configured in response to receive the answer request of the user information including user, select from preset topic template set
It selects and the matched target template of user information, wherein topic template includes fixed text, name variable slot position, digital slot position;Number
Word selection unit, is configured to determine the range of number to be filled according to user information, and is generated and filled out at random according to range
Enter the target number in the digital slot position of target template;Title selecting unit is configured to according to user information from preset change
Measure the target variable designation in title dictionary in the name variable slot position of selection filling target template;Output unit is configured to
Problem is generated according to fixed text, target number, target variable designation and is exported.
In some embodiments, which further includes reading and making comments unit, is configured to: according to fixed text, target variable name
Claim and target number generates expectation answer;In response to receiving the reply message of user, determine that reply message is with desired answer
No matching;
If matching, exports the first predetermined information, and regenerates target number and target variable designation filling target
To generate new problem and export in template.
In some embodiments, it reads and makes comments unit to be further configured to: the answer accuracy of counting user;In response to answer
Accuracy is higher than predetermined threshold, reselects from topic template set and the matched target template of user information;According to again
The target template of selection regenerates new problem and exports.
In some embodiments, unit is read and made comments to be further configured to: if mismatch, export the second predetermined information and
Repeat output problem.
In some embodiments, name variable dictionary includes name dictionary and classification thesaurus, and user information includes the age
And/or gender;And title selecting unit is further configured to: being selected from name dictionary and the age of user and/or property
Not matched name word is as the target name in the name variable slot position of target template to be inserted;From classified lexicon selection with
The age of user and/or the matched classification noun of gender are as the target classification in the name variable slot position of target template to be inserted
Noun.
In some embodiments, classified lexicon is to be parsed by segmenting from magnanimity examination question with part of speech.
In some embodiments, which further includes customized unit, is configured to: in response to receive specified name and
Specified name and Item Title are separately added into name dictionary and classification thesaurus by the request of Item Title.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, comprising: one or more processors;Storage
Device is stored thereon with one or more programs, when one or more programs are executed by one or more processors, so that one
Or multiple processors are realized such as method any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program,
Wherein, it realizes when program is executed by processor such as method any in first aspect.
The method and apparatus for output information that embodiment of the disclosure provides add name variable sum number by template
Word is automatically generated using topic.A large amount of mathematical problem can be quickly automatically generated, personalized mathematical problem is even customized.From
And be that fast construction goes out a mathematical problem question and answer technical ability, data basis is provided.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for output information of the disclosure;
Fig. 3 is the schematic diagram according to an application scenarios of the method for output information of the disclosure;
Fig. 4 is the flow chart according to another embodiment of the method for output information of the disclosure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for output information of the disclosure;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase
Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for output information of the disclosure or the implementation of the device for output information
The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications can be installed, such as test class is answered on line on terminal device 101,102,103
With, interactive voice class application, web browser applications, shopping class application, searching class application, instant messaging tools, mailbox client
End, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard
When part, the various electronic equipments of interactive voice, including but not limited to intelligent sound box, intelligence are can be with display screen and supported
Mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc.
Deng.When terminal device 101,102,103 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented
At multiple softwares or software module (such as providing Distributed Services), single software or software module also may be implemented into.
It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103
Mathematical problem provides the backstage examination question server supported.Backstage examination question server can carry out the data such as the answer request received
The processing such as analysis, and processing result (such as mathematical problem) is fed back into terminal device.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented
At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software
It, can also be with to be implemented as multiple softwares or software module (such as providing multiple softwares of Distributed Services or software module)
It is implemented as single software or software module.It is not specifically limited herein.
It should be noted that the method provided by embodiment of the disclosure for output information can be by terminal device
101, it 102,103 executes, can also be executed by server 105.Correspondingly, it can be set for the device of output information in terminal
In equipment 101,102,103, also it can be set in server 105.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for output information according to the disclosure is shown
200.This is used for the method for output information, comprising the following steps:
Step 201, it is requested in response to receiving the answer of the user information including user, from preset topic template set
Middle selection and the matched target template of user information.
In the present embodiment, can lead to for the executing subject of the method for output information (such as server shown in FIG. 1)
It crosses wired connection mode or radio connection and receives answer request using its terminal for carrying out answer from user.If be used for
The executing subject of the method for output information is terminal, then answer request can be received by input equipments such as keyboard, microphones.Its
In, it may include the user information of user in answer request.User information may include the identity of chartered user, i.e.,
ID.User information can also include at least one of the following: the information such as name, age, grade, school, the name of user.These are used
Family information can carry out binding registration with User ID.User after registration only needs that the use can be obtained using User ID login system
The user information at family.Answer request can be obtained by interactive voice, can also be inputted and be obtained by terminal.When interactive voice,
Voice messaging is transmitted by sound, then the body that speech recognition goes out user is carried out by the executing subject of the method for output information
Part.When being inputted by terminal, user can input chartered User ID and then click acknowledgement key, send answer by terminal and ask
It asks.Topic template includes fixed text, name variable slot position, digital slot position.Fixed text can be to be retouched using the text in topic
State part.Name variable slot position may include personage's slot position and/or article slot position.Most of in existing application topic is existing personage
Have article again, but there is also only article (chicken rabbit is with cage problem) or only personage's (queuing problem) the case where.
The present invention needs to excavate the inherent law of some applications topics in advance, it is therefore desirable to a small-sized application exam pool (one
Hundred topic left and right) do dictionary extraction and template extraction use.Method by segmenting and part of speech parses, all nouns are pulled out
To obtain after classifying again.
Common name dictionary, such as " Xiao Ming ", " small red ", " small China " etc..It is very simple, it at will arranges, gathers 100
Left and right.
Classified lexicon is the dictionary of common items in topic, with classification.Such as the dictionary of fruit, " apple ", " banana "
Deng;The dictionary of animal, " monkey ", " giraffe " etc.;Stationery dictionary, " pencil ", " erasing rubber " etc..Classified lexicon can be by from sea
Participle and part of speech parse to obtain in amount examination question.
Such as: { name 1 } has A { noun: stationery 1 }, gives { name 2 } B, gives { name 3 } C, gives away altogether
It is several?
It is exactly a topic template.Wherein { name } could alternatively be any one of name dictionary, naturally it is also possible to
It is the name of user oneself.{ name 1 } { name 2 } { name 3 } needs to insert different names.{ noun: stationery } can choose
Any one.Quantifier in topic template needs adaptively to be adjusted to fit the word of Chinese rule according to types of variables, for example, such as
Fruit calculates the quantity of pencil, then quantifier is branch, calculates the quantity of horse, then quantifier is.
Then, A, B, C are three different numbers, can obtain correct option according to subsequent " answer logic " module.
Alternatively part is not fixed text in the topic template.
Topic template can be a variety of, can be configured for different mathematical problems.For example, profit and loss question template, chicken rabbit
With cage question template, ordered series of numbers question template etc..Template can be set for textbook.User specified when sending answer request can make
Topic template.Server/terminal can also be judged according to the grade of current time and user nearest Learning in School which
The content of unit is set a question for the content just learned.The teaching material oneself used may be selected in registration in user, for example, people's religion version,
Beijing Normal University version, Soviet Union's religion version etc..Or the information such as the user's registration school of oneself, region, sentenced according to school, region by system
The user of breaking uses the teaching material of which version.
In some optional implementations of the present embodiment, in response to receiving asking for specified name and Item Title
It asks, specified name and Item Title is separately added into name dictionary and classification thesaurus.Such as the name of oneself is added
In name library.
In some optional implementations of the present embodiment, user information may include the voiceprint of user.For
The executing subject of the method for output information can identify chartered user by the voiceprint of user, to find registration
When the user information filled in.
Step 202, the range of number to be filled is determined according to user information, and generates filling mesh at random according to range
Mark the target number in the digital slot position of template.
In the present embodiment, the range that number can be determined according to the age of user or grade, for example, the number of a child
The range of word may be configured as natural number within 20.5 grades or more digital scopes may include score, decimal.In user information also
It may include previous answer record, the mathematics standard of user can be analyzed according to answer record, to reasonably limit number
Range.Number is randomly choosed in the range of the mathematics that user learnt as the target in the digital slot position of filling target template
Number.
In some optional implementations of the present embodiment, the model of number can be determined according to the mode that answer is requested
It encloses, for example, the range of number will be set as being suitble to mental arithmetic if user is by voice request answer.If user passes through end
The display screen answer at end, then can be improved mathematical computations difficulty, can choose the number needed with vertical calculating.
Step 203, the name variable of filling target template is selected from preset name variable dictionary according to user information
Target variable designation in slot position.
In the present embodiment, the hobby of user can be judged according to user information, to select the change of filling target template
Measure the target variable designation in title slot position.For example, the name of user is bear XX, then the personage in topic can be " Little Bear ".
User's gender is female and the age was less than 8 years old, then the personage in topic can be fairy tale characters, such as " Snow White " etc..
Optionally, the theme of name variable, theme, piggy pendant fine jade master for example, bear haunts are specified in can requesting with answer
Topic.
In some optional implementations of the present embodiment, selected from preset name variable dictionary according to user information
Select the target variable designation in the name variable slot position of filling target template, comprising: the year with user is selected from name dictionary
Age and/or the matched name word of gender are as the target name in the name variable slot position of target template to be inserted.From classificating word
It is selected in library with the age of user and/or the matched classification noun of gender as in the name variable slot position of target template to be inserted
Target classification noun.Leading role of the personage or article that him can be selected to may like for the feature of user as topic, from
And improve interest.
Step 204, problem is generated according to fixed text, target number, target variable designation and exported.
In the present embodiment, target number, target variable designation and fixed text are combined and generates user and answers
The problem of and export.The way of output can be voice mode, can also show on a display screen.User can with voice answering,
Answer can be inputted with fill out answers on touch screen or by keyboard.Problem can be provided with the mode of gap-filling questions, can also be with
The mode of multiple-choice question provides.The sound of output also can be customized by users setting.For example, the sound of the sound of Logger Vick, ash too wolf
Sound etc..Or the hobby of user is guessed according to user information, the sound for selecting user may like carries out speech synthesis.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for output information of the present embodiment
Figure.In the application scenarios of Fig. 3, user initiates answer request to intelligent sound box first by voice, and intelligent sound box passes through voice
Identification technology identifies the identity of user, to obtain user information " first grade of primary school ".Then from preset topic template set
The template with " first grade of primary school " matched profit and loss problem is selected in conjunction.Further according to first grade of primary school mathematical ability selection 20 with
Interior digital filling template.The article for selecting a common pencil of pupil to be related to as topic." Xiao Ming has generation problem
20 pencils, give red 4 small, give small army 3, give away several altogether ".Intelligent sound box passes through artificial synthesized voice output
The problem.
The method provided by the above embodiment of the disclosure can quickly automatically generate a large amount of number by way of template
Topic, the application topic even customized.To go out a mathematical problem question and answer technical ability for fast construction, data basis is provided.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for output information.The use
In the process 400 of the method for output information, comprising the following steps:
Step 401, it is requested in response to receiving the answer of the user information including user, from preset topic template set
Middle selection and the matched target template of user information.
Step 402, the range of number to be filled is determined according to user information, and generates filling mesh at random according to range
Mark the target number in the digital slot position of template.
Step 403, the name variable of filling target template is selected from preset name variable dictionary according to user information
Target variable designation in slot position.
Step 404, problem is generated according to fixed text, target number, target variable designation and exported.
Step 401-404 and step 201-204 are essentially identical, therefore repeat no more.
Step 405, expectation answer is generated according to fixed text, target variable designation and target number.
In the present embodiment, the logical relation that target number is determined according to fixed text is believed according to number in topic template
ABC etc. is ceased, the formula of a calculating answer is obtained, in order to which code judges the input results correctness of user.Such as it is above-mentioned
In example, the answer logic of the topic template is answer=B+C.The answer may include final numeric results, can also substep
The result of calculating.
Step 406, in response to receiving the reply message of user, determine whether reply message matches with desired answer.
In the present embodiment, it can receive the reply message of user speech input or set by inputs such as keyboard, touch screens
The reply message of standby input.For the reply message of voice input, speech recognition can be carried out, identifies final numeric results.
User can also give an oral account answer step, given and divided by step by system.And it can be according to answer interpretation of result user's answer of each step
The reason of mistake.If reply message and the desired answer matches of user's input, illustrate that user answers questions.
Step 407, if matching, exports the first predetermined information, and regenerate target number and target variable designation
It fills in target template to generate new problem and export.
In the present embodiment, the first predetermined information can be the information that " answering questions " etc. carries out affirmative to user.User answers
New problem can be generated according to step 401-404 again to after.In actual use, into the application topic trip of intelligent sound box
After play, speaker can inquire the name of child first.After child has put off until some time later the name of oneself, intelligent sound box is i.e. with the name
For background, a math problems are gone out.Child starts to answer answer, if answer is correct, praises and enters next topic.
Step 408, it if mismatching, exports the second predetermined information and repeats output problem.
In the present embodiment, the first predetermined information can be the information " unfortunately " etc. comforted user.If answering
Mistake is then encouraged, and then repeats topic again.It circuits sequentially.Optionally, user may be selected to abandon to answer again, and selection, which allows, is
System output answer and item analysis are learnt, and then go out similar problem by system again and user is allowed to answer.
In some optional implementations of the present embodiment, this method further include: the answer accuracy of counting user;It rings
Predetermined threshold should be higher than in answer accuracy, be reselected from topic template set and the matched target template of user information;
New problem is regenerated according to the target template reselected and is exported.For example, each thematic 10 problem of setting, if user is complete
Portion is done pair, then the template generation for changing other special topics is newly inscribed.
Figure 4, it is seen that the method for output information compared with the corresponding embodiment of Fig. 2, in the present embodiment
Process 400 embody the step of handling the answer of user.As a result, the present embodiment description scheme can to user into
Row targetedly test, so that realization more fully learning evaluation and guidance, improve the school grade of user.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for exporting letter
One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer
For in various electronic equipments.
As shown in figure 5, the device 500 for output information of the present embodiment includes: template selection unit 501, number choosing
Select unit 502, title selecting unit 503 and output unit 504.Wherein, template selection unit 501 are configured in response to connect
The answer request for receiving the user information including user, selection and the matched mesh of user information from preset topic template set
Mark template, wherein topic template includes fixed text, name variable slot position, digital slot position;Digital selecting unit 502, is configured
At determining the range of number to be filled according to user information, and generates the digital slot for inserting target template at random according to range
Target number in position;Title selecting unit 503 is configured to be selected from preset name variable dictionary according to user information
Insert the target variable designation in the name variable slot position of target template;Output unit 504, be configured to according to fixed text,
Target number, target variable designation generate problem and export.
In the present embodiment, for the template selection unit 501 of the device of output information 500, digital selecting unit 502,
The specific processing of title selecting unit 503 and output unit 504 can be with reference to step 201, the step in Fig. 2 corresponding embodiment
202, step 203, step 204.
In some optional implementations of the present embodiment, device 500 further includes reading and making comments unit (attached to be not shown in the figure),
It is configured to: expectation answer is generated according to fixed text, target variable designation and target number;In response to receiving answering for user
Complex information, determines whether reply message matches with desired answer;If matching, exports the first predetermined information, and regenerate
To generate new problem and export in target number and target variable designation filling target template.
In some optional implementations of the present embodiment, read and make comments unit and be further configured to: counting user is answered
Inscribe accuracy;It is higher than predetermined threshold in response to answer accuracy, reselects from topic template set and matched with user information
Target template;New problem is regenerated according to the target template reselected and is exported.
It in some optional implementations of the present embodiment, reads and makes comments unit and is further configured to: is defeated if mismatching
Second predetermined information and repetition output problem out.
In some optional implementations of the present embodiment, name variable dictionary includes name dictionary and classification noun
Library, user information include age and/or gender;And title selecting unit 503 is further configured to: being selected from name dictionary
It selects with the age of user and/or the matched name word of gender as the target person in the name variable slot position of target template to be inserted
Name;The change with the age of user and/or gender matched classification noun as target template to be inserted is selected from classified lexicon
Measure the target classification noun in title slot position.
In some optional implementations of the present embodiment, classified lexicon is by participle and part of speech from magnanimity examination question
What parsing obtained.
In some optional implementations of the present embodiment, device 500 further includes that customized unit (does not show in attached drawing
Out), it is configured to: the request in response to receiving specified name and Item Title, by specified name and Item Title point
It Jia Ru not name dictionary and classification thesaurus.
Below with reference to Fig. 6, it illustrates the electronic equipment that is suitable for being used to realize embodiment of the disclosure, (example is as shown in figure 1
Server or terminal device) 600 structural schematic diagram.Terminal device in embodiment of the disclosure can include but is not limited to all
As mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (portable
Formula multimedia player), the mobile terminal and such as number TV, desk-top meter of car-mounted terminal (such as vehicle mounted guidance terminal) etc.
The fixed terminal of calculation machine etc..Terminal device/server shown in Fig. 6 is only an example, should not be to the implementation of the disclosure
The function and use scope of example bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.)
601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608
Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment
Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM603 are connected with each other by bus 604.
Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device
609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool
There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root
According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608
It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed
The above-mentioned function of being limited in the method for example.It should be noted that computer-readable medium described in embodiment of the disclosure can be with
It is computer-readable signal media or computer readable storage medium either the two any combination.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have
The electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer
Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device
Either device use or in connection.And in embodiment of the disclosure, computer-readable signal media may include
In a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer-readable program code.It is this
The data-signal of propagation can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate
Combination.Computer-readable signal media can also be any computer-readable medium other than computer readable storage medium, should
Computer-readable signal media can send, propagate or transmit for by instruction execution system, device or device use or
Person's program in connection.The program code for including on computer-readable medium can transmit with any suitable medium,
Including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more
When a program is executed by the electronic equipment, so that the electronic equipment: the answer in response to receiving the user information including user
Request, selection and the matched target template of user information from preset topic template set, wherein topic template includes fixing
Text, name variable slot position, digital slot position;Determine the range of number to be filled according to user information, and according to range with
Machine generates the target number in the digital slot position of filling target template;It is selected from preset name variable dictionary according to user information
Select the target variable designation in the name variable slot position of filling target template;According to fixed text, target number, target variable name
Claim generation problem and exports.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof
The computer program code of work, described program design language include object oriented program language-such as Java,
Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through
The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor
Including template selection unit, digital selecting unit, title selecting unit and output unit.Wherein, the title of these units is at certain
The restriction to the unit itself is not constituted in the case of kind, for example, template selection unit is also described as " in response to receiving
To the answer request for the user information for including user, selection and the matched target of user information from preset topic template set
The unit of template ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (16)
1. a kind of method for output information, comprising:
In response to receive the user information including user answer request, from preset topic template set selection with it is described
The matched target template of user information, wherein topic template includes fixed text, name variable slot position, digital slot position;
The range of number to be filled is determined according to the user information, and generates the filling mesh at random according to the range
Mark the target number in the digital slot position of template;
Select to insert the name variable slot position of the target template from preset name variable dictionary according to the user information
In target variable designation;
Problem is generated according to the fixed text, the target number, the target variable designation and is exported.
2. according to the method described in claim 1, wherein, the method also includes:
Expectation answer is generated according to the fixed text, the target variable designation and the target number;
In response to receiving the reply message of the user, determine whether the reply message matches with the expectation answer;
If matching, exports the first predetermined information, and regenerates target number and the target variable designation filling target
To generate new problem and export in template.
3. according to the method described in claim 2, wherein, the method also includes:
Count the answer accuracy of the user;
It is higher than predetermined threshold in response to the answer accuracy, reselects from the topic template set and believe with the user
Cease matched target template;
New problem is regenerated according to the target template reselected and is exported.
4. according to the method described in claim 2, wherein, the method also includes:
If mismatching, exports the second predetermined information and repeat output described problem.
5. method described in one of -4 according to claim 1, wherein the name variable dictionary includes name dictionary and systematic name
Dictionary, the user information include age and/or gender;And
The name variable for being selected to insert the target template from preset name variable dictionary according to the user information
Target variable designation in slot position, comprising:
It is selected from the name dictionary with the age of the user and/or the matched name word of gender as wait insert the mesh
Mark the target name in the name variable slot position of template;
It is selected from the classified lexicon with the age of the user and/or the matched classification noun of gender as described wait insert
Target classification noun in the name variable slot position of target template.
6. according to the method described in claim 5, wherein, the classified lexicon is by segmenting and part of speech solution from magnanimity examination question
What analysis obtained.
7. according to the method described in claim 5, wherein, the method also includes:
In response to receiving the request of specified name and Item Title, specified name and Item Title are separately added into described
Name dictionary and the classification thesaurus.
8. a kind of device for output information, comprising:
Template selection unit is configured in response to receive the answer request of the user information including user, from preset topic
Selection and the matched target template of the user information in mesh template set, wherein topic template includes fixed text, variable name
Claim slot position, digital slot position;
Digital selecting unit is configured to determine the range of number to be filled according to the user information, and according to described
Range generates the target number in the digital slot position for inserting the target template at random;
Title selecting unit is configured to select the filling mesh from preset name variable dictionary according to the user information
Mark the target variable designation in the name variable slot position of template;
Output unit is configured to generate problem simultaneously according to the fixed text, the target number, the target variable designation
Output.
9. device according to claim 8, wherein described device further includes reading and making comments unit, is configured to:
Expectation answer is generated according to the fixed text, the target variable designation and the target number;
In response to receiving the reply message of the user, determine whether the reply message matches with the expectation answer;
If matching, exports the first predetermined information, and regenerates target number and the target variable designation filling target
To generate new problem and export in template.
10. device according to claim 9, wherein the unit of reading and making comments is further configured to:
Count the answer accuracy of the user;
It is higher than predetermined threshold in response to the answer accuracy, reselects from the topic template set and believe with the user
Cease matched target template;
New problem is regenerated according to the target template reselected and is exported.
11. device according to claim 9, wherein the unit of reading and making comments is further configured to:
If mismatching, exports the second predetermined information and repeat output described problem.
12. the device according to one of claim 8-11, wherein the name variable dictionary includes name dictionary and classification
Thesaurus, the user information include age and/or gender;And
The title selecting unit is further configured to:
It is selected from the name dictionary with the age of the user and/or the matched name word of gender as wait insert the mesh
Mark the target name in the name variable slot position of template;
It is selected from the classified lexicon with the age of the user and/or the matched classification noun of gender as described wait insert
Target classification noun in the name variable slot position of target template.
13. device according to claim 12, wherein the classified lexicon is by participle and part of speech from magnanimity examination question
What parsing obtained.
14. device according to claim 12, wherein described device further includes customized unit, is configured to:
In response to receiving the request of specified name and Item Title, specified name and Item Title are separately added into described
Name dictionary and the classification thesaurus.
15. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor
The now method as described in any in claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099326.7A CN109801527B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for outputting information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099326.7A CN109801527B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for outputting information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109801527A true CN109801527A (en) | 2019-05-24 |
CN109801527B CN109801527B (en) | 2021-09-28 |
Family
ID=66560718
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910099326.7A Active CN109801527B (en) | 2019-01-31 | 2019-01-31 | Method and apparatus for outputting information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801527B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110600001A (en) * | 2019-09-09 | 2019-12-20 | 大唐网络有限公司 | Voice generation method and device |
CN112307160A (en) * | 2020-02-26 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating information |
CN112309192A (en) * | 2019-08-30 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Information output method, information output device, computer equipment and storage medium |
CN113870635A (en) * | 2019-10-25 | 2021-12-31 | 北京猿力教育科技有限公司 | Voice answering method and device |
CN117575487A (en) * | 2024-01-19 | 2024-02-20 | 天津盛驰精工有限公司 | Bill of materials updating method, apparatus, electronic device and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020010667A1 (en) * | 1997-08-21 | 2002-01-24 | Elaine Kant | System and method for financial instrument modeling and using monte carlo simulation |
CN101470695A (en) * | 2007-12-28 | 2009-07-01 | 英业达股份有限公司 | System and method for dynamically generating examination questions |
CN101950496A (en) * | 2010-01-04 | 2011-01-19 | 代利忠 | Random question setting and answer generating method for calculation type questions |
CN102419918A (en) * | 2010-12-30 | 2012-04-18 | 深圳市高德讯科技有限公司 | Method and system for teachers to assign homework and system for students to do homework |
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
CN103823794A (en) * | 2014-02-25 | 2014-05-28 | 浙江大学 | Automatic question setting method about query type short answer question of English reading comprehension test |
CN107092593A (en) * | 2017-04-12 | 2017-08-25 | 华中师范大学 | The sentence semantics role recognition method and system of elementary mathematics stratified sampling application topic |
CN107221215A (en) * | 2016-03-21 | 2017-09-29 | 上海鸣皋教育科技有限公司 | A kind of method for quickly generating dynamic exercise |
CN107291680A (en) * | 2017-05-09 | 2017-10-24 | 毛姗婷 | A kind of system and implementation method that automatically generate composition based on template |
CN108052492A (en) * | 2017-12-11 | 2018-05-18 | 上海启思教育科技服务有限公司 | A kind of mathematical problem automatic creation system |
CN108509400A (en) * | 2018-02-07 | 2018-09-07 | 平安普惠企业管理有限公司 | Document template generation method, device, computer equipment and storage medium |
-
2019
- 2019-01-31 CN CN201910099326.7A patent/CN109801527B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020010667A1 (en) * | 1997-08-21 | 2002-01-24 | Elaine Kant | System and method for financial instrument modeling and using monte carlo simulation |
CN101470695A (en) * | 2007-12-28 | 2009-07-01 | 英业达股份有限公司 | System and method for dynamically generating examination questions |
CN101950496A (en) * | 2010-01-04 | 2011-01-19 | 代利忠 | Random question setting and answer generating method for calculation type questions |
CN102419918A (en) * | 2010-12-30 | 2012-04-18 | 深圳市高德讯科技有限公司 | Method and system for teachers to assign homework and system for students to do homework |
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
CN103823794A (en) * | 2014-02-25 | 2014-05-28 | 浙江大学 | Automatic question setting method about query type short answer question of English reading comprehension test |
CN107221215A (en) * | 2016-03-21 | 2017-09-29 | 上海鸣皋教育科技有限公司 | A kind of method for quickly generating dynamic exercise |
CN107092593A (en) * | 2017-04-12 | 2017-08-25 | 华中师范大学 | The sentence semantics role recognition method and system of elementary mathematics stratified sampling application topic |
CN107291680A (en) * | 2017-05-09 | 2017-10-24 | 毛姗婷 | A kind of system and implementation method that automatically generate composition based on template |
CN108052492A (en) * | 2017-12-11 | 2018-05-18 | 上海启思教育科技服务有限公司 | A kind of mathematical problem automatic creation system |
CN108509400A (en) * | 2018-02-07 | 2018-09-07 | 平安普惠企业管理有限公司 | Document template generation method, device, computer equipment and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112309192A (en) * | 2019-08-30 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Information output method, information output device, computer equipment and storage medium |
CN110600001A (en) * | 2019-09-09 | 2019-12-20 | 大唐网络有限公司 | Voice generation method and device |
CN113870635A (en) * | 2019-10-25 | 2021-12-31 | 北京猿力教育科技有限公司 | Voice answering method and device |
CN112307160A (en) * | 2020-02-26 | 2021-02-02 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating information |
CN117575487A (en) * | 2024-01-19 | 2024-02-20 | 天津盛驰精工有限公司 | Bill of materials updating method, apparatus, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109801527B (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109801527A (en) | Method and apparatus for output information | |
US10592607B2 (en) | Iterative alternating neural attention for machine reading | |
US11475897B2 (en) | Method and apparatus for response using voice matching user category | |
CN107133303A (en) | Method and apparatus for output information | |
CN110969012B (en) | Text error correction method and device, storage medium and electronic equipment | |
CN108121800A (en) | Information generating method and device based on artificial intelligence | |
CN107707745A (en) | Method and apparatus for extracting information | |
CN111753551B (en) | Information generation method and device based on word vector generation model | |
CN108877782A (en) | Audio recognition method and device | |
CN111009233A (en) | Voice processing method and device, electronic equipment and storage medium | |
CN111930914A (en) | Question generation method and device, electronic equipment and computer-readable storage medium | |
CN110569364A (en) | online teaching method, device, server and storage medium | |
CN109902187A (en) | Method and device for constructing characteristic knowledge graph and terminal equipment | |
CN108900612A (en) | Method and apparatus for pushed information | |
KR20210086577A (en) | Metacognitive based education content curation system | |
CN107705782A (en) | Method and apparatus for determining phoneme pronunciation duration | |
CN110232920A (en) | Method of speech processing and device | |
CN109920431A (en) | Method and apparatus for output information | |
CN112182255A (en) | Method and apparatus for storing media files and for retrieving media files | |
Bhatia | Using transfer learning, spectrogram audio classification, and MIT app inventor to facilitate machine learning understanding | |
US20190088270A1 (en) | Estimating experienced emotions | |
CN118378148A (en) | Training method of multi-label classification model, multi-label classification method and related device | |
CN112383721B (en) | Method, apparatus, device and medium for generating video | |
WO2023125000A1 (en) | Content output method and apparatus, computer readable medium, and electronic device | |
CN109657073A (en) | Method and apparatus for generating information |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210507 Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. Applicant after: Shanghai Xiaodu Technology Co.,Ltd. Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |