CN112446812A - Block chain based government affair information automatic pushing method and terminal - Google Patents

Block chain based government affair information automatic pushing method and terminal Download PDF

Info

Publication number
CN112446812A
CN112446812A CN202011470170.8A CN202011470170A CN112446812A CN 112446812 A CN112446812 A CN 112446812A CN 202011470170 A CN202011470170 A CN 202011470170A CN 112446812 A CN112446812 A CN 112446812A
Authority
CN
China
Prior art keywords
pushed
block
information
block chain
government affair
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
CN202011470170.8A
Other languages
Chinese (zh)
Other versions
CN112446812B (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.)
Hengruitong Fujian Information Technology Co ltd
Original Assignee
Hengruitong Fujian Information Technology Co 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 Hengruitong Fujian Information Technology Co ltd filed Critical Hengruitong Fujian Information Technology Co ltd
Priority to CN202011470170.8A priority Critical patent/CN112446812B/en
Publication of CN112446812A publication Critical patent/CN112446812A/en
Application granted granted Critical
Publication of CN112446812B publication Critical patent/CN112446812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a block chain-based automatic government affair information pushing method and a terminal, wherein first government affair information is obtained and stored in a main information block chain; extracting keywords of the first government affair information and storing the block identification of the main information block chain into a keyword block chain corresponding to each first government affair information keyword; and then, during pushing, obtaining a probability value to be pushed of each block identifier in the block chain set to be pushed according to the user information weight value of each user information keyword and the government affair information weight value of each block identifier in each block chain of the keyword to be pushed under the block chain set to be pushed, thus obtaining the government affair information to be pushed according to the probability value to be pushed, and pushing the government affair information to be pushed to a user to be pushed according to a preset pushing requirement. The government affair information pushing method and the system can meet the pushing cost requirement and the pushing effectiveness requirement at the same time.

Description

Block chain based government affair information automatic pushing method and terminal
Technical Field
The invention relates to the technical field of information disclosure, in particular to a block chain-based government affair information automatic pushing method and a terminal.
Background
In the era of economic globalization and informatization, information which changes all the time becomes a determinant factor of social and economic development. The information society is a society in which information and knowledge will play a leading role, and government affair information, which is the most important information resource, covers 80% of the information of the whole society, and is not only a direct way for the public to know government behaviors, but also an important basis for the public to supervise the government behaviors. Thus, government information should be disclosed.
The existing government affair information is provided with websites or APPs and the like, for a user downloading the APP, the user generally needs to push related government affair information according to interests and hobbies of the user, however, the existing government affair information pushing is the same government affair information which is pushed uniformly, the government affair information pushing of different users is not differentiated, if different government affair information pushing is carried out aiming at different users, under the condition of user data surge, strong background computing capacity needs to be met to carry out pushing calculation, and pushing cost is increased inevitably.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the block chain-based government affair information automatic pushing method and the terminal are provided to simultaneously meet the pushing cost requirement and the pushing effectiveness requirement.
In order to solve the technical problems, the invention adopts the technical scheme that:
a block chain-based government affair information automatic pushing method comprises the following steps:
s1, acquiring first government affair information, and extracting keywords of the first government affair information to obtain a plurality of first government affair information keywords corresponding to the first government affair information;
s2, generating a main information block from the first government affair information and storing the main information block into a main information block chain, and acquiring a block identifier of the main information block in the main information block chain;
s3, taking a block identifier of the main information block in the main information block chain as a block content to generate a keyword block, storing the keyword block into a keyword block chain corresponding to each first government affair information keyword, respectively, and obtaining a government affair information weight value of the block identifier corresponding to the first government affair information according to a write-in timestamp of the block identifier corresponding to the first government affair information, where each keyword block chain corresponds to one government affair information keyword;
s4, obtaining user information keywords of a user to be pushed, obtaining each keyword block chain corresponding to each user information keyword to obtain a block chain set to be pushed, and obtaining a probability value to be pushed of each block identifier in the block chain set to be pushed according to a user information weight value of each user information keyword and a government affair information weight value of each block identifier in each keyword block chain to be pushed under the block chain set to be pushed, wherein the user information keywords are user interest information obtained according to historical access data of the user;
s5, selecting a preset number of to-be-pushed block identifications according to the to-be-pushed probability value, acquiring corresponding to-be-pushed government affair information from the main information block chain according to the to-be-pushed block identifications, and pushing the to-be-pushed government affair information to the to-be-pushed user according to a preset pushing requirement.
Further, the step S5 specifically includes the following steps:
s51, marking the block identifiers with the probability value to be pushed being greater than or equal to a first preset value in all the keyword block chains to be pushed as pushed, marking the block identifiers with the probability value to be pushed being smaller than the first preset value and being greater than or equal to a second preset value in all the keyword block chains to be pushed as pushed waiting, marking the block identifiers with the probability value to be pushed being smaller than the second preset value in all the keyword block chains to be pushed as not pushed, wherein the first preset value is (0.6P)max,0.9Pmax) The second predetermined value is (0.2P)max,0.4Pmax) Said P ismaxThe maximum value of the probability values to be pushed is obtained;
s52, judging whether the number of the block identifications marked as being pushed meets the preset pushing number, if so, randomly selecting the block identifications with the preset pushing number from the block identifications marked as being pushed as block identifications to be pushed, and then executing a step S54, if not, executing a step S53;
s53, taking the block identifications marked as being pushed as block identifications to be pushed, obtaining the residual pushing number according to the preset pushing number and the block identifications to be pushed, selecting the block identifications with the residual pushing number from the block identifications marked as being waiting to be pushed as the block identifications to be pushed, and then executing the step S54;
s54, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identification to be pushed, and pushing the government affair information to be pushed to the user to be pushed according to a preset pushing requirement.
Further, the step S3 specifically includes the following steps:
taking a block identifier of the main information block in the main information block chain as block content to generate a keyword block, and respectively storing the keyword block into a keyword block chain corresponding to each first government affair information keyword, wherein each keyword block chain corresponds to one government affair information keyword;
the step S4 specifically includes the following steps:
s41, obtaining user information keywords of a user to be pushed, and obtaining each keyword block chain corresponding to each user information keyword to obtain a block chain set to be pushed;
s42, obtaining a date difference between a write timestamp and a current push time of each block identifier in each keyword block chain to be pushed under the to-be-pushed block chain set, and determining whether the number of block identifiers whose date difference is within a third preset value in each keyword block chain under the to-be-pushed block chain set is greater than N times of a preset push number, if so, taking all block identifiers whose date difference is within a third preset value in each keyword block chain under the to-be-pushed block chain set as preset push block identifiers, otherwise, obtaining block identifiers of N times of the preset push number as preset push block identifiers according to the order of the date difference, where N is (2, 10), and the third preset value is (7, 30);
s43, obtaining a probability value to be pushed of each pre-pushed block identifier according to the date difference, multiplying a user information weight value of each user information keyword by a government affair information weight value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed to obtain a pre-pushed probability value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed, and adding the pre-pushed probability values of the same pre-pushed block identifier under the block chain set to be pushed to obtain a probability value to be pushed of each block identifier in the block chain set to be pushed, where the user information keyword is user interest information obtained according to historical access data of a user.
Further, the first preset value is 0.8PmaxThe second preset value is 0.2Pmax
Further, the N is 5.
Further, the third preset value is 15.
Further, the step S5 specifically includes the following steps:
sequentially selecting the block identifiers to be pushed with preset pushing number according to the probability value to be pushed from large to small, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identifiers to be pushed, and pushing the government affair information to be pushed to the user to be pushed according to preset pushing requirements.
Further, the step S3 of obtaining the government affair information weight value of the block identifier corresponding to the first government affair information according to the write timestamp of the block identifier corresponding to the first government affair information specifically includes the following steps:
and obtaining the government affair information weight value of the block identifier corresponding to the first government affair information according to the write-in timestamp of the block identifier corresponding to the first government affair information and the occurrence frequency of the key words of the government affair information.
Further, the step S3 further includes the following steps:
and judging whether the current sentence where the government information key words are located and the preceding and following sentences are in repeated reference relation with the government information key words appearing in the front, if so, not accumulating the time, otherwise, accumulating the appearance frequency of the government information key words.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
the terminal comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the method for automatically pushing the government affair information based on the block chain.
The invention has the beneficial effects that: when first government information is stored, keywords are extracted and then stored in a main information block chain, block marks in the main information block chain are stored in a keyword block chain corresponding to each first government information keyword, corresponding weight values are obtained at the same time, and since the storage of the government information is much less than that of users, the calculation amount of the government information preprocessing is obviously smaller than that of each subsequent user. At the moment, if user pushing is needed, user information keywords of a user to be pushed are obtained, the user information keywords are quickly traversed to obtain a corresponding keyword block chain, then the probability value to be pushed of each block identifier in the block chain set to be pushed can be obtained only by calculating according to a weight value generated in advance, pushing is carried out according to the probability value to be pushed, so that the user can receive government affair information which is more interesting, and the government affair information pushing of the invention can meet the pushing cost requirement and the pushing effectiveness requirement at the same time.
Drawings
Fig. 1 is a schematic flowchart of an automatic pushing method of government affair information based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic government affair information pushing terminal based on a block chain according to an embodiment of the present invention.
Description of reference numerals:
1. a block chain-based government affair information automatic pushing terminal; 2. a processor; 3. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Example one
Referring to fig. 1 to fig. 2, the method for automatically pushing government affair information based on a block chain according to the present embodiment includes the steps of:
s1, acquiring first government affair information, and extracting keywords of the first government affair information to obtain a plurality of first government affair information keywords corresponding to the first government affair information;
in this embodiment, the keyword extraction of the first government information can be implemented by using an existing algorithm.
S2, generating a main information block from the first government affair information and storing the main information block into a main information block chain, and acquiring a block identifier of the main information block in the main information block chain;
s3, taking block identifications of the main information blocks in the main information block chain as block contents to generate key word blocks, respectively storing the key word blocks into the key word block chain corresponding to each first government affair information key word, and obtaining government affair information weight values of the block identifications corresponding to the first government affair information according to the writing timestamps of the block identifications corresponding to the first government affair information, wherein each key word block chain corresponds to one government affair information key word;
in this embodiment, the step S3 of obtaining the government information weight value of the block identifier corresponding to the first government information according to the write timestamp of the block identifier corresponding to the first government information specifically includes the following steps:
judging whether the repeated reference relationship is formed between the current sentence and the current and previous and next sentences according to the sentence where the current government affair information key word is located, if so, not accumulating the current time, otherwise, accumulating the occurrence frequency of the government affair information key word
And obtaining the government affair information weight value of the block identifier corresponding to the first government affair information according to the write-in timestamp of the block identifier corresponding to the first government affair information and the occurrence frequency of the key words of the government affair information.
Thus, in this embodiment, assuming that the first government information keywords are A, B and C and the block id a corresponding to the first government information in step S2, the block id a is stored in each of the block chain a, the block chain B and the block chain C.
At this time, due to the timeliness of the information and the fact that the blocks are sorted according to the timestamps, the latest block is necessarily at the forefront, at this time, since the government affair information has a lot of words for citing related personnel, the deviation of the calculation result is large if the repeated citing keywords are calculated for a plurality of times, the repeated citing times are calculated only once, and the subsequent repeated citing times are not accumulated, for example, the first government affair information keyword is A which appears eight times totally, and four times are repeated citing, the four times are calculated only once, so that the frequency of the first government affair information keyword which is A appears is 5, and a more reasonable and effective government affair information weight value is provided.
It should be understood that if there is no corresponding key block chain, a new one may be automatically generated.
S4, obtaining user information keywords of a user to be pushed, obtaining each keyword block chain corresponding to each user information keyword to obtain a block chain set to be pushed, obtaining a probability value to be pushed of each block identifier in the block chain set to be pushed according to a user information weight value of each user information keyword and a government affair information weight value of each block identifier in each key word block chain to be pushed under the block chain set to be pushed, wherein the user information keywords are user interest information obtained according to historical access data of the user;
in this embodiment, there are many keyword block chains corresponding to the government affair information, for example, an a block chain, a B block chain, a C block chain, a D block chain, and the like, and assuming that the user information keywords are B and D, only the block identifiers of the B block chain and the D block chain need to be determined, and the user information keywords are B and D, which can be obtained by calculating in advance the user information weight values of the user, and the block identifiers of the B block chain and the D block chain can also be obtained by calculating in advance, so that the to-be-pushed probability values of all the block identifiers of the B block chain and the D block chain can be obtained quickly.
S5, selecting a preset number of to-be-pushed block identifications according to the to-be-pushed probability value, acquiring corresponding to-be-pushed government affair information from the main information block chain according to the to-be-pushed block identifications, and pushing the to-be-pushed government affair information to a to-be-pushed user according to a preset pushing requirement.
In this embodiment, step S5 specifically includes the following steps:
sequentially selecting the block identifiers to be pushed with preset pushing number from large to small according to the probability value to be pushed, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identifiers to be pushed, and pushing the government affair information to be pushed to a user to be pushed according to preset pushing requirements.
The government affair information to be pushed corresponding to the block identifications to be pushed with the maximum probability value to be pushed is sent to the user to be pushed, so that the government affair information which is pushed to the user and is interested in the user is obtained under the condition that the pushing calculation amount is small.
Example two
Referring to fig. 1 to fig. 2, in the method for automatically pushing government affair information based on a block chain according to the present embodiment, on the basis of the first embodiment, step S5 is replaced with the following steps:
s51, marking the block identifiers with the probability value to be pushed being larger than or equal to a first preset value in all the keyword block chains to be pushed as pushed, marking the block identifiers with the probability value to be pushed being smaller than the first preset value and larger than or equal to a second preset value in all the keyword block chains to be pushed as pushed, and marking all the block identifiers to be pushedThe block identification mark of the probability value to be pushed in the keyword block chain is smaller than a second preset value is marked as not to be pushed, and the first preset value is (0.6P)max,0.9Pmax) The second predetermined value is (0.2P)max,0.4Pmax),PmaxThe maximum value in the probability value to be pushed is obtained;
in this embodiment, the first predetermined value is 0.8PmaxThe second predetermined value is 0.2PmaxThe block identifier at the head part of the probability value to be pushed is the government affair information which is interested by the user and is listed as a pushing option, and the block identifier at the tail part of the probability value to be pushed is the government affair information which is not interested by the user and is listed as a non-pushing option; and for being at 0.2Pmax-0.8PmaxThe central part of (1) is the government affairs information that the user is likely to be interested in, and thus is marked as waiting for push.
S52, judging whether the number of the block identifications marked as push meets a preset push number, if so, randomly selecting the block identifications with the preset push number from the block identifications marked as push as block identifications to be pushed, and then executing a step S54, and if not, executing a step S53;
s53, taking the block identifications marked as push as block identifications to be pushed, obtaining the residual push number according to the preset push number and the block identifications to be pushed, selecting the block identifications with the residual push number from the block identifications marked as push waiting as the block identifications to be pushed, and then executing the step S54;
and S54, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identification to be pushed, and pushing the government affair information to be pushed to a user to be pushed according to a preset pushing requirement.
For steps S52 to S54, if the government information interested by the user exceeds the preset number, the block id with the preset number is randomly selected as the block id to be pushed, and if not, the block id with the remaining number of pushed blocks is randomly selected as the block id to be pushed from the government information that may be interested, so that compared with directly selecting the remaining number of pushed government from large to small, the user is ensured to receive the government information interested by the user, and more government information is more likely to be seen by other users, and when some government information with lower original probability is pushed to the user, if the user shows interest, the probability value corresponding to the user information keyword is changed, thereby avoiding that the user is limited to the field of interest of the user and cannot widen the knowledge field of the user, making push messages more diverse and possible.
EXAMPLE III
Referring to fig. 1 to fig. 2, in the method for automatically pushing government affair information based on a block chain according to the present embodiment, on the basis of the first embodiment, the step S3 specifically includes the following steps:
taking a block identifier of the main information block in the main information block chain as block content to generate a keyword block, and respectively storing the keyword block into a keyword block chain corresponding to each first government affair information keyword, wherein each keyword block chain corresponds to one government affair information keyword;
that is, in the present embodiment, in step S3, the probability value is not generated, and only the write time stamp thereof is recorded.
In this embodiment, step S4 specifically includes the following steps:
s41, obtaining user information keywords of a user to be pushed, obtaining each keyword block chain corresponding to each user information keyword, and obtaining a block chain set to be pushed;
as can be seen from the above, the to-be-pushed blockchain set includes a blockchain B and a blockchain D.
S42, obtaining a date difference between a write timestamp of each block identifier in each to-be-pushed keyword block chain under the to-be-pushed block chain set and the current pushing time, and determining whether the number of block identifiers whose date difference is within a third preset value in each to-be-pushed keyword block chain under the to-be-pushed block chain set is greater than N times of a preset pushing number, if so, taking all block identifiers whose date differences are within the third preset value in each to-be-pushed keyword block chain under the to-be-pushed block chain set as preset pushing block identifiers, otherwise, obtaining block identifiers whose number is N times of the preset pushing number as preset pushing block identifiers according to the order of the date differences, where N is (2, 10), and the third preset value is (7, 30);
in this embodiment, N is 5, the third preset value is 15, if the preset number of pushed blocks is 5, it is determined whether the number of block identifiers within 15 days is greater than 25, if so, for example, 40 block identifiers are used as the pre-pushed block identifiers, otherwise, only 25 block identifiers are obtained as the pre-pushed block identifiers, so that the calculation amount is reduced as much as possible while the user is ensured to obtain the interested government information.
S43, obtaining a probability value to be pushed of each pre-pushed block identifier according to the date difference, multiplying a user information weighted value of each user information keyword with a government affair information weighted value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed to obtain a pre-pushed probability value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed, adding the pre-pushed probability values of the same pre-pushed block identifier under the block chain set to be pushed to obtain a probability value to be pushed of each block identifier in the block chain set to be pushed, wherein the user information keyword is user interest information obtained according to historical access data of a user.
In this embodiment, only the B blockchain includes the chunk identifier a, and the D blockchain does not include the chunk identifier a, so that the pre-push probability value of the chunk identifier a is the pre-push probability value of the chunk identifier a on the B blockchain.
In other equivalent embodiments, if the set of blockchains to be pushed includes an a blockchain, a B blockchain and a D blockchain, the a blockchain and the B blockchain both include a blockidentity a, and thus the pre-push probability value of the blockidentity a is the sum of the pre-push probability value of the blockidentity a on the a blockchain and the pre-push probability value of the blockidentity a on the B blockchain.
Therefore, the government affair information is divided into the keywords to be subjected to secondary association storage, the interest degree of the government affair information to the user is reflected by adding the probability values, in the process, the government affair information does not need to be subjected to full-text traversal and calculation, and therefore the calculation amount is further reduced on the basis of guaranteeing the real reflection of the interest of the user, and the government affair information pushing of the embodiment can meet the pushing cost requirement and the pushing effectiveness requirement at the same time.
Example four
Referring to fig. 4, an automatic block chain-based government information pushing terminal 1 includes a memory 3, a processor 2 and a computer program stored in the memory 3 and operable on the processor 2, and when the processor 2 executes the computer program, the steps of the automatic block chain-based government information pushing method according to any one of the first to second embodiments are implemented.
In summary, according to the method and the terminal for automatically pushing government affair information based on the block chain provided by the present invention, when storing the first government affair information, the keyword is extracted first, and then the extracted keyword is stored in the main information block chain, and the block identifier in the main information block chain is stored in the keyword block chain corresponding to each keyword of the first government affair information, because the storage amount of the government affair information is much less than the amount of the user, the calculation amount of the preprocessing of the government affair information is significantly less than the pushing calculation of each subsequent user. At the moment, if user pushing is needed, user information keywords of a user to be pushed are obtained, the corresponding keyword block chains are obtained through quick traversal of the user information keywords, and then selection and pushing are carried out according to date difference values, occurrence frequency, preset pushing numbers and probability values corresponding to block identifications, so that the user can receive government affair information which is more interesting, and the government affair information pushing of the invention can meet pushing cost requirements and pushing effectiveness requirements at the same time; meanwhile, when the message to be pushed is selected according to the probability value to be pushed, random selection is added, so that the message to be pushed has more diversity and possibility.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A block chain-based government affair information automatic pushing method is characterized by comprising the following steps:
s1, acquiring first government affair information, and extracting keywords of the first government affair information to obtain a plurality of first government affair information keywords corresponding to the first government affair information;
s2, generating a main information block from the first government affair information and storing the main information block into a main information block chain, and acquiring a block identifier of the main information block in the main information block chain;
s3, taking a block identifier of the main information block in the main information block chain as a block content to generate a keyword block, storing the keyword block into a keyword block chain corresponding to each first government affair information keyword, respectively, and obtaining a government affair information weight value of the block identifier corresponding to the first government affair information according to a write-in timestamp of the block identifier corresponding to the first government affair information, where each keyword block chain corresponds to one government affair information keyword;
s4, obtaining user information keywords of a user to be pushed, obtaining each keyword block chain corresponding to each user information keyword to obtain a block chain set to be pushed, and obtaining a probability value to be pushed of each block identifier in the block chain set to be pushed according to a user information weight value of each user information keyword and a government affair information weight value of each block identifier in each keyword block chain to be pushed under the block chain set to be pushed, wherein the user information keywords are user interest information obtained according to historical access data of the user;
s5, selecting a preset number of to-be-pushed block identifications according to the to-be-pushed probability value, acquiring corresponding to-be-pushed government affair information from the main information block chain according to the to-be-pushed block identifications, and pushing the to-be-pushed government affair information to the to-be-pushed user according to a preset pushing requirement.
2. The method for automatically pushing government affair information based on block chains according to claim 1, wherein the step S5 specifically comprises the following steps:
s51, marking the block identifiers with the probability value to be pushed being greater than or equal to a first preset value in all the keyword block chains to be pushed as pushed, marking the block identifiers with the probability value to be pushed being smaller than the first preset value and being greater than or equal to a second preset value in all the keyword block chains to be pushed as pushed waiting, marking the block identifiers with the probability value to be pushed being smaller than the second preset value in all the keyword block chains to be pushed as not pushed, wherein the first preset value is (0.6P)max,0.9Pmax) The second predetermined value is (0.2P)max,0.4Pmax) Said P ismaxThe maximum value of the probability values to be pushed is obtained;
s52, judging whether the number of the block identifications marked as being pushed meets the preset pushing number, if so, randomly selecting the block identifications with the preset pushing number from the block identifications marked as being pushed as block identifications to be pushed, and then executing a step S54, if not, executing a step S53;
s53, taking the block identifications marked as being pushed as block identifications to be pushed, obtaining the residual pushing number according to the preset pushing number and the block identifications to be pushed, selecting the block identifications with the residual pushing number from the block identifications marked as being waiting to be pushed as the block identifications to be pushed, and then executing the step S54;
s54, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identification to be pushed, and pushing the government affair information to be pushed to the user to be pushed according to a preset pushing requirement.
3. The method for automatically pushing government affair information based on block chains according to claim 2, wherein the step S3 specifically comprises the following steps:
taking a block identifier of the main information block in the main information block chain as block content to generate a keyword block, and respectively storing the keyword block into a keyword block chain corresponding to each first government affair information keyword, wherein each keyword block chain corresponds to one government affair information keyword;
the step S4 specifically includes the following steps:
s41, obtaining user information keywords of a user to be pushed, and obtaining each keyword block chain corresponding to each user information keyword to obtain a block chain set to be pushed;
s42, obtaining a date difference between a write timestamp and a current push time of each block identifier in each keyword block chain to be pushed under the to-be-pushed block chain set, and determining whether the number of block identifiers whose date difference is within a third preset value in each keyword block chain under the to-be-pushed block chain set is greater than N times of a preset push number, if so, taking all block identifiers whose date difference is within a third preset value in each keyword block chain under the to-be-pushed block chain set as preset push block identifiers, otherwise, obtaining block identifiers of N times of the preset push number as preset push block identifiers according to the order of the date difference, where N is (2, 10), and the third preset value is (7, 30);
s43, obtaining a probability value to be pushed of each pre-pushed block identifier according to the date difference, multiplying a user information weight value of each user information keyword by a government affair information weight value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed to obtain a pre-pushed probability value of each pre-pushed block identifier in each key word block chain to be pushed under the block chain set to be pushed, and adding the pre-pushed probability values of the same pre-pushed block identifier under the block chain set to be pushed to obtain a probability value to be pushed of each block identifier in the block chain set to be pushed, where the user information keyword is user interest information obtained according to historical access data of a user.
4. The method for automatically pushing government affair information based on block chain according to claim 2, wherein the first preset value is 0.8PmaxThe second preset value is 0.2Pmax
5. The automatic pushing method for government affair information based on block chain according to claim 3, wherein N is 5.
6. The automatic pushing method for government affair information based on block chain according to claim 3, wherein the third preset value is 15.
7. The method for automatically pushing government affair information based on block chains according to claim 1, wherein the step S5 specifically comprises the following steps:
sequentially selecting the block identifiers to be pushed with preset pushing number according to the probability value to be pushed from large to small, acquiring corresponding government affair information to be pushed from the main information block chain according to the block identifiers to be pushed, and pushing the government affair information to be pushed to the user to be pushed according to preset pushing requirements.
8. The method according to claim 7, wherein the step S3 of obtaining the weight value of the government information of the block identifier corresponding to the first government information according to the write timestamp of the block identifier corresponding to the first government information specifically includes the following steps:
and obtaining the government affair information weight value of the block identifier corresponding to the first government affair information according to the write-in timestamp of the block identifier corresponding to the first government affair information and the occurrence frequency of the key words of the government affair information.
9. The automatic pushing method for government affair information based on block chain according to claim 8, wherein the step S3 further comprises the steps of:
and judging whether the current sentence where the government information key words are located and the preceding and following sentences are in repeated reference relation with the government information key words appearing in the front, if so, not accumulating the time, otherwise, accumulating the appearance frequency of the government information key words.
10. An automatic government information pushing terminal based on a block chain, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein: the steps of a block chain based automatic pushing method of government information according to any one of claims 1-9 are implemented by the processor when executing the computer program.
CN202011470170.8A 2020-12-14 2020-12-14 Automatic push method and terminal for government affair information based on blockchain Active CN112446812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011470170.8A CN112446812B (en) 2020-12-14 2020-12-14 Automatic push method and terminal for government affair information based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011470170.8A CN112446812B (en) 2020-12-14 2020-12-14 Automatic push method and terminal for government affair information based on blockchain

Publications (2)

Publication Number Publication Date
CN112446812A true CN112446812A (en) 2021-03-05
CN112446812B CN112446812B (en) 2023-07-21

Family

ID=74739664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011470170.8A Active CN112446812B (en) 2020-12-14 2020-12-14 Automatic push method and terminal for government affair information based on blockchain

Country Status (1)

Country Link
CN (1) CN112446812B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117828172A (en) * 2023-07-25 2024-04-05 江苏元速时空大数据集团有限公司 Government affair information recommendation display system based on data analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012000423A1 (en) * 2010-06-29 2012-01-05 Beijing Sogou Technology Development Co., Ltd. Method and system for pushing network information
CN108737252A (en) * 2018-05-17 2018-11-02 立旃(上海)科技有限公司 Information-pushing method based on block chain and device
CN110247974A (en) * 2019-06-18 2019-09-17 东莞市盟大塑化科技有限公司 Information-pushing method, device, computer and storage medium based on block chain
CN110569437A (en) * 2019-09-05 2019-12-13 腾讯科技(深圳)有限公司 click probability prediction and page content recommendation methods and devices
CN110740177A (en) * 2019-10-12 2020-01-31 腾讯科技(深圳)有限公司 Network merging method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012000423A1 (en) * 2010-06-29 2012-01-05 Beijing Sogou Technology Development Co., Ltd. Method and system for pushing network information
CN108737252A (en) * 2018-05-17 2018-11-02 立旃(上海)科技有限公司 Information-pushing method based on block chain and device
CN110247974A (en) * 2019-06-18 2019-09-17 东莞市盟大塑化科技有限公司 Information-pushing method, device, computer and storage medium based on block chain
CN110569437A (en) * 2019-09-05 2019-12-13 腾讯科技(深圳)有限公司 click probability prediction and page content recommendation methods and devices
CN110740177A (en) * 2019-10-12 2020-01-31 腾讯科技(深圳)有限公司 Network merging method and device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117828172A (en) * 2023-07-25 2024-04-05 江苏元速时空大数据集团有限公司 Government affair information recommendation display system based on data analysis

Also Published As

Publication number Publication date
CN112446812B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US8095547B2 (en) Method and apparatus for detecting spam user created content
US8630972B2 (en) Providing context for web articles
CN111008521B (en) Method, device and computer storage medium for generating wide table
CN111737443B (en) Answer text processing method and device and key text determining method
CN110851675B (en) Data extraction method, device and medium
CN112966081A (en) Method, device, equipment and storage medium for processing question and answer information
CN110209780A (en) A kind of question template generation method, device, server and storage medium
CN112446812A (en) Block chain based government affair information automatic pushing method and terminal
CN110737432A (en) script aided design method and device based on root list
CN112559112B (en) Interface node positioning method and device
CN116303901A (en) Text clustering-based environment bulletin information extraction method and device
CN111460088A (en) Similar text retrieval method, device and system
CN115423327A (en) Data processing method and device
CN103778218A (en) Cloud computation-based standard information consistency early warning system and method
CN110727850B (en) Network information filtering method, computer readable storage medium and mobile terminal
CN108304467A (en) For matched method between text
CN112328779A (en) Training sample construction method and device, terminal equipment and storage medium
CN111143582A (en) Multimedia resource recommendation method and device for updating associative words in real time through double indexes
CN114153830B (en) Data verification method and device, computer storage medium and electronic equipment
CN117010010B (en) Multi-server cooperation high-security storage method based on blockchain
CN111476037B (en) Text processing method and device, computer equipment and storage medium
CN114610793B (en) Interaction method, system and storage medium based on big data statistical analysis
CN117609175B (en) Configurable industrial control file acquisition and analysis method and system
CN115858350A (en) Program grade judging method and device, storage medium and electronic equipment
CN118035808A (en) News release method, news release device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant