CN113590982A - Method, device and equipment for generating verification problem and storage medium - Google Patents

Method, device and equipment for generating verification problem and storage medium Download PDF

Info

Publication number
CN113590982A
CN113590982A CN202110913870.8A CN202110913870A CN113590982A CN 113590982 A CN113590982 A CN 113590982A CN 202110913870 A CN202110913870 A CN 202110913870A CN 113590982 A CN113590982 A CN 113590982A
Authority
CN
China
Prior art keywords
template
information
object set
distance range
question
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
CN202110913870.8A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202110913870.8A priority Critical patent/CN113590982A/en
Publication of CN113590982A publication Critical patent/CN113590982A/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/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/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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/29Geographical information databases
    • 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/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems

Abstract

The invention relates to the field of data analysis and provides a method, a device, equipment and a storage medium for generating a verification problem. The method comprises the following steps: resolving to obtain longitude and latitude information of an input address, searching a first object set within a first distance range of the longitude and latitude information according to the problem information of the problem template, selecting a first target object of the problem template, searching a second object set which is out of the first distance range and within a second distance range corresponding to a central point according to the problem information of the problem template by taking an object except the first target object in the first object set as a center, selecting a second target object of the problem template, filling the target object to an option position of the problem template, generating a target verification problem and feeding back the target verification problem to a user. The invention can generate verification problem according to the address input by the user, thereby accurately verifying the authenticity of the address. The invention also relates to the technical field of block chains, and the target verification problem can be stored in a node of a block chain.

Description

Method, device and equipment for generating verification problem and storage medium
Technical Field
The present invention relates to the field of data analysis, and in particular, to a method, an apparatus, a device, and a storage medium for generating a verification problem.
Background
Currently, in many service scenarios, verification of authenticity of information input by a user is required, for example, verification of address information is required, in the prior art, verification of address information usually judges whether address information input by the user exists in an electronic map to judge authenticity of the address, however, the method can only judge whether the address exists objectively, but cannot judge whether the address is a real address of the user, and how to generate a verification problem according to the address input by the user to verify authenticity of the address becomes a technical problem that needs to be solved urgently by technicians in the field.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a device and a storage medium for generating a verification problem, which aims to generate the verification problem according to an address input by a user so as to verify the authenticity of the address.
In order to achieve the above object, the present invention provides a method for generating a verification problem, the method comprising:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and acquiring longitude and latitude information corresponding to the standard address information;
reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template within a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is out of the first distance range and in a second distance range and corresponds to the problem information in the problem template by taking an object out of a first target object in the first object set as a center, and selecting a second target object of the problem template from the second object set;
and filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding back the target verification question to the user.
Preferably, the analyzing the address information to obtain standard address information includes:
inputting the address information into a preset electronic map, finding out specific position information of the address information in the electronic map, obtaining names of all levels of administrative divisions in an administrative division standard library where the address information is located according to the specific position information, and obtaining standard format address information corresponding to the address information.
Preferably, the problem template includes a first type problem template and/or a second type problem template, and the searching for a first object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the problem template and selecting a first target object of the problem template from the first object set includes:
searching a first type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the first type problem template, acquiring and sequencing the search heat value of each object in the first type object set, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sequencing order; and/or
And searching a second type object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting one object from the second type object set as a first target object of the second type problem template.
Preferably, the method further comprises:
and when the first object set corresponding to the problem information in the problem template in the first distance range is not found by taking the latitude and longitude information as a center, reselecting the problem template from the template library until the first object set corresponding to the problem template is found.
Preferably, the method further comprises:
when a second object set which is out of the first distance range and corresponds to the problem information in the problem template within a second distance range is not found by taking an object out of a first target object in the first object set as a center, searching a second object set which is out of the second distance range and corresponds to the problem information in the problem template within a third distance range;
and when the second object set which is out of the second distance range and is in a third distance range and corresponds to the problem information in the problem template is not found, the problem template is reselected from the template library until the second object set corresponding to the problem template is found.
Preferably, the selecting a second target object of the question template from the second object set includes:
and executing a duplicate removal operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the duplicate removal operation as the second target objects.
Preferably, the method further comprises:
and receiving options selected by the user based on the target verification question, entering a preset service interface for the user to handle subsequent services when the options selected by the user are correct answers, and feeding back preset prompt information to the user when the options selected by the user are wrong answers.
In order to achieve the above object, the present invention also provides a verification problem generation apparatus, including:
an analysis module: the system comprises a server and a server, wherein the server is used for analyzing address information to obtain standard address information and acquiring longitude and latitude information corresponding to the standard address information when the address information input by a user on a preset interface is received;
the first searching module: the system comprises a problem template database, a first object set and a second object set, wherein the problem template database is used for reading a problem template from the preset template database, searching the first object set corresponding to the problem information of the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
the second searching module: the problem template processing method comprises the steps that an object except a first target object in the first object set is used as a center, a second object set which is out of a first distance range and in a second distance range and corresponds to problem information in the problem template is searched, and a second target object of the problem template is selected from the second object set;
a generation module: and the target verification question generating module is used for filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding the target verification question back to the user.
In order to achieve the above object, the present invention also provides an electronic device, including:
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 content of the first and second substances,
the memory stores a program executable by the at least one processor to enable the at least one processor to perform any of the steps of the method of generating a verification problem as described above.
To achieve the above object, the present invention also provides a computer-readable storage medium storing a generation program of a verification problem, which when executed by a processor, implements any of the steps of the generation method of the verification problem as described above.
According to the method, the device, the equipment and the storage medium for generating the verification problem, the latitude and longitude information of the address information input by the user and the problem template are used for searching the peripheral POI (point of interest) or road information, the verification problem is generated according to the searching result and the problem template and is answered by the user, and the authenticity of the address information input by the user can be verified more accurately.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a method for generating a verification problem according to a preferred embodiment of the present invention;
FIG. 2 is a block diagram of a preferred embodiment of a verification problem generation apparatus according to the present invention;
FIG. 3 is a diagram of an electronic device according to a preferred embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a method for generating a verification problem. Referring to fig. 1, a schematic method flow diagram of an embodiment of a method for generating a verification problem according to the present invention is shown. The method may be performed by an electronic device, which may be implemented by software and/or hardware. The generation method of the verification problem comprises the following steps:
step S10: when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and acquiring longitude and latitude information corresponding to the standard address information.
In this embodiment, a preset terminal (e.g., a self-service machine) provides an interactive interface of a related service for a user to handle the service, and in order to prevent information (e.g., address information) input by the user from being false information when the user handles the related service, the information needs to be checked. It can be understood that the practical application scenario of the present solution is not limited to this, and may also be other service scenarios that require checking the authenticity of the address.
The service interaction interface has an editing field for a user to input an address, and when address Information input by the user at the editing field of the interface is received, the address Information is analyzed to obtain longitude and latitude Information corresponding to the address Information, for example, the address Information of the user is converted into longitude and latitude data through a Geographic Information System (GIS).
In one embodiment, the parsing the address information to obtain standard address information includes:
inputting the address information into a preset electronic map, finding out specific position information of the address information in the electronic map, obtaining names of all levels of administrative divisions in an administrative division standard library where the address information is located according to the specific position information, and obtaining standard format address information corresponding to the address information.
Because the address input by the user may be an address with an irregular format, the address information may be standardized, specifically, the text address input by the user is read and input into a preset electronic map, a specific position of the address information in the electronic map is found, names of all levels of administrative divisions in an administrative division standard library where the address is located are obtained according to the position information, names of all levels of administrative divisions where the address is located are obtained, and address standardization is completed to obtain the address information with the standard format. And then, analyzing the standard address information, acquiring longitude and latitude information corresponding to the address information, and specifically, inputting the address information into the electronic map, namely, transmitting the standard address into a geographic information coding interface of the electronic map. And searching the longitude and latitude of the position of the address to obtain the longitude and latitude information of the address input by the user.
Further, the method further comprises: and when the address information is failed to be analyzed, feeding back preset prompt information to the user to remind the user to input the address information again.
Because the address information input by the user may have wrongly written words, the latitude and longitude information of the address cannot be analyzed, when the address information is failed to be analyzed, preset prompting information is fed back to the user, for example, "the address input by the user may be wrong, please re-input the correct address", so as to remind the user to re-input the address information.
Step S20: reading a problem template from a preset template library, searching a first object set corresponding to the problem information in the problem template within a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set.
In this embodiment, after acquiring longitude and latitude information corresponding to the address information of the user, the problem template is randomly read from the template library, and the template library stores relevant problem templates, for example, "what sights are near the address information," "what street is near the address," and the like. The object may include POI information or road information, and according to the question information of the question template, with the longitude and latitude information as a central Point, all POIs and road information corresponding to the longitude and latitude information within a first distance range (for example, within a range of 3 kilometers) are searched, and a Point of Interest (POI) may be a house, a shop, a mailbox, a bus station, or the like in the geographic information system. For example, the question of the question template is "what business circles are around 3 kilometers of the address information you input", and then business circles within 3 kilometers of the address are searched.
Since the POI set searched may include a plurality of types of POIs, for example, businesses, industries, restaurants, utilities, etc., the road searched may also include a plurality of roads. Therefore, any one object can be randomly selected from all the searched POIs and road names as the first target object, and the first target object is used as the correct option corresponding to the question template in the embodiment.
In one embodiment, the problem template includes a first type problem template and/or a second type problem template, the searching a first object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the problem template, and selecting a first target object of the problem template from the first object set includes:
searching a first type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the first type problem template, acquiring and sequencing the search heat value of each object in the first type object set, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sequencing order; and/or
And searching a second type object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting one object from the second type object set as a first target object of the second type problem template.
The template library comprises a first type question template and a second type question template, wherein the question corresponding to the first type question template can be a question which a user must answer, and the second type question template can be a question which the user does not have to answer. The question that the user has to answer may be street information, for example, when the question of the first type question template is "what street is in the vicinity of the address information you input? If yes, all street information corresponding to the longitude and latitude information within a first distance range (within 3 kilometers) is searched, searching heat values of all streets in the corresponding street information are obtained and ranked, and the street with the largest heat value is selected as a correct option of the first type problem template.
The question that the user does not have to answer may be school information, bank information, etc., for example, when the question of the second type question template is "what bank is near the address information you input? If yes, all banks corresponding to the latitude and longitude information within the first distance range are searched according to the problem information of the second type problem template, and one bank is randomly selected from the searched banks as a correct option of the second type problem template.
In one embodiment, the method further comprises:
and when the first object set corresponding to the problem information in the problem template in the first distance range is not found by taking the latitude and longitude information as a center, reselecting the problem template from the template library until the first object set corresponding to the problem template is found.
Since the problem randomly read from the template library may not find out the related object at the distance corresponding to the latitude and longitude information, for example, there is no sight spot in the residential area near the latitude and longitude information, and when the problem is "what sight spot is near the address information", the problem template needs to be reselected from the template library until the first object set corresponding to the problem template is found.
Step S30: and searching a second object set which is out of the first distance range and in a second distance range and corresponds to the problem information in the problem template by taking an object out of the first object set except the first target object as a center, and selecting a second target object of the problem template from the second object set.
In this embodiment, after selecting the first target object as the correct option corresponding to the problem template, the error option corresponding to the problem template needs to be found, specifically, any object in the first object set except the first target object is taken as a central point, and a second object set outside a first distance range (3 km away) and within a second distance range (e.g., 6 km away) corresponding to the central point is found according to the problem information of the problem template. For example, the question template has a question of "what business circles are 3 kilometers around address information you input? If yes, searching the business circles within the range of 6 kilometers of the address, deleting the business circles within the range of 3 kilometers of the central point from the searched result to obtain a second object set, wherein the second object set is the business circle set within 6 kilometers of the first object within 3 kilometers of the first object, and randomly selecting a preset number (3) of second object objects from the business circle set to serve as error options corresponding to the problem template. Further, the second distance may be an integer multiple of the first distance, and the found second object set may be stored in a preset database.
In one embodiment, the method further comprises:
when a second object set which is out of the first distance range and corresponds to the problem information in the problem template within a second distance range is not found by taking an object out of a first target object in the first object set as a center, searching a second object set which is out of the second distance range and corresponds to the problem information in the problem template within a third distance range;
and when the second object set which is out of the second distance range and is in a third distance range and corresponds to the problem information in the problem template is not found, the problem template is reselected from the template library until the second object set corresponding to the problem template is found.
And when the second object is not found in the second distance range and out of the first distance range corresponding to the central point, continuing to expand the search point outwards, searching for a second object set which is out of the second distance range and in the third distance range corresponding to the central point, and reading the problem from the template library again if the second object set is not found, so that the excessive time consumption is avoided.
In one embodiment, said selecting a second target object of said question template from said second set of objects comprises:
and executing a duplicate removal operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the duplicate removal operation as the second target objects.
Since there may be duplicate objects in the second set of objects found, for example, the question of the question template "what bank is 3 km near the address information you enter? The found second object set may have a plurality of identical banks, and therefore, a deduplication operation needs to be performed on repeated objects, specifically, a cosine similarity algorithm may be used to calculate a similarity between every two objects, if the similarity is greater than a preset threshold (e.g., 90%), only one object of the identical objects needs to be retained, and then a preset number (3) of objects are randomly selected from the second object set after deduplication is performed as a second target object.
Step S40: and filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding back the target verification question to the user.
In this embodiment, the first target object corresponding to the correct option and the second target object corresponding to the incorrect option are filled to the option position corresponding to the problem template to obtain the target verification problem and fed back to the user, so that the address information input by the user is checked according to the option selected by the user to determine whether the information input by the user is false address information or incorrect address information.
In one embodiment, the method further comprises:
and receiving options selected by the user based on the target verification question, entering a preset service interface for the user to handle subsequent services when the options selected by the user are correct answers, and feeding back preset prompt information to the user when the options selected by the user are wrong answers.
When the option selected by the user is a correct answer, the user is allowed to handle subsequent services, when the option selected by the user is an incorrect answer, preset prompt information is fed back to the user, the prompt information can be that the option selected by the user does not accord with the address input by the user, and if the error rate of the user answer is higher, the address filled by the user is likely to be an unreal address.
Referring to fig. 2, a functional block diagram of the verification problem generation apparatus 100 according to the present invention is shown.
The apparatus 100 for generating a verification problem according to the present invention may be installed in an electronic device. According to the implemented functions, the apparatus 100 for generating a verification problem may include a parsing module 110, a first lookup module 120, a second lookup module 130, and a generating module 140. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
an analysis module: the system comprises a server and a server, wherein the server is used for analyzing address information to obtain standard address information and acquiring longitude and latitude information corresponding to the standard address information when the address information input by a user on a preset interface is received;
the first searching module: the system comprises a problem template database, a first object set and a second object set, wherein the problem template database is used for reading a problem template from the preset template database, searching the first object set corresponding to the problem information of the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
the second searching module: the problem template processing method comprises the steps that an object except a first target object in the first object set is used as a center, a second object set which is out of a first distance range and in a second distance range and corresponds to problem information in the problem template is searched, and a second target object of the problem template is selected from the second object set;
a generation module: and the target verification question generating module is used for filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding the target verification question back to the user.
In one embodiment, the parsing the address information to obtain standard address information includes:
inputting the address information into a preset electronic map, finding out specific position information of the address information in the electronic map, obtaining names of all levels of administrative divisions in an administrative division standard library where the address information is located according to the specific position information, and obtaining standard format address information corresponding to the address information.
In one embodiment, the problem template includes a first type problem template and/or a second type problem template, the searching a first object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the problem template, and selecting a first target object of the problem template from the first object set includes:
searching a first type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the first type problem template, acquiring and sequencing the search heat value of each object in the first type object set, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sequencing order; and/or
And searching a second type object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting one object from the second type object set as a first target object of the second type problem template.
In one embodiment, the first lookup module 120 is further configured to:
and when the first object set corresponding to the problem information in the problem template in the first distance range is not found by taking the latitude and longitude information as a center, reselecting the problem template from the template library until the first object set corresponding to the problem template is found.
In one embodiment, the second lookup module 130 is further configured to:
when a second object set which is out of the first distance range and corresponds to the problem information in the problem template within a second distance range is not found by taking an object out of a first target object in the first object set as a center, searching a second object set which is out of the second distance range and corresponds to the problem information in the problem template within a third distance range;
and when the second object set which is out of the second distance range and is in a third distance range and corresponds to the problem information in the problem template is not found, the problem template is reselected from the template library until the second object set corresponding to the problem template is found.
In one embodiment, said selecting a second target object of said question template from said second set of objects comprises:
and executing a duplicate removal operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the duplicate removal operation as the second target objects.
In one embodiment, the generation module 140 is further configured to:
and receiving options selected by the user based on the target verification question, entering a preset service interface for the user to handle subsequent services when the options selected by the user are correct answers, and feeding back preset prompt information to the user when the options selected by the user are wrong answers.
Fig. 3 is a schematic diagram of an electronic device 1 according to a preferred embodiment of the invention.
The electronic device 1 includes but is not limited to: memory 11, processor 12, display 13, and network interface 14. The electronic device 1 is connected to a network through a network interface 14 to obtain raw data. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System for Mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or a communication network.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped with the electronic device 1. Of course, the memory 11 may also comprise both an internal memory unit and an external memory device of the electronic device 1. In this embodiment, the memory 11 is generally used for storing an operating system installed in the electronic device 1 and various types of application software, such as a program code of the generation program 10 for the verification problem. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically used for controlling the overall operation of the electronic device 1, such as performing data interaction or communication related control and processing. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, the program code of the generation program 10 for running the verification problem.
The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, e.g. displaying the results of data statistics.
The network interface 14 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), the network interface 14 typically being used for establishing a communication connection between the electronic device 1 and other electronic devices.
Fig. 3 only shows the electronic device 1 with components 11-14 and the generation program 10 of the verification problem, but it is to be understood that not all shown components are required to be implemented, and that more or fewer components may be implemented instead.
Optionally, the electronic device 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
The electronic device 1 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the above embodiment, the processor 12, when executing the generation program 10 of the verification problem stored in the memory 11, may implement the following steps:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and acquiring longitude and latitude information corresponding to the standard address information;
reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template within a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is out of the first distance range and in a second distance range and corresponds to the problem information in the problem template by taking an object out of a first target object in the first object set as a center, and selecting a second target object of the problem template from the second object set;
and filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding back the target verification question to the user.
The storage device may be the memory 11 of the electronic device 1, or may be another storage device communicatively connected to the electronic device 1.
For detailed description of the above steps, please refer to the functional block diagram of the embodiment of the apparatus 100 for generating a verification problem in fig. 2 and the flowchart of the embodiment of the method for generating a verification problem in fig. 1.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be non-volatile or volatile. The computer readable storage medium may be any one or any combination of hard disks, multimedia cards, SD cards, flash memory cards, SMCs, Read Only Memories (ROMs), Erasable Programmable Read Only Memories (EPROMs), portable compact disc read only memories (CD-ROMs), USB memories, etc. The computer-readable storage medium includes a storage data area storing data created according to use of a blockchain node and a storage program area storing a generation program 10 of a verification problem, and the generation program 10 of the verification problem realizes the following operations when executed by a processor:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and acquiring longitude and latitude information corresponding to the standard address information;
reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template within a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is out of the first distance range and in a second distance range and corresponds to the problem information in the problem template by taking an object out of a first target object in the first object set as a center, and selecting a second target object of the problem template from the second object set;
and filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding back the target verification question to the user.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the method for generating the verification problem, and will not be described herein again.
In another embodiment, in order to further ensure the privacy and security of all the data, all the data may be stored in a node of a block chain. Such as the first set of objects and the target verification problem, may be stored in block chain nodes.
It should be noted that the blockchain in the present invention is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, an electronic device, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for generating a verification question, the method comprising:
when address information input by a user on a preset interface is received, analyzing the address information to obtain standard address information, and acquiring longitude and latitude information corresponding to the standard address information;
reading a problem template from a preset template library, searching a first object set corresponding to problem information in the problem template within a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
searching a second object set which is out of the first distance range and in a second distance range and corresponds to the problem information in the problem template by taking an object out of a first target object in the first object set as a center, and selecting a second target object of the problem template from the second object set;
and filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding back the target verification question to the user.
2. The method for generating a verification problem according to claim 1, wherein the parsing the address information to obtain standard address information comprises:
inputting the address information into a preset electronic map, finding out specific position information of the address information in the electronic map, obtaining names of all levels of administrative divisions in an administrative division standard library where the address information is located according to the specific position information, and obtaining standard format address information corresponding to the address information.
3. The method for generating a verification question according to claim 1, wherein the question template includes a first type question template and/or a second type question template, and the searching for a first object set corresponding to the latitude and longitude information within a first distance range according to the question information of the question template and selecting a first target object of the question template from the first object set includes:
searching a first type object set corresponding to the longitude and latitude information within a first distance range according to the problem information of the first type problem template, acquiring and sequencing the search heat value of each object in the first type object set, and selecting an object with the largest search heat value as a first target object of the first type problem template according to the sequencing order; and/or
And searching a second type object set corresponding to the latitude and longitude information within a first distance range according to the problem information of the second type problem template, and randomly selecting one object from the second type object set as a first target object of the second type problem template.
4. The method of generating a verification problem according to claim 1, further comprising:
and when the first object set corresponding to the problem information in the problem template in the first distance range is not found by taking the latitude and longitude information as a center, reselecting the problem template from the template library until the first object set corresponding to the problem template is found.
5. The method of generating a verification problem according to claim 1, further comprising:
when a second object set which is out of the first distance range and corresponds to the problem information in the problem template within a second distance range is not found by taking an object out of a first target object in the first object set as a center, searching a second object set which is out of the second distance range and corresponds to the problem information in the problem template within a third distance range;
and when the second object set which is out of the second distance range and is in a third distance range and corresponds to the problem information in the problem template is not found, the problem template is reselected from the template library until the second object set corresponding to the problem template is found.
6. The method of generating a verification question as claimed in claim 1, wherein said selecting a second target object of said question template from said second set of objects comprises:
and executing a duplicate removal operation on each object of the second object set based on a similarity algorithm, and randomly selecting a preset number of objects from the second object set after the duplicate removal operation as the second target objects.
7. The method of generating a verification problem according to any one of claims 1 to 6, characterized in that the method further comprises:
and receiving options selected by the user based on the target verification question, entering a preset service interface for the user to handle subsequent services when the options selected by the user are correct answers, and feeding back preset prompt information to the user when the options selected by the user are wrong answers.
8. An apparatus for generating a verification question, the apparatus comprising:
an analysis module: the system comprises a server and a server, wherein the server is used for analyzing address information to obtain standard address information and acquiring longitude and latitude information corresponding to the standard address information when the address information input by a user on a preset interface is received;
the first searching module: the system comprises a problem template database, a first object set and a second object set, wherein the problem template database is used for reading a problem template from the preset template database, searching the first object set corresponding to the problem information of the problem template in a first distance range by taking the longitude and latitude information as a center, and selecting a first target object of the problem template from the first object set;
the second searching module: the problem template processing method comprises the steps that an object except a first target object in the first object set is used as a center, a second object set which is out of a first distance range and in a second distance range and corresponds to problem information in the problem template is searched, and a second target object of the problem template is selected from the second object set;
a generation module: and the target verification question generating module is used for filling the first target object and the second target object to the option position corresponding to the question template, generating a target verification question and feeding the target verification question back to the user.
9. An electronic device, characterized in that the electronic device comprises:
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 content of the first and second substances,
the memory stores a program executable by the at least one processor to enable the at least one processor to perform the method of generating a verification problem according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a generation program of a verification problem, which when executed by a processor, implements the steps of the generation method of the verification problem according to any one of claims 1 to 7.
CN202110913870.8A 2021-08-10 2021-08-10 Method, device and equipment for generating verification problem and storage medium Pending CN113590982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110913870.8A CN113590982A (en) 2021-08-10 2021-08-10 Method, device and equipment for generating verification problem and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110913870.8A CN113590982A (en) 2021-08-10 2021-08-10 Method, device and equipment for generating verification problem and storage medium

Publications (1)

Publication Number Publication Date
CN113590982A true CN113590982A (en) 2021-11-02

Family

ID=78256920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110913870.8A Pending CN113590982A (en) 2021-08-10 2021-08-10 Method, device and equipment for generating verification problem and storage medium

Country Status (1)

Country Link
CN (1) CN113590982A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168880A1 (en) * 2006-01-19 2007-07-19 Hoberman Gary A Method and system for question tracking and information presentation
CN105095205A (en) * 2014-04-17 2015-11-25 阿里巴巴集团控股有限公司 Method and device for address location
US20150339574A1 (en) * 2014-05-21 2015-11-26 International Business Machines Corporation Extensible Validation Framework for Question and Answer Systems
CN108763345A (en) * 2018-05-14 2018-11-06 平安好房(上海)电子商务有限公司 Method of calibration, user equipment, storage medium and the device of cell longitude and latitude
CN109815313A (en) * 2018-12-28 2019-05-28 考拉征信服务有限公司 Personalization technology survey data processing method, device, equipment and storage medium
CN112347792A (en) * 2020-11-20 2021-02-09 深圳季连科技有限公司 Anti-fraud verification identification method and system based on relationship extraction
CN112966076A (en) * 2021-02-25 2021-06-15 中国平安人寿保险股份有限公司 Intelligent question and answer generating method and device, computer equipment and storage medium
CN113221529A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Event investigation method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168880A1 (en) * 2006-01-19 2007-07-19 Hoberman Gary A Method and system for question tracking and information presentation
CN105095205A (en) * 2014-04-17 2015-11-25 阿里巴巴集团控股有限公司 Method and device for address location
US20150339574A1 (en) * 2014-05-21 2015-11-26 International Business Machines Corporation Extensible Validation Framework for Question and Answer Systems
CN108763345A (en) * 2018-05-14 2018-11-06 平安好房(上海)电子商务有限公司 Method of calibration, user equipment, storage medium and the device of cell longitude and latitude
CN109815313A (en) * 2018-12-28 2019-05-28 考拉征信服务有限公司 Personalization technology survey data processing method, device, equipment and storage medium
CN112347792A (en) * 2020-11-20 2021-02-09 深圳季连科技有限公司 Anti-fraud verification identification method and system based on relationship extraction
CN112966076A (en) * 2021-02-25 2021-06-15 中国平安人寿保险股份有限公司 Intelligent question and answer generating method and device, computer equipment and storage medium
CN113221529A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Event investigation method and device

Similar Documents

Publication Publication Date Title
CN107656913B (en) Map interest point address extraction method, map interest point address extraction device, server and storage medium
ES2808954T3 (en) Procedure and device for use in risk management of application information
CN110347777B (en) Point of interest (POI) classification method, device, server and storage medium
CN104866542A (en) POI data verification method and device
CN106156279B (en) Address similarity identification method and system based on longitude and latitude and text comparison
CN109493087B (en) Method for checking real estate registration information based on two-dimensional code, computer device and computer readable storage medium
WO2006020088B1 (en) Location codes for destination routing
CN110674360B (en) Tracing method and system for data
CN111159183B (en) Report generation method, electronic device and computer readable storage medium
CN110909110B (en) Address standardization method and device, storage medium and processor
CN105187399A (en) Resource processing method and device
CN111274487A (en) House source information recommendation method and device
CN104572805A (en) Apparatus and method for processing map data by real-time index creation and system thereof
CN107247716B (en) Method and device for increasing electronic eye information, navigation chip and server
CN110852620B (en) Logistics order processing method and device, electronic equipment and storage medium
CN108449778A (en) A kind of wireless access point methods of exhibiting and device and terminal device
WO2018116154A1 (en) System and method for providing a unique postal digital address code for a location
CN113590982A (en) Method, device and equipment for generating verification problem and storage medium
CN107133163A (en) A kind of method and apparatus for verifying description class API
CN107084728B (en) Method and device for detecting digital map
CN114661920A (en) Address code correlation method, service data analysis method and corresponding device
CN110688995B (en) Map query processing method, computer-readable storage medium and mobile terminal
CN107038007B (en) Information display method and device
CN111859464A (en) Data verification method, device and equipment and computer readable storage medium
CN105786922B (en) Method and device for determining missing electronic map data

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