CN111191007A - Article keyword filtering method and device based on block chain and medium - Google Patents

Article keyword filtering method and device based on block chain and medium Download PDF

Info

Publication number
CN111191007A
CN111191007A CN201911398274.XA CN201911398274A CN111191007A CN 111191007 A CN111191007 A CN 111191007A CN 201911398274 A CN201911398274 A CN 201911398274A CN 111191007 A CN111191007 A CN 111191007A
Authority
CN
China
Prior art keywords
keyword
article
network
intelligent contract
network article
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911398274.XA
Other languages
Chinese (zh)
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.)
Shandong Inspur Quality Chain Technology Co Ltd
Original Assignee
Shandong ICity 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 Shandong ICity Information Technology Co., Ltd. filed Critical Shandong ICity Information Technology Co., Ltd.
Priority to CN201911398274.XA priority Critical patent/CN111191007A/en
Publication of CN111191007A publication Critical patent/CN111191007A/en
Pending legal-status Critical Current

Links

Images

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/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • 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/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a method, equipment and a medium for filtering article keywords based on a block chain, which can acquire a network article; determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain; and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.

Description

Article keyword filtering method and device based on block chain and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for filtering article keywords based on a blockchain.
Background
With the continuous development of science and technology and social economy, new media in the current era are rapidly developed, and electronic books and network articles gradually become the main reading modes of people. The positive energy of the network articles is an important influence factor of news quality, and some special words in the articles may have certain negative influence on the articles, thereby influencing the cognitive view of the masses. Therefore, how to filter out some words in the network articles which bring negative influence becomes an important technical problem.
Disclosure of Invention
The embodiment of the specification provides a method, equipment and a medium for filtering article keywords based on a block chain, which are used for solving the following technical problems in the prior art: how to filter out some words in the network articles which bring negative influence.
The embodiment of the specification adopts the following technical scheme:
a keyword filtering method for an article based on a blockchain, the method comprising the following steps:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
Optionally, determining whether the web article meets an execution condition of the keyword intelligent contract, specifically:
screening the network article to determine whether the network article comprises keywords corresponding to preset sensitive information;
and determining that the network article meets the execution condition of the keyword intelligent contract under the condition that the network article comprises the keyword corresponding to the preset sensitive information.
Optionally, the keyword smart contract is for:
determining the number of keywords corresponding to preset sensitive information in the network article;
determining the sensitivity score of the network article according to the number of the keywords based on a preset rule;
wherein, the execution result information comprises the sensitivity score of the network article.
Optionally, the keyword smart contract is for:
determining keywords corresponding to preset sensitive information in the network article;
matching the keywords with replacement words in a replacement word database corresponding to the preset sensitive information;
replacing the keywords in the network articles according to the replacement words matched with the keywords to obtain new network articles;
the new network article does not include keywords corresponding to preset sensitive information, and the execution result information includes the new network article.
Optionally, in a case that the web article does not conform to the keyword smart contract, writing the web article into the blockchain.
Optionally, the preset sensitive information is obtained by performing statistics on a third-party main body;
and the preset sensitive information is written into the block chain.
Optionally, the third party principal comprises at least one of: government, regulatory department, detection agency.
Optionally, before determining whether the web article meets the execution condition of the keyword smart contract, the method further comprises:
and writing the corresponding key word intelligent contract into the block chain.
An article keyword filtering device based on blockchains, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
A non-transitory computer storage medium for blockchain based article keyword filtering, storing computer-executable instructions configured to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: the keywords of the network articles are screened through the intelligent contracts deployed on the block chains, and corresponding execution result information can be obtained through the intelligent contracts. Whether the network articles comprise vocabularies with negative influences or not can be quickly screened, and the network articles with the negative influences can be correspondingly processed based on the intelligent contracts.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flowchart of a keyword filtering method for articles based on block chains according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an article keyword filtering apparatus based on a blockchain according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an article keyword filtering method based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 1, the article keyword filtering method based on a block chain provided in the embodiment of the present specification includes the following steps:
s101, acquiring the network article.
It should be noted that before step S101 is executed, a blockchain platform needs to be built based on a blockchain frame, and the blockchain frame may be any blockchain frame capable of implementing the corresponding function of the embodiment of the present application, for example, bitcoin, etherhouse, Fabric, Corda, and the like. The blockchain platform includes a plurality of blockchain nodes. The block link points may be electronic devices such as personal computers, server computers, tablet computers, mainframe computers, and the like.
S102, determining whether the network article meets the execution condition of the keyword intelligent contract or not based on the keyword intelligent contract deployed on the block chain.
In some embodiments of the present application, determining whether the web article meets an execution condition of the keyword intelligent contract specifically includes:
screening the network article to determine whether the network article comprises keywords corresponding to preset sensitive information;
and determining that the network article meets the execution condition of the keyword intelligent contract under the condition that the network article comprises the keyword corresponding to the preset sensitive information.
The preset sensitive information is obtained by counting the third-party main body. And writing preset sensitive information into the block chain. The third-party principal includes at least one of: government, regulatory department, detection agency.
It should be noted that, in some embodiments of the present application, before step S102, the corresponding keyword smart contract needs to be written into the blockchain.
Intelligent contracts, also known as chaining codes (chaincodes), are an important concept in blockchain (blockchain) technology. The block chain is a distributed account book, is a decentralized database, needs to maintain all nodes in the block chain network collectively, and comprises a plurality of blocks (blocks), each block comprises a plurality of transaction records and also comprises a hash value of the previous block, so that all the blocks are connected in sequence to form the block chain. Smart contracts are event-driven, stateful, running on top of a replicated, shared ledger, and capable of managing data on the ledger. The intelligent contract looks like a piece of ordinary computer-executed program, and the code content of the intelligent contract specifies the rules and logic of the transaction.
S103, under the condition that the network article accords with the execution condition of the keyword intelligent contract, the keyword intelligent contract is executed on the network article, and the execution result information is written into the block chain.
In some embodiments of the present application, the keyword intelligence contracts are used to:
determining the number of keywords corresponding to preset sensitive information in the network article;
determining the sensitivity score of the network article according to the number of the keywords based on a preset rule;
the execution result information comprises sensitivity scores of the network articles.
The sensitivity evaluation can be carried out along with the network articles through the keyword intelligent contract, and the sensitivity evaluation of the network articles is written into the block chain and is difficult to tamper.
In some embodiments of the present application, the keyword intelligence contracts are used to:
determining keywords corresponding to preset sensitive information in the network article;
matching the keywords with replacement words in a replacement word database corresponding to preset sensitive information;
replacing the keywords in the network article according to the replacement words matched with the keywords to obtain a new network article;
the new network article does not include keywords corresponding to the preset sensitive information, and the execution result information includes the new network article.
Through the keyword intelligent contract, keywords corresponding to preset sensitive words can be replaced, a new network article without the keywords is generated, and the new network article is broadcasted.
And S104, writing the network article into the block chain under the condition that the network article does not accord with the intelligent keyword contract.
It should be noted that step S104 may be executed directly after step S102, and is not limited in the embodiment of the present application.
By the scheme, the keywords of the network articles are screened through the intelligent contracts deployed on the block chains, and corresponding execution result information can be obtained through the intelligent contracts. Whether the network articles comprise vocabularies with negative influences or not can be quickly screened, and the network articles with the negative influences can be correspondingly processed based on the intelligent contracts.
Based on the same idea, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the above method.
Fig. 2 is a schematic structural diagram of an article keyword filtering apparatus based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 2, an article keyword filtering apparatus based on a block chain provided in an embodiment of the present specification includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
Some embodiments of the present application provide a non-transitory computer storage medium corresponding to one of the full-factor quality data management of fig. 1, storing computer-executable instructions configured to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A keyword filtering method for an article based on a block chain is characterized by comprising the following steps:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
2. The method according to claim 1, wherein determining whether the web article meets an execution condition of the keyword intelligent contract is specifically:
screening the network article to determine whether the network article comprises keywords corresponding to preset sensitive information;
and determining that the network article meets the execution condition of the keyword intelligent contract under the condition that the network article comprises the keyword corresponding to the preset sensitive information.
3. The method of claim 1, wherein the keyword intelligence contract is configured to:
determining the number of keywords corresponding to preset sensitive information in the network article;
determining the sensitivity score of the network article according to the number of the keywords based on a preset rule;
wherein, the execution result information comprises the sensitivity score of the network article.
4. The method of claim 1, wherein the keyword intelligence contract is configured to:
determining keywords corresponding to preset sensitive information in the network article;
matching the keywords with replacement words in a replacement word database corresponding to the preset sensitive information;
replacing the keywords in the network articles according to the replacement words matched with the keywords to obtain new network articles;
the new network article does not include keywords corresponding to preset sensitive information, and the execution result information includes the new network article.
5. The method of claim 1, wherein the web article is written to the blockchain if the web article does not conform to the keyword smart contract.
6. The method according to claim 2, wherein the preset sensitive information is obtained by a third-party subject in statistics;
and the preset sensitive information is written into the block chain.
7. The method of claim 6, wherein the third-party principal comprises at least one of: government, regulatory department, detection agency.
8. The method of claim 1, wherein prior to determining whether the web article meets an execution condition of the keyword smart contract, the method further comprises:
and writing the corresponding key word intelligent contract into the block chain.
9. An article keyword filtering device based on a blockchain, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
10. A non-transitory computer storage medium storing computer-executable instructions for keyword filtering of articles based on blockchains, the computer-executable instructions configured to:
acquiring a network article;
determining whether the network article meets an execution condition of a keyword intelligent contract based on the keyword intelligent contract deployed on the blockchain;
and under the condition that the network article meets the execution condition of the keyword intelligent contract, executing the keyword intelligent contract on the network article, and writing execution result information into the block chain.
CN201911398274.XA 2019-12-30 2019-12-30 Article keyword filtering method and device based on block chain and medium Pending CN111191007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911398274.XA CN111191007A (en) 2019-12-30 2019-12-30 Article keyword filtering method and device based on block chain and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911398274.XA CN111191007A (en) 2019-12-30 2019-12-30 Article keyword filtering method and device based on block chain and medium

Publications (1)

Publication Number Publication Date
CN111191007A true CN111191007A (en) 2020-05-22

Family

ID=70709703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911398274.XA Pending CN111191007A (en) 2019-12-30 2019-12-30 Article keyword filtering method and device based on block chain and medium

Country Status (1)

Country Link
CN (1) CN111191007A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528101A (en) * 2020-12-22 2021-03-19 杭州趣链科技有限公司 Character string matching method, device, equipment and storage medium
CN112651753A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Intelligent contract generation method and system based on block chain and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528101A (en) * 2020-12-22 2021-03-19 杭州趣链科技有限公司 Character string matching method, device, equipment and storage medium
CN112651753A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Intelligent contract generation method and system based on block chain and electronic equipment

Similar Documents

Publication Publication Date Title
CN106897342B (en) Data verification method and equipment
CN107391532B (en) Data filtering method and device
CN110930578A (en) Voting method, equipment and medium based on block chain
CN111091350A (en) Method, device and equipment for auditing and processing service data and storage medium
CN114004694A (en) Public opinion information-based enterprise risk early warning method, equipment and medium
CN112579623A (en) Method, device, storage medium and equipment for storing data
CN111125115A (en) Data storage method, device and medium based on block chain
CN114138745A (en) Data integration method and device, storage medium and processor
CN111191007A (en) Article keyword filtering method and device based on block chain and medium
CN109947713B (en) Log monitoring method and device
CN107038193B (en) Text information processing method and device
CN108121712B (en) Keyword storage method and device
CN111159192B (en) Big data based data warehousing method and device, storage medium and processor
CN111008849A (en) Block chain-based product sampling detection method and device and medium
CN111046267A (en) Method, device and medium for processing network rumors based on block chains
CN111125087A (en) Data storage method and device
CN110019357B (en) Database query script generation method and device
CN113794727B (en) Threat information feature library generation method, threat information feature library generation device, storage medium and processor
CN115293243A (en) Method, device and equipment for realizing intelligent matching of data assets
CN106776652B (en) Data processing method and device
CN108121719B (en) Method and device for realizing data extraction conversion loading ETL
CN112668302A (en) Method and device for judging false litigation
CN110889709A (en) Brand guarantee method, equipment and medium for wine enterprises based on block chains
CN113687973B (en) Control method, equipment and medium for log dynamic output
CN113220801B (en) Structured data classification method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200824

Address after: Room 1-2301, Building 7, North District, Shandong Design and Creative Industry Park, No. 868 Tangye West Road, Licheng District, Jinan City, Shandong Province, 250102

Applicant after: SHANDONG INSPUR QUALINK TECHNOLOGY Co.,Ltd.

Address before: Room 3110, S01 building, Langchao building, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province 250101

Applicant before: Shandong Aicheng Network Information Technology Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination