Specific embodiment
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the disclosure, and should not be understood as the limitation to the disclosure.On the contrary, this
Disclosed embodiment includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal
Object.
Fig. 1 is the flow diagram for the message treatment method that one embodiment of the disclosure proposes.
The embodiment of the present disclosure is configured as in message processing apparatus illustrating with message treatment method.
Message treatment method can be configured in message processing apparatus in the embodiment of the present disclosure, and message processing apparatus can be with
Setting in the server, or also can be set in the electronic device, the embodiment of the present disclosure to this with no restriction.
The embodiment of the present disclosure is by taking message treatment method is configured in the electronic device as an example.
It should be noted that the executing subject of the embodiment of the present disclosure, can be, for example, server or electronics on hardware
Central processing unit (Central Processing Unit, CPU) in equipment, on software can be, for example, server or
Relevant background service in electronic equipment, with no restriction to this.
The disclosure is applied in instant messaging application, and instant messaging application is the application program of instant messaging class, application
Program can refer to the software program operated on electronic equipment, and electronic equipment is, for example, PC (Personal
Computer, PC), cloud device or mobile device, mobile device such as smart phone or tablet computer etc..
Message in the embodiment of the present disclosure is the message in instant messaging application.
Referring to Fig. 1, this method comprises:
S101: when receiving the first user and handling the instruction of the message, default template is obtained, includes in default template
At least one preset field, and each preset field has the corresponding first kind.
Message therein can be, for example, the message of task class, and specifically for example " A I and B is also for the message of the task class
C registers together, us is helped to register ", wherein need specific user to go to execute registering for task.
Referring to fig. 2, Fig. 2 is an application schematic diagram in the embodiment of the present disclosure, including: session window 21, task class
Message 22 and preset control 23, the preset control 23 convert the message to format message for triggering.
In the embodiment of the present disclosure, the first user can convert the message to format the promoter user of message for triggering,
First user can click preset control 23 in above-mentioned Fig. 2 when having the demand for converting the message to format message, trigger
It converts the message to format message.
In the embodiment of the present disclosure, when receiving the instruction of the first user processing message, default template is obtained, template is preset
In include at least one preset field, and each preset field have the corresponding first kind.
Default template therein can be presented in the form of a label, or, or in electronic equipment running background
Script file, with no restriction to this.
Referring to Fig. 3, Fig. 3 is a default template schematic diagram in the embodiment of the present disclosure, and the example of the default template is with label
Form is presented, comprising: preset field 31, the corresponding input frame 32 of each preset field 31 and control [confirmation] 33 and control [take
Disappear] 34, in default template, the content of outbound message can also be described, so that the first user can be with when using the default template
It can be visually seen message content, preset field 31 is specific such as, and title is assigned people, reminder time etc., with no restriction to this.
The wherein corresponding type of each preset field can be referred to as the first kind, for example, " being assigned in preset field 31
The type of people " is participating user's type.
S102: message and the preset field in default template are matched, target template is obtained.
In the embodiment of the present disclosure, exactly determine that each preset field has the corresponding first kind according to above-mentioned steps, it can
Automatically message and the preset field in default template to match, target template is obtained, it is defeated that part manpower is effectively reduced
Enter cost, ensures treatment effeciency from another angle.
Optionally, message and the preset field in default template are matched, obtain target template, comprising: to message into
Row word segmentation processing, the Second Type for obtaining multiple participles and respectively segmenting;It, will be in multiple participles according to the first kind and Second Type
Part participle map in the preset field of default template corresponding types.
In the embodiment of the present disclosure, above-mentioned participle can be executed using natural language processing method in the related technology
Journey.
For example, if message be "@zhousize I there are also@ame to register together with@Lucy, help us to register.",
Above-mentioned message can then be segmented, obtain I and Lucy of zhousize and the participle such as register together there are also ame, it then, can
With the type (Second Type can be referred to as) of each participle of determination, according to the first kind and Second Type, directly automatically
Part participle in multiple participles is mapped in the preset field of default template corresponding types.
By above-mentioned according to the first kind and Second Type, the part participle in multiple participles is mapped into default template pair
It answers in the preset field of type, can be effectively reduced part manpower and be entered as this, promote user experience degree.
Specifically, the first kind includes: participating user's type, and Second Type includes: the type for carrying preset mark, root
According to the first kind and Second Type, the part participle in multiple participles is mapped to the preset field of default template corresponding types
In, comprising: the participle that will carry the type of preset mark maps to the preset field for formatting participating user's type of template
In.
Participating user's type can be, for example, " being assigned people " in above-mentioned Fig. 2, and preset mark can be, for example, "@" mark
Note, the type for carrying preset mark can be in for example above-mentioned Fig. 3, zhousize, Lucy, the participle such as ame.
It is understood that user is in conversation group when the message of release tasks type, in order to notify specific use in time
Family is gone to execute task of being included to message, generally can go out the specific user in conversation group using "@" label@.
In the embodiment of the present disclosure, the actual use habit is just being allowed for, the type of preset mark will be directly carried
Participle, map to format template participating user's type preset field in, can easily realize that Auto-matching obtains
Target template, the intelligence that support method executes promote user experience degree.
On the other hand, it is additionally contemplates that incompleteness when Auto-matching in the embodiment of the present disclosure, also supports the first user couple
The input of some preset field contents, can also receive the content of the first user input in default template;By content, typing is to pre-
If obtaining target template in the preset field for removing other first kind of participating user's type in template.
Wherein, the type for presetting the preset fields such as title, the reminder time in template, can be referred to as other first kind
Type, the corresponding content of the other first kind, can set according to actual use demand via the first user, be ensured with this
The use of template more agrees with the actual use demand of user, promotes using experience degree.
Referring to fig. 4, Fig. 4 is another default template schematic diagram in the embodiment of the present disclosure, and the example of the default template is with label
Form present, comprising: the preset field 41 of other first kind, the corresponding content 42 of preset field 41 are defeated in the first user
, can be according to using the default template as target template after entering, and triggering following step.
S103: it according to target template, converts the message to format message, it is corresponding for describing message to format message
Task.
In the embodiment of the present disclosure, in order to which the presentation of task relevant information corresponding to the effective guarantee message is more intuitive, also
It can count in target template, the preset field of participating user's type corresponds to participating user's quantity;It determines in target template, it is other
The corresponding content of the preset field of the first kind;It is generated according to participating user's quantity, content and message and formats message.
For example, the preset field of participating user's type is assigned herringbone section for the target template in above-mentioned Fig. 4, unite
Participating user's quantity included in it is counted as participating user's quantity, determines that the preset fields such as title, reminder time are corresponding interior
Hold, then, is generated according to participating user's quantity, content and message and format message.
The corresponding task of message is described in detail in formatting message therein.
Optionally, according to target template, after converting the message to format message, further includes: in the affiliated session of message
In group, display format message.
Optionally, participating user's quantity includes: participating user's total quantity and participating user's quantity in preset state,
In, while display format message, show participating user's total quantity and participating user's quantity in preset state.
Wherein, preset state can be that the state of the task is completed.
By showing participating user's total quantity and the participating user in preset state while display format message
Quantity enables to the first user to know the processing progress of the task in time, to carry out subsequent processing in time.
It is a formatting message schematic diagram in the embodiment of the present disclosure referring to Fig. 5, Fig. 5, including formats message 51, is not only in
Showed source body, also show by the message be converted to format message (generating corresponding task), additionally provide by
Assign the contents such as people and reminder time, participating user's total quantity and participating user's quantity in preset state etc..
S104: based on the object run for formatting message response second user.
In the embodiment of the present disclosure, alsos for that user is facilitated to execute the corresponding task of message, can also disappear in display format
While breath, preset control is shown;Second user is received to the triggering command of preset control, second user is in participating user
Any one;In response to triggering command, and performance objective operates, and object run is used to for second user being labeled as in default shape
State.
It further include preset control 52 in Fig. 5 referring to Fig. 5, second user can click preset control, so that electronics
Equipment is in response to triggering command, and performance objective operates, and object run is used to for second user being labeled as to be in preset state,
That is, object run is used to for second user being labeled as that the state of the task to be completed, so that the execution of task is more direct, it is simpler
Just.
The object run of the embodiment of the present disclosure may include: to participating user's quantity carry out dynamic update, and/or, generate
Prompt information, prompt information is for prompting second user to be in preset state.
Optionally, can also be in the affiliated conversation group of message, display reminding information.
Referring to Fig. 6, Fig. 6 is another formatting message schematic diagram in the embodiment of the present disclosure, including formats message 61, is prompted
Information 62, prompt information therein is used to that second user to be prompted to be in the state that the task is completed, in display reminding information
At the same time it can also show that second user is completed the time of the task, and the simultaneous display time, effect diversification is presented, so that with
Family can be comprehensive know task execution situation.
As an example, the first user can also read at any time in default template after creation finishes and formats message
Content, with the propulsion of task execution, presetting the content in template can also be as progradation dynamic updates.
Referring to Fig. 7, Fig. 7 is another default template schematic diagram in the embodiment of the present disclosure, comprising: the predetermined word of participant's type
Section 71, it is corresponding if specific second user is in the state that the task is completed with the propulsion of task execution, it can be with
Dynamic update is carried out to corresponding content in default template, for example, if second user zhousize is in the shape that the task is completed
State then marks the zhousize displaying target in the preset field 31 of participant's type in default template, which can
To be, for example, to set grey for the background colour of the region zhousize, and show the label " to hooking ", with no restriction to this.
In addition, can also include: [closing task] control 72 in Fig. 7 referring to Fig. 7, support the first user to the task
Shutoff operation closes the task, the default template after closing can if the first user clicks and [close task] control 72
To be another default template schematic diagram in the embodiment of the present disclosure referring to Fig. 8, Fig. 8, after closing, the first user can also click figure
[reopening] control 81 in 8 reopens the task.
Referring to Fig. 9, Fig. 9 is another formatting message schematic diagram in the embodiment of the present disclosure, [closes and appoints if the first user clicks
Business] control 72, after being closed to the task, it can be deleted using wire tag plaid matching formula message is deleted, with timely
Ground notifies each second user task to be closed, and avoids invalid operation.
Referring to Figure 10, Figure 10 is another default template schematic diagram in the embodiment of the present disclosure, is in all second users
It, can be by task status in default template labeled as being completed, referring to task status in Figure 10 when completing the state of the task
101, at the same time it can also which [modification information] control 102 and [thumbing up for everybody] control 103 is arranged, support to task relevant information
Modification, and support that the first user is that each second user thumbs up, provide application function abundant, enhancing user's viscosity mentions
Rise user experience degree.
In the embodiment of the present disclosure, by obtaining default template, presetting when receiving the instruction of the first user processing message
It include at least one preset field in template, and each preset field has the corresponding first kind, it will be in message and default template
Preset field match, obtain target template, and according to target template, convert the message to format message, format
Message can use lattice for describing the corresponding task of message, and based on the object run for formatting message response second user
The corresponding task of formula message semantic definition outbound message, so that the presentation of task relevant information is more intuitive, and based on formatting message
Directly in response to the object run of second user, so that the treatment process of the message of task class is more convenient, treatment effeciency is promoted.
Figure 11 is the structural schematic diagram for the message processing apparatus that one embodiment of the disclosure proposes.
Referring to Figure 11, which includes:
Module 111 is obtained, for default template being obtained, presetting mould when receiving the instruction of the first user processing message
It include at least one preset field in plate, and each preset field has the corresponding first kind;
Matching module 112 obtains target template for message and the preset field in default template to match;
Conversion module 113 formats message for converting the message to according to target template, formats message for retouching
State the corresponding task of message;
Respond module 114, for based on the object run for formatting message response second user.
Optionally, in some embodiments, matching module 112 is specifically used for:
Word segmentation processing is carried out to message, the Second Type for obtaining multiple participles and respectively segmenting;
According to the first kind and Second Type, the part participle in multiple participles is mapped into default template corresponding types
In preset field.
Optionally, in some embodiments, the first kind includes: participating user's type, Second Type include: carry it is default
The type of label maps to the part participle in multiple participles in the preset field of default template corresponding types, comprising:
The participle that the type of preset mark will be carried maps to the preset field for formatting participating user's type of template
In.
Optionally, in some embodiments, matching module 112 is also used to:
Receive the content of the first user input;
In the preset field that content typing is removed to other first kind of participating user's type into default template, mesh is obtained
Mark template.
Optionally, in some embodiments, conversion module 113 is specifically used for:
It counts in target template, the preset field of participating user's type corresponds to participating user's quantity;
It determines in target template, the corresponding content of the preset field of other first kind;
It is generated according to participating user's quantity, content and message and formats message.
Optionally, in some embodiments, referring to Figure 12, further includes:
First display module 115 is used for the display format message in the affiliated conversation group of message.
Optionally, in some embodiments, participating user's quantity includes: participating user's total quantity and the ginseng in preset state
With number of users, wherein the first display module 115 is used for:
While display format message, participating user's total quantity and participating user's number in preset state are shown
Amount.
Optionally, in some embodiments, further includes:
Second display module 116, for showing preset control while display format message;
Receiving module 117, for receiving second user to the triggering command of preset control, second user is in participating user
Either one or two of;
Execution module 118 is used in response to triggering command, and performance objective operates, and object run is used for second user
Labeled as in preset state.
Optionally, in some embodiments, the object run of respond module 114 is specifically used for:
Dynamic update is carried out to participating user's quantity, and/or, prompt information is generated, prompt information is used for prompting second
Family has been in preset state.
Optionally, in some embodiments, further includes:
Third display module 119 is used for the display reminding information in the affiliated conversation group of message.
It should be noted that being also suitable in earlier figures 1- Figure 10 embodiment to the explanation of message treatment method embodiment
In the message processing apparatus 110 of the embodiment, realization principle is similar, and details are not described herein again.
In the embodiment of the present disclosure, when handling the instruction of message by receiving the first user, default template is obtained, mould is preset
It include at least one preset field in plate, and each preset field has the corresponding first kind, it will be in message and default template
Preset field matches, and obtains target template, according to target template, converts the message to format message, formats message and use
It can be using formatting message based on the object run for formatting message response second user in the corresponding task of description message
The corresponding task of outbound message is described so that the presentation of task relevant information is more intuitive, and based on format message directly in response to
The object run of second user promotes treatment effeciency so that the treatment process of the message of task class is more convenient.
It is the structural schematic diagram for the electronic equipment that an embodiment of the present disclosure proposes below with reference to Figure 13, Figure 13.It shows
Suitable for being used to realize the structural schematic diagram of the electronic equipment 130 of the embodiment of the present disclosure.Terminal device in the embodiment of the present disclosure
It can include but is not limited to such as mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD
The mobile terminal of (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc. with
And the fixed terminal of such as number TV, desktop computer etc..
Electronic equipment shown in Figure 13 is only an example, should not function and use scope band to the embodiment of the present disclosure
Carry out any restrictions.
As shown in figure 13, electronic equipment 130 may include processing unit (such as central processing unit, graphics processor etc.)
131, random access can be loaded into according to the program being stored in read-only memory (ROM) 132 or from storage device 138
Program in memory (RAM) 133 and execute various movements appropriate and processing.In RAM 133, it is also stored with electronic equipment
Various programs and data needed for 130 operations.Processing unit 131, ROM 132 and RAM 133 pass through the phase each other of bus 134
Even.Input/output (I/O) interface 135 is also connected to bus 134.
In general, following device can connect to I/O interface 135: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 136 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 137 of dynamic device etc.;Storage device 138 including such as tape, hard disk etc.;And communication device 139.Communication device
139, which can permit electronic equipment 130, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Figure 13 shows tool
There is the electronic equipment 130 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.
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 message treatment method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed from network by communication device 139, or be filled from storage
It sets 138 to be mounted, or is mounted from ROM 132.When the computer program is executed by processing unit 131, the disclosure is executed
The above-mentioned function of being limited in embodiment message treatment method.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (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 the disclosure, computer readable storage medium can be any tangible medium for including or store program, the journey
Sequence can be commanded execution system, device or device use or in connection.And in the disclosure, it is 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.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or on
Any appropriate combination stated.Computer-readable signal media can also be any calculating other than computer readable storage medium
Machine readable medium, the computer-readable signal media can send, propagate or transmit for by instruction execution system, device or
Person's device uses or program in connection.The program code for including on computer-readable medium can be with any appropriate
Medium transmission, 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 multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: when receiving the instruction of the first user processing message, obtaining default template, in advance
If in template including at least one preset field, and each preset field has the corresponding first kind, by message and default template
In preset field match, obtain target template, according to target template, convert the message to format message, formatting disappears
Breath is for describing the corresponding task of message, based on the object run for formatting message response second user.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected 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 module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, the
One display module is also described as " being used for the module of display format message in the affiliated conversation group of message ".
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the disclosure, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the disclosure, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the disclosure includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the disclosure
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium
In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the disclosure
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with
The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one
It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the disclosure.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although embodiment of the disclosure has been shown and described above, it is to be understood that above-described embodiment is example
Property, it should not be understood as the limitation to the disclosure, those skilled in the art within the scope of this disclosure can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.