CN110347830A - The implementation method and device of public sentiment early warning - Google Patents

The implementation method and device of public sentiment early warning Download PDF

Info

Publication number
CN110347830A
CN110347830A CN201910572418.2A CN201910572418A CN110347830A CN 110347830 A CN110347830 A CN 110347830A CN 201910572418 A CN201910572418 A CN 201910572418A CN 110347830 A CN110347830 A CN 110347830A
Authority
CN
China
Prior art keywords
model
training
public sentiment
task model
task
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
Application number
CN201910572418.2A
Other languages
Chinese (zh)
Other versions
CN110347830B (en
Inventor
蒋亮
温祖杰
梁忠平
张家兴
赵剑波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910572418.2A priority Critical patent/CN110347830B/en
Publication of CN110347830A publication Critical patent/CN110347830A/en
Application granted granted Critical
Publication of CN110347830B publication Critical patent/CN110347830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Machine Translation (AREA)

Abstract

This specification provides a kind of implementation method of public sentiment early warning, comprising: obtains public sentiment data to be determined from public feelings information source;By the task model after public sentiment data to be determined input training, determined whether to issue early warning according to the output of task model after training;The task model is disaggregated model, and input is text, and output includes to whether the prediction of public sentiment occurring;The task model is initialized according to the language model for completing pre-training, is trained using markd sample public sentiment data;The language model and the task model structure having the same in addition to Softmax layers of normalization, output is the prediction hereafter to input text;The language model carries out pre-training using unmarked text data.

Description

The implementation method and device of public sentiment early warning
Technical field
This specification is related to technical field of data processing more particularly to a kind of implementation method and device of public sentiment early warning.
Background technique
With the development of technology, internet is gradually deep into the every aspect of people's life, and more and more people get used to From network acquisition information and release information, this greatly improves the spread speed of information, so that some things for being easy to attract eyeball Part usually to form network public-opinion because explosion spreads through sex intercourse.
Public sentiment early warning can grab the data of enterprise or attention from government on network in a large amount of information, automatically to data It is handled, analyzes negative information therein, carry out early warning in time, helped quickly to cope with negative public sentiment, reduce bad shadow It rings.The omission of public sentiment early warning can make enterprise or government miss the best opportunity coped with various crises, and it will cause the waves of resource for wrong report Take.The accuracy that public sentiment early warning how is improved in the case where limited personnel has a very important significance.
Summary of the invention
In view of this, this specification provides a kind of implementation method of public sentiment early warning, comprising:
Public sentiment data to be determined is obtained from public feelings information source;
By the task model after public sentiment data to be determined input training, determined whether according to the output of task model after training Issue early warning;The task model is disaggregated model, and input is text, and output includes to whether the prediction of public sentiment occurring;Institute It states task model to be initialized according to the language model for completing pre-training, be instructed using markd sample public sentiment data Practice;The language model and the task model structure having the same in addition to Softmax layers of normalization, output is to input text This prediction hereafter;The language model carries out pre-training using unmarked text data.
This specification additionally provides a kind of realization device of public sentiment early warning, comprising:
Data capture unit to be determined, for obtaining public sentiment data to be determined from public feelings information source;
Task model uses unit, for the task model after training public sentiment data to be determined input, after training The output of task model determines whether to issue early warning;The task model is disaggregated model, and input is text, and output includes pair Whether the prediction of public sentiment is occurred;The task model is initialized according to the language model for completing pre-training, using there is label Sample public sentiment data be trained;The language model and task model are having the same in addition to Softmax layers of normalization Structure, output are the prediction hereafter to input text;The language model carries out pre-training using unmarked text data.
A kind of content distributing network CDN node that this specification provides, comprising: memory and processor;The memory On be stored with can by processor run computer program;When the processor runs the computer program, above-mentioned answer is executed Step described in implementation method with the web access in CDN node.
A kind of computer equipment that this specification provides, comprising: memory and processor;Being stored on the memory can The computer program run by processor;When the processor runs the computer program, above-mentioned web access realization side is executed Step described in method.
This specification additionally provides a kind of terminal, comprising: memory and processor;Being stored on the memory can be by Manage the computer program of device operation;When the processor runs the computer program, the web of above-mentioned application at the terminal is executed Step described in the implementation method of access.
A kind of computer readable storage medium that this specification provides, is stored thereon with computer program, the computer When program is run by processor, step described in the implementation method that the above-mentioned web applied in CDN node is accessed is executed.
This specification additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the calculating When machine program is run by processor, step described in the implementation method of the web access of above-mentioned application at the terminal is executed.
By above technical scheme as it can be seen that in the embodiment of this specification, building is to input, except Softmax layer with text The identical language model of external structure and task model, the output of language model are the prediction to input text hereafter, task model Output include to whether the prediction of public sentiment occurring, after carrying out pre-training to language model using unmarked text data, To complete the language model initialization task model of pre-training, then using markd sample public sentiment data come training mission mould Type using the task model that training is completed determines whether that public sentiment occurs, so as to limited in markd sample data In the case of improve public sentiment early warning accuracy, saved a large amount of manual work.
Detailed description of the invention
Fig. 1 is the topology example figure of a kind of language model or task model in this specification embodiment;
Fig. 2 is a kind of flow chart of the implementation method of public sentiment early warning in this specification embodiment;
Fig. 3 is the flow diagram for carrying out pre-training in this specification application example to language model L-LSTM;
Fig. 4 is the flow diagram being trained in this specification application example to task model T-LSTM;
Fig. 5 is a kind of hardware structure diagram for running the equipment of this specification embodiment;
Fig. 6 is a kind of building-block of logic of the realization device of public sentiment early warning in this specification embodiment.
Specific embodiment
The embodiment of this specification proposes a kind of implementation method of new public sentiment early warning, and building is the language inputted with text Model and task model, language model and the task model structure having the same in addition to Softmax layers, language model Softmax layers are matched with the prediction to input text hereafter, and the Softmax layer of task model is matched with the pre- of public sentiment whether occurs It surveys;With unmarked text data pre-training language model, the language model that pre-training is completed is moved in addition to Softmax layers On task model, then with markd sample public sentiment data training mission model, so that limited in marked sample public sentiment data In the case where, carrying out public sentiment early warning using task model has higher order of accuarcy, greatly reduces marker samples data Manual work.
The embodiment of this specification may operate in any equipment with calculating and storage capacity, such as mobile phone, plate The equipment such as computer, PC (Personal Computer, PC), notebook, server;Can also by operate in two or The logical node of more than two equipment realizes the various functions in this specification embodiment.
In the embodiment of this specification, language model and task model are with text be input disaggregated model.Language mould Type and task model use identical algorithm, have except Softmax (normalization) layer in addition to identical structure (language model with times The input layer of business model is identical with middle layer).Wherein, the output of language model is the prediction hereafter to input text, Using being matched with the Softmax hereafter predicted layer;The output of task model includes to whether the prediction of public sentiment occurring, using matching In the Softmax layer of public sentiment prediction.
In one example, the input of language model and task model is several continuous words in a word, language mould Which word the Softmax layer output of type follows for most probable after these words, and the output of task model then can be when one When occurring these continuous words in word, whether the words is public feelings information;As input " today ", " weather ", " good " this Word sequence, the output of task model can be " bad ", " ", indicate hereafter being likely to of " It's lovely day " " bad " or " ";And the output of task model can be "No", indicate that " It's lovely day " is not public feelings information, there is no public sentiments.
The output of task model is except in addition to whether the prediction of public sentiment occurring, can also including other classification to input text Prediction is not limited such as the event class degree etc. that event type (accident, swindle, start a rumour), the input text of public sentiment are reflected It is fixed.
Since language model is used to predict input text hereafter, can be trained using unmarked training sample; And task model is used to predict whether that public sentiment occurs, and is typically employed to markd training sample and is trained.This specification In embodiment, pre-training is first carried out to language model using unmarked text data, it is initial with the language model that pre-training is completed Change task model, then the task model after initialization is trained using markd sample public sentiment data.Training is completed Task model can be utilized for public sentiment early warning.
Specifically, before training before task model, since language model and task model are complete in addition to Softmax layers It is identical, can by task model in addition to Softmax layers other each layers each parameter value, be set as and complete pre-training Language model is identical, and the initialization to task model can be realized.In this way, can be using a large amount of unmarked corpus to language mould Type carries out pre-training, keeps language model study semantic and regular to the inherence of natural language, the language mould completed using pre-training Type initialization task model can inherit the semanteme learnt and rule to task model, be trained to task model When, as long as thering is label corpus to be finely adjusted on the basis of this to model using a small amount of, so that it may reach good accuracy rate.
The pre-training of language model can be carried out using general corpus, can also be carried out, not limited using public sentiment corpus It is fixed, wherein general corpus includes the unrestricted text data of various contents, and public sentiment corpus is then that content is limited to public sentiment Text data.
In one implementation, it may include two stages to the pre-training of language model: in the first stage, first using General corpus carries out general pre-training to language model, after the completion of general pre-training, into second stage, using public sentiment corpus Target pre-training is carried out to the language model after the completion of general pre-training.After completing second stage, language model is only completion Pre-training.Due to general corpus representation and public sentiment corpus representation may it is different, general corpus into Row pre-training and then with public sentiment corpus continue pre-training, can make language model study to public sentiment data inherent law.Two The pre-training in a stage can be improved the ability that language model understands and handle non-public sentiment text data and public sentiment text data, from And further increase the accuracy that task model determines whether to occur public sentiment.
The training of task model is trained using markd sample public sentiment data, sample public sentiment data includes content It also include the text data that content is non-public sentiment for the text data of public sentiment.To sample public sentiment data according to the defeated of task model The classification carried out needed for out marks.
It can refer to the prior art to the training of task model to carry out.In one example, in training mission model, by sample Public sentiment data incoming task model calculates the value of loss function according to the label of the output of task model and sample public sentiment data, According still further to the parameter value in the value adjustment task model of loss function.
Language model and task model can use arbitrary sorting algorithm, without limitation.For example, task model and language Model can be LSTM model (Long Short-Term Memory, shot and long term memory network), to utilize LSTM model in language The advantage of speech processing aspect reaches better early warning effect.It is a kind of such as to be schemed using the language model of LSTM or the structure of task model Shown in 1.
In the embodiment of this specification, the process of the implementation method of public sentiment early warning is as shown in Figure 2.
Step 210, public sentiment data to be determined is obtained from public feelings information source.
In the origin and route of transmission of the event that may cause public sentiment, any one can learn that event occurs and causes The information source of concern, all can serve as public feelings information source.For example, the message of professional media publication, it is public microblogging, wechat, Know publication and video, the message of forwarding etc. on the equal network medias.
Urtext data can be obtained automatically from public feelings information source using technologies such as speech recognition, web crawlers, in conjunction with The technologies such as word segmentation processing, semantic analysis, search engine retrieved from urtext data may be public sentiment related text number According to, and according to the specific implementation of task model, by related text data processing for be matched with task model input form wait sentence Determine public sentiment data.
For example, when the input of task model is whole section of text, it can be by related text data directly as carriage to be determined Feelings data;When the input of task model is several continuous words in word sequence, after first related text data can be segmented Word sequence is obtained, then using word sequence as public sentiment data to be determined.
It specifically can refer to prior art realization, repeat no more.
Step 220, by the task model after public sentiment data to be determined input training, according to the output of task model after training Determine whether to issue early warning.
Task model after training is completed into public sentiment data to be determined input, output category is predicted to tie by task model Fruit, including to whether the prediction of public sentiment occurring.
The specific implementation that can be exported according to task model is not done to determine to issue public sentiment early warning under what kind of situation It limits.For example, if the output of task model be to whether the judgement conclusion of early warning, can be directly in the output of task model Public sentiment early warning is carried out when early warning;If the output of task model be occur public sentiment probability, can reach in the probability of output or More than some and progress public sentiment early warning under conditions of threshold value;If the output of task model is also wrapped in addition to the probability that public sentiment occurs Include the prediction of the classification to public sentiment data to be determined (event type of such as public sentiment, event class degree), then it can be for difference Event type, different event class degree be arranged different threshold values as issue early warning condition, in task model Output carries out public sentiment early warning when meeting the condition of setting.
As it can be seen that building input is text, the identical language of external structure for removing Softmax layer in the embodiment of this specification Model and task model, the Softmax layer of language model are matched with the prediction to input text hereafter, task model Softmax layers are matched with the prediction that public sentiment whether occurs;Pre-training is being carried out to language model using unmarked text data Afterwards, to complete the language model initialization task model of pre-training, then using markd sample public sentiment data come training mission Model;In the limited situation of marked sample public sentiment data, carrying out public sentiment early warning using task model realizes higher standard True degree has saved a large amount of manpower markers work.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
In an application example of this specification, the public sentiment early warning system of certain Internet Service Provider can supervise in real time Survey the information of the publications such as news client, forum, wechat public platform, immediate communication platform, the sensitive information of discovery user's concern And be analyzed and processed automatically, public sentiment early warning is issued the user in time.
The Internet Service Provider constructs two disaggregated models: language using bidirectional multi-layer Recognition with Recurrent Neural Network LSTM algorithm Say model L-LSTM and task model T-LSTM.L-LSTM is identical with structure of the T-LSTM in addition to Softmax layers.L- The input of LSTM and T-LSTM is a word of continuous N (N is greater than 1 integer) in word sequence.The output of L-LSTM is N number of to this Most probably which K (K is integer) a word is followed after N number of continuous word in the prediction hereafter of word;The output of T-LSTM Whether to carry out public sentiment early warning;The Softmax layer of L-LSTM and T-LSTM is matched with respective output.
Firstly, carrying out pre-training to language model L-LSTM, process is as shown in Figure 3.First with the text on wikipedia General pre-training is carried out to L-LSTM as general corpus, completing the language model obtained after general pre-training is L-LSTM-G; Target pre-training is carried out to L-LSTM-G using the history public sentiment text data of the Internet Service Provider as public sentiment corpus again, Completing the language model obtained after target pre-training is L-LSTM-Y.
The specific method of general pre-training or target pre-training is: after general corpus or public sentiment corpus are carried out word segmentation processing Obtain continuous input of several words as language model in word sequence, using these words in word sequence subsequent word as language mould The output sample of type, carrys out train language model.
Secondly, being trained using public sentiment sample data to task model, process is as shown in Figure 4: public sentiment sample data Be marked with whether should early warning label.Using L-LSTM-Y initialization task model T-LSTM, it may be assumed that remove T-LSTM Except Softmax layers, the parameter initialization of other each layers is the value of the same parameter in L-LSTM-Y;By public sentiment sample data It is input in T-LSTM for continuous several times in word sequence, obtains the prediction label of yes/no;Comparison prediction label and public sentiment sample Whether the sample label of the label of data is consistent, according to whether unanimously generating feedback signal, and adjusts T- according to feedback signal The parameter of each layer in LSTM;After repeating above-mentioned adjustment process to all public sentiment sample datas, the task mould of training completion is obtained Type T-LSTM-F.
After carrying out pre-training to L-LSTM using unmarked general corpus and public sentiment corpus, L-LSTM-Y study has been arrived certainly The inherent law and expression way of right language and public sentiment data, and learning outcome is passed into task model T-LSTM, as long as adopting T-LSTM is finely adjusted with a small amount of markd public sentiment sample data, so that it may reach very high accuracy.Since multilayer is followed Ring neural network have very strong modeling ability, by it is above-mentioned train up three times after, T-LSTM-F model can be good at catching The important information in public sentiment data is caught, accurate early warning is made.
When using T-LSTM-F model, word sequence is obtained after the message grabbed from network is segmented as wait sentence Determine public sentiment data, public sentiment data to be determined be input in T-LSTM-F model, if the output of T-LSTM-F model be it is yes, Carry out public sentiment early warning;If the output of T-LSTM-F model is no, not early warning.
Corresponding with the realization of above-mentioned process, the embodiment of this specification additionally provides a kind of realization device of public sentiment early warning.It should Device can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, make It for the device on logical meaning, will be corresponded to by the CPU (Central Process Unit, central processing unit) of place equipment Computer program instructions be read into memory operation formed.For hardware view, in addition to CPU shown in fig. 5, memory with And except memory, the equipment where the realization device of public sentiment early warning also typically includes the chip for carrying out wireless signal transmitting-receiving Deng other hardware, and/or for realizing other hardware such as board of network communicating function.
Fig. 6 show a kind of realization device of public sentiment early warning of this specification embodiment offer, including data to be determined obtain Unit and task model is taken to use unit, in which: data capture unit to be determined is used to obtain carriage to be determined from public feelings information source Feelings data;Task model is used to inputting public sentiment data to be determined into the task model after training using unit, according to training successor The output of business model determines whether to issue early warning;The task model is disaggregated model, and input is text, and output includes to being The no prediction that public sentiment occurs;The task model is initialized according to the language model for completing pre-training, and use is markd Sample public sentiment data is trained;The language model and the task model knot having the same in addition to Softmax layers of normalization Structure, output are the prediction hereafter to input text;The language model carries out pre-training using unmarked text data.
Optionally, the task model is initialized according to the language model for completing pre-training, comprising: in training mission Before model, by task model in addition to Softmax layers other each layers each parameter value, be set as with complete pre-training language Say that model is identical.
Optionally, the language model carries out pre-training using unmarked text data, comprising: the language model is first adopted General pre-training is carried out with general corpus, then pre- to the language model progress target after the completion of general pre-training using public sentiment corpus Training.
Optionally, the task model is trained using markd sample public sentiment data, comprising: by sample public sentiment number According to incoming task model, the value of loss function is calculated according to the label of the output of task model and sample public sentiment data, according to damage Lose the parameter value in the value adjustment task model of function.
Optionally, the task model and language model are as follows: shot and long term memory network LSTM model.
Optionally, the input of the task model are as follows: several continuous words;The public sentiment data to be determined include: by The word sequence that text sentence obtains after being segmented.
The embodiment of this specification provides a kind of computer equipment, which includes memory and processor. Wherein, the computer program that can be run by processor is stored on memory;Computer program of the processor in operation storage When, execute each step of the implementation method of public sentiment early warning in this specification embodiment.To each of the implementation method of public sentiment early warning The detailed description of a step refer to before content, be not repeated.
The embodiment of this specification provides a kind of computer readable storage medium, is stored with computer on the storage medium Program, these computer programs execute the implementation method of public sentiment early warning in this specification embodiment when being run by processor Each step.Content before referring to the detailed description of each step of the implementation method of public sentiment early warning, is not repeated.
The foregoing is merely the preferred embodiments of this specification, all the application's not to limit the application Within spirit and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, the embodiment of this specification can be used complete hardware embodiment, complete software embodiment or combine software and hardware side The form of the embodiment in face.Moreover, it wherein includes that computer is available that the embodiment of this specification, which can be used in one or more, It is real in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form for the computer program product applied.

Claims (14)

1. a kind of implementation method of public sentiment early warning, comprising:
Public sentiment data to be determined is obtained from public feelings information source;
By the task model after public sentiment data to be determined input training, determine whether to issue according to the output of task model after training Early warning;The task model is disaggregated model, and input is text, and output includes to whether the prediction of public sentiment occurring;Described Business model is initialized according to the language model for completing pre-training, is trained using markd sample public sentiment data;Institute Language model and the task model structure having the same in addition to Softmax layers of normalization are stated, output is to input text Prediction hereafter;The language model carries out pre-training using unmarked text data.
2. according to the method described in claim 1, the task model according to complete pre-training language model initialized, Include: before training mission model, by task model in addition to Softmax layers other each layers each parameter value, be set as It is identical as the language model of pre-training is completed.
3. according to the method described in claim 1, the language model carries out pre-training using unmarked text data, comprising: The language model first carries out general pre-training using general corpus, then using public sentiment corpus to the language after the completion of general pre-training Say that model carries out target pre-training.
4. being wrapped according to the method described in claim 1, the task model is trained using markd sample public sentiment data It includes: by sample public sentiment data incoming task model, being calculated and lost according to the label of the output of task model and sample public sentiment data The value of function, according to the parameter value in the value adjustment task model of loss function.
5. according to the method described in claim 1, the task model and language model are as follows: shot and long term memory network LSTM mould Type.(Long Short-Term Memory, shot and long term memory network)
6. according to the method described in claim 1, the input of the task model are as follows: several continuous words;It is described to be determined Public sentiment data includes: the word sequence obtained after being segmented text sentence.
7. a kind of realization device of public sentiment early warning, comprising:
Data capture unit to be determined, for obtaining public sentiment data to be determined from public feelings information source;
Task model uses unit, for the task model after training public sentiment data to be determined input, according to task after training The output of model determines whether to issue early warning;The task model be disaggregated model, input be text, output include to whether The prediction of public sentiment occurs;The task model is initialized according to the language model for completing pre-training, using markd sample This public sentiment data is trained;The language model and the task model structure having the same in addition to Softmax layers of normalization, It is exported as the prediction hereafter to input text;The language model carries out pre-training using unmarked text data.
8. device according to claim 7, the task model is initialized according to the language model for completing pre-training, Include: before training mission model, by task model in addition to Softmax layers other each layers each parameter value, be set as It is identical as the language model of pre-training is completed.
9. device according to claim 7, the language model carries out pre-training using unmarked text data, comprising: The language model first carries out general pre-training using general corpus, then using public sentiment corpus to the language after the completion of general pre-training Say that model carries out target pre-training.
10. device according to claim 7, the task model is trained using markd sample public sentiment data, It include: that sample public sentiment data incoming task model is calculated according to the label of the output of task model and sample public sentiment data and damaged The value for losing function, according to the parameter value in the value adjustment task model of loss function.
11. device according to claim 7, the task model and language model are as follows: shot and long term memory network LSTM mould Type.
12. device according to claim 7, the input of the task model are as follows: several continuous words;It is described to be determined Public sentiment data includes: the word sequence obtained after being segmented text sentence.
13. a kind of computer equipment, comprising: memory and processor;Being stored on the memory can be by processor operation Computer program;When the processor runs the computer program, the step as described in claims 1 to 6 any one is executed Suddenly.
14. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is run by processor When, execute the step as described in claims 1 to 6 any one.
CN201910572418.2A 2019-06-28 2019-06-28 Public opinion early warning implementation method and device Active CN110347830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910572418.2A CN110347830B (en) 2019-06-28 2019-06-28 Public opinion early warning implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910572418.2A CN110347830B (en) 2019-06-28 2019-06-28 Public opinion early warning implementation method and device

Publications (2)

Publication Number Publication Date
CN110347830A true CN110347830A (en) 2019-10-18
CN110347830B CN110347830B (en) 2023-09-05

Family

ID=68177120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910572418.2A Active CN110347830B (en) 2019-06-28 2019-06-28 Public opinion early warning implementation method and device

Country Status (1)

Country Link
CN (1) CN110347830B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008528A (en) * 2019-12-05 2020-04-14 北京知道智慧信息技术有限公司 Text processing method and device, electronic equipment and readable storage medium
CN112487188A (en) * 2020-12-03 2021-03-12 中邮信息科技(北京)有限公司 Public opinion monitoring method and device, electronic equipment and storage medium
CN112905753A (en) * 2019-12-04 2021-06-04 北京沃东天骏信息技术有限公司 Method and device for distinguishing text information
CN113762343A (en) * 2021-08-04 2021-12-07 德邦证券股份有限公司 Method, device and storage medium for processing public opinion information and training classification model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016201933A1 (en) * 2015-06-19 2016-12-22 百度在线网络技术(北京)有限公司 User data processing method, providing method, system and computer device
WO2018023981A1 (en) * 2016-08-03 2018-02-08 平安科技(深圳)有限公司 Public opinion analysis method, device, apparatus and computer readable storage medium
CN108829807A (en) * 2018-06-07 2018-11-16 武汉斗鱼网络科技有限公司 A kind of public sentiment merging method, device, server and storage medium
CN109299258A (en) * 2018-09-18 2019-02-01 平安科技(深圳)有限公司 A kind of public sentiment event detecting method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016201933A1 (en) * 2015-06-19 2016-12-22 百度在线网络技术(北京)有限公司 User data processing method, providing method, system and computer device
WO2018023981A1 (en) * 2016-08-03 2018-02-08 平安科技(深圳)有限公司 Public opinion analysis method, device, apparatus and computer readable storage medium
CN108829807A (en) * 2018-06-07 2018-11-16 武汉斗鱼网络科技有限公司 A kind of public sentiment merging method, device, server and storage medium
CN109299258A (en) * 2018-09-18 2019-02-01 平安科技(深圳)有限公司 A kind of public sentiment event detecting method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谷宝华: "基于BP神经网络的企业网络舆情危机预警研究", 《辽宁工业大学学报(社会科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905753A (en) * 2019-12-04 2021-06-04 北京沃东天骏信息技术有限公司 Method and device for distinguishing text information
CN111008528A (en) * 2019-12-05 2020-04-14 北京知道智慧信息技术有限公司 Text processing method and device, electronic equipment and readable storage medium
CN112487188A (en) * 2020-12-03 2021-03-12 中邮信息科技(北京)有限公司 Public opinion monitoring method and device, electronic equipment and storage medium
CN113762343A (en) * 2021-08-04 2021-12-07 德邦证券股份有限公司 Method, device and storage medium for processing public opinion information and training classification model
CN113762343B (en) * 2021-08-04 2024-03-15 德邦证券股份有限公司 Method, device and storage medium for processing public opinion information and training classification model

Also Published As

Publication number Publication date
CN110347830B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US11256952B2 (en) Image privacy perception method based on deep learning
Jain et al. Optimizing semantic LSTM for spam detection
Yu et al. Deep learning for real-time social media text classification for situation awareness–using Hurricanes Sandy, Harvey, and Irma as case studies
CN110347830A (en) The implementation method and device of public sentiment early warning
US11409642B2 (en) Automatic parameter value resolution for API evaluation
EP4009219A1 (en) Analysis of natural language text in document using hierarchical graph
Warr Strengthening deep neural networks: Making AI less susceptible to adversarial trickery
EP2973038A1 (en) Classifying resources using a deep network
US11847423B2 (en) Dynamic intent classification based on environment variables
CN111753087B (en) Public opinion text classification method, apparatus, computer device and storage medium
KR20140131327A (en) Social media data analysis system and method
Kanakaraddi et al. Comparison study of sentiment analysis of tweets using various machine learning algorithms
CN110598869B (en) Classification method and device based on sequence model and electronic equipment
CN107392311A (en) The method and apparatus of sequence cutting
US11783221B2 (en) Data exposure for transparency in artificial intelligence
EP4369245A1 (en) Enhanced named entity recognition (ner) using custom-built regular expression (regex) matcher and heuristic entity ruler
Zainab et al. Deployment of deep learning models to mobile devices for spam classification
Meenakshi et al. Sentiment analysis of amazon mobile reviews
CN113259369B (en) Data set authentication method and system based on machine learning member inference attack
Bari et al. SMS and E-mail Spam Classification Using Natural Language Processing and Machine Learning
Kanagasabai et al. Classification of massive mobile web log URLs for customer profiling & analytics
Roy et al. Decision tree based data classification for marine wireless communication
Thangamayan et al. Artificial Intelligence Oriented User Sentiment Evaluation System on Social Networks using Modified Deep Learning Principles
US11036936B2 (en) Cognitive analysis and content filtering
Feng et al. A learning automata-based compression scheme for convolutional neural network

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: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant