CN112836472A - Address annotation method, device, equipment and storage medium - Google Patents
Address annotation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112836472A CN112836472A CN202110190531.1A CN202110190531A CN112836472A CN 112836472 A CN112836472 A CN 112836472A CN 202110190531 A CN202110190531 A CN 202110190531A CN 112836472 A CN112836472 A CN 112836472A
- Authority
- CN
- China
- Prior art keywords
- similarity
- target
- information
- position information
- threshold
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/117—Tagging; Marking up; Designating a block; Setting of attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides an address annotation method, an address annotation device, address annotation equipment and a storage medium, wherein the method comprises the following steps: after the position information to be processed is obtained, target information of the position information is obtained by calling an application program interface of the electronic map, wherein the target information comprises a target position and a target information point; determining the target similarity of the position information and the target information according to the position information, the target position and the target information point; counting the proportion of the number of the target similarity in each similarity interval, and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal; adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or retaining the position information; by the method, labor cost is reduced.
Description
Technical Field
The application relates to the field of address matching, in particular to an address annotation method, an address annotation device, address annotation equipment and a storage medium.
Background
With the rapid development of social economy, the competitiveness of various industries is continuously enhanced, many shops, companies, hotels, factories and the like frequently change places or operate new branch shops or branch companies in other places for better development, and for some professional institutions needing an offline address database, frequent address change needs to frequently update data in the offline address database.
In the prior art, the offline address is usually checked manually, and then processed according to the checking result to update the offline database, and as the number of addresses in the address database continuously increases, a large number of incomplete and inaccurate addresses exist in the database, the workload of manual checking is large, and the labor cost is high.
Disclosure of Invention
In view of this, embodiments of the present application provide an address annotation method, apparatus, device, and storage medium to reduce labor cost.
Mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides an address method, where the method includes:
after position information to be processed is obtained, target information of the position information is obtained by calling an application program interface of an electronic map, wherein the target information comprises a target position and a target information point;
determining the target similarity of the position information and the target information according to the position information, the target position and the target information point;
counting the proportion of the number of the target similarity in each similarity interval, and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal;
and adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or reserving the position information.
Optionally, the obtaining the target information of the location information by calling an application program interface of the electronic map includes:
inquiring the position information in the electronic map to obtain longitude and latitude coordinates of the position information;
and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
Optionally, the determining the target similarity between the position information and the target information according to the position information, the target position, and the target information point includes:
calculating a first similarity between the position information and the target position;
calculating a second similarity between the position information and the target information point;
selecting a greater similarity of the first similarity and the second similarity as the target similarity.
Optionally, the counting the ratio of the number of the target similarities in each similarity interval, and determining the similarity threshold according to the statistical result includes:
counting the ratio of the number of the target similarities in each similarity interval;
selecting candidate similarity intervals from the similarity intervals, wherein the ratio of the number of the target similarities in the candidate similarity intervals is greater than or equal to a ratio threshold value;
selecting a largest endpoint value from the smaller endpoint values of the candidate similarity intervals as the similarity threshold.
Optionally, the adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold includes:
if the target similarity is greater than or equal to the similarity threshold, adding suggestion prompt information for reserving the position information to the position information corresponding to the target similarity;
and if the target similarity is smaller than the similarity threshold, adding suggestion prompt information for deleting the position information to the position information corresponding to the target similarity.
In a second aspect, an embodiment of the present application provides an address annotation device, where the device includes:
the system comprises an obtaining module, a processing module and a processing module, wherein the obtaining module is used for obtaining target information of position information by calling an application program interface of an electronic map after the position information to be processed is obtained, and the target information comprises a target position and a target information point;
the determining module is used for determining the target similarity of the position information and the target information according to the position information, the target position and the target information point;
the statistical module is used for counting the proportion of the number of the target similarity in each similarity interval and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal;
and the execution module is used for adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or reserving the position information.
Optionally, when the obtaining module is configured to obtain the target information of the location information by calling an application program interface of the electronic map, the obtaining module includes:
inquiring the position information in the electronic map to obtain longitude and latitude coordinates of the position information;
and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
Optionally, when the determining module is configured to determine the target similarity between the location information and the target information according to the location information, the target location, and the target information point, the determining module includes:
calculating a first similarity between the position information and the target position;
calculating a second similarity between the position information and the target information point;
selecting a greater similarity of the first similarity and the second similarity as the target similarity.
Optionally, the configuration of the statistics module, when configured to count the proportion of the number of the target similarities located in each similarity interval, and determine the similarity threshold according to the statistical result, includes:
counting the ratio of the number of the target similarities in each similarity interval;
selecting candidate similarity intervals from the similarity intervals, wherein the ratio of the number of the target similarities in the candidate similarity intervals is greater than or equal to a ratio threshold value;
selecting a largest endpoint value from the smaller endpoint values of the candidate similarity intervals as the similarity threshold.
Optionally, when the configuration of the execution module is configured to add an annotation to the location information corresponding to the target similarity by comparing the target similarity with the similarity threshold, the configuration includes:
if the target similarity is greater than or equal to the similarity threshold, adding suggestion prompt information for reserving the position information to the position information corresponding to the target similarity;
and if the target similarity is smaller than the similarity threshold, adding suggestion prompt information for deleting the position information to the position information corresponding to the target similarity.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the address annotation method according to any one of the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the address annotation method according to any one of the first aspect.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the address annotation method provided by the embodiment of the application calls an application program interface of an electronic map after position information to be processed is obtained, target information corresponding to the position information is obtained, the target information represents space geographic address information of the position information, then the target similarity between the position information and the target information is determined according to the position information and target positions and target information points in the target information, then a similarity threshold value is determined by counting the proportion of the number of the target similarities in each similarity interval, and finally annotation including suggestion prompt information is added to the position information corresponding to the target similarity by comparing the target similarities with the similarity threshold value, so that a more accurate and more visual judgment basis is provided for a worker to process the position information to be processed, and the method is favorable for saving manual workload, the labor cost is reduced.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of an address annotation method according to an embodiment of the present application;
fig. 2 is a statistical histogram of target similarity distribution according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another address annotation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another address annotation method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another address annotation method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an address annotation device according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The application relates to address matching, wherein the address matching refers to a process of establishing a corresponding relation between a text address expressed by characters and a geographical position coordinate of a space where the text address is located, a matching object is searched for the text address according to specific steps, after the text address is standardized, the text address is searched through a server to search for a potential position of the text address, and then the most accurate geographical position is matched for the text address according to the closeness degree.
The embodiment of the application provides an address annotation method, an address annotation device, address annotation equipment and a storage medium, and is described by the embodiment below.
Example one
Fig. 1 is a schematic flowchart of an address annotation method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S101: after the position information to be processed is obtained, target information of the position information is obtained by calling an application program interface of the electronic map, and the target information comprises a target position and a target information point.
Specifically, the location information to be processed refers to an address described by using a text, for example, "east-Ping of airport street in sunny area in beijing city", the target information refers to geographical location information of a space, the target information includes a target location, a target information point, and a function type of the target information point, the target location represents hierarchical information of a location, for example, a target location corresponding to the location information of "east-Ping-Li 5 building north side of capital airport dormitory area" of the location information of "sunny airport street in beijing city", the target information point represents an entity in the location, for example, a target information point corresponding to the location information of "east-Ping-Li south road of capital airport street comprehensive treatment work center" of airport street south-east-Li community ", in order to check whether the location information to be processed is accurate, the target information of the location information needs to be acquired, in order to acquire accurate target information on the electronic map, an application program interface of the electronic map may be called using a script file.
It should be noted that after obtaining the location information to be processed, before calling the application program interface of the electronic map, in order to obtain more accurate target information, the location information to be processed may be preprocessed according to the standard address information specification, where the preprocessing includes deleting redundant information, changing error information, removing punctuation marks, and performing letter case conversion, for example: the position information 'around the street Lugou bridge restaurant of Pingcheng city' in the sunny region of Beijing city 'is changed into' around the street Lugou bridge restaurant of Pingcheng city 'in the Tokyo region of Beijing city', wherein the wrong information 'around the sunny region' in the original position information is modified, and the redundant information 'around' is deleted.
It should be noted again that, the manner and timing for obtaining the target information may be set according to the actual situation, for example, after obtaining a piece of to-be-processed location information, the target information of the location information may be directly obtained; the target information corresponding to each piece of location information may also be obtained in batch after all pieces of location information to be processed are obtained, and the specific obtaining manner and obtaining time are not specifically limited herein.
Step S102: and determining the target similarity of the position information and the target information according to the position information, the target position and the target information point.
Step S103: and counting the ratio of the number of the target similarity in each similarity interval, and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal.
As shown in fig. 2, the abscissa of the histogram represents a similarity interval, for example, "> 0.1" refers to an interval [0.1,1], the similarity intervals are arranged in descending order, the maximum value of each similarity interval is 1, and the size of the adjacent similarity intervals is different by 0.1; the vertical coordinate of the histogram represents the ratio of the number of target similarities, and the vertical stripes with unequal heights in the histogram represent the ratio of the number of target similarities in each similarity interval.
Step S104: and adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or reserving the position information.
Specifically, after the similarity threshold is determined, in order to provide a more intuitive judgment basis for the user to judge the availability of the location information, the target similarity is compared with the similarity threshold, so as to add annotations to the location information corresponding to the target similarity, where the suggestion prompt refers to provide suggested prompt for the user, for example, the content of the annotation may be "suggestion deletion" or "suggestion reservation".
The way of adding the annotation may be set according to actual needs, for example, a straight line may be drawn below the position information, and the content of the annotation may be added below the straight line, or a bracket may be added after the position information, the content in the bracket is the content of the annotation, and the specific determination method is not specifically limited herein.
By the method, after the position information to be processed is acquired, the application program interface of the electronic map is called to acquire the target information corresponding to the position information, the target information represents the space geographic address information of the position information, then the target similarity of the position information and the target information is determined according to the position information and the target position and the target information point in the target information, then the proportion of the number of the target similarity in each similarity interval is counted, determining a similarity threshold, finally adding annotations including suggestion prompt information to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, the method provides more accurate and more visual judgment basis for the staff to process the position information to be processed, is favorable for saving the manual workload and reducing the labor cost.
In a possible implementation, fig. 3 is a schematic flow chart of another address annotation method provided in the first embodiment of the present application, and as shown in fig. 3, when step S101 is executed, the following steps may be implemented:
step S301: and inquiring the position information in the electronic map to obtain the longitude and latitude coordinates of the position information.
Step S302: and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
Specifically, after the position information is obtained, in order to obtain target information corresponding to the position information, the position information needs to be queried in an electronic map, a longitude and latitude coordinate of the position information in the electronic map is obtained, for example, the longitude and latitude coordinate of the position information "beijing city sunny airport street east hei" in the electronic map is "116.592832440.04642621", and then target information used for representing the longitude and latitude coordinate is generated in the electronic map according to the longitude and latitude coordinate, so that the target information is obtained.
In a possible implementation, fig. 4 is a schematic flow chart of another address annotation method provided in the first embodiment of the present application, and as shown in fig. 4, when step S102 is executed, the following steps may be implemented:
step S401: a first similarity between the position information and the target position is calculated.
Step S402: and calculating a second similarity between the position information and the target information point.
Step S403: selecting a greater similarity of the first similarity and the second similarity as the target similarity.
Specifically, the first similarity refers to an overall character similarity between two text segments of a text of the position information and a text of the target position, the second similarity refers to an overall character similarity between two text segments of a text of the position information and a text of the target information point, after the target position and the target information point corresponding to the position information are obtained, the similarity between the text of the position information and the text of the target position is calculated, so as to obtain the first similarity between the position information and the target position, and then the similarity between the text of the position information and the text of the target information point is calculated, so as to obtain the second similarity between the position information and the target information point, because the greater the similarity is, the more reliable the position information corresponding to the similarity is, the greater the similarity between the first similarity and the second similarity is selected as the target similarity, by the method, more accurate target similarity between the position information and the target information can be obtained.
The method for calculating the similarity can be set according to actual needs, for example, the cosine similarity between word vector embeddings of two texts can be calculated according to the average value of all word vector embeddings in the texts; the explicit distance between two texts may also be calculated based on the word vector, and the specific determination method is not specifically limited herein.
In a possible implementation, fig. 5 is a schematic flow chart of another address annotation method provided in the first embodiment of the present application, and as shown in fig. 5, when step S103 is executed, the following steps are implemented:
step S501: and counting the ratio of the number of the target similarities in each similarity interval.
Step S502: and selecting candidate similarity intervals from the similarity intervals, wherein the ratio of the number of the target similarities in the candidate similarity intervals is greater than or equal to a ratio threshold value.
Step S503: selecting a largest endpoint value from the smaller endpoint values of the candidate similarity intervals as the similarity threshold.
Specifically, a ratio threshold is preset according to the application scene requirement of the address annotation method, a similarity interval corresponding to the ratio larger than the ratio threshold is found in the statistical result of the ratio of the number of the target similarities in each similarity interval, the similarity interval is selected as a candidate similarity interval, then the smaller end point value of the two end point values of each candidate similarity interval is found, the largest end point value is selected from the smaller end point values as the similarity threshold, and the position information corresponding to the similarity threshold exactly conforms to the application scene requirement.
For the determination manner of the similarity threshold, it may be set according to actual needs, for example, the similarity threshold is determined in the manner of the histogram, fig. 2 is a statistical histogram of the target similarity distribution provided in the first embodiment of the present application, as shown in fig. 2, if the ratio threshold preset according to the application scene requirements is 85%, candidate similarity intervals can be found according to the histogram as [0,1], [0.1,1], [0.2,1], [0.3,1], [0.4,1], [0.5,1], the smaller end points of each similarity interval are 0, 0.1, 0.2, 0.3, 0.4, 0.5, respectively, where the largest 0.5 among the end points is selected as the similarity threshold, and the similarity threshold indicates that the similarity between more than 85% of the location information and the target information corresponding to the location information is greater than or equal to 0.5; if the duty ratio threshold value is set to 93%, the determined duty ratio threshold value is 0.3; the specific determination method is not particularly limited.
By the method, the determined similarity threshold values suitable for the application scenes are different according to different duty ratio threshold values corresponding to different application scene requirements, and the availability of the address annotation is improved.
In one possible embodiment, when step S104 is executed, the following two cases are included:
the first condition is as follows: and if the target similarity is greater than or equal to the similarity threshold, adding suggestion prompt information for reserving the position information to the position information corresponding to the target similarity.
Case two: and if the target similarity is smaller than the similarity threshold, adding suggestion prompt information for deleting the position information to the position information corresponding to the target similarity.
Specifically, after the similarity threshold is determined, in order to accurately know whether the position information is reliable, the target similarity corresponding to the position information needs to be compared with the similarity threshold, and if the target similarity is greater than or equal to the similarity threshold, it is indicated that the position information corresponding to the target similarity is spectrum-dependent, suggestion prompt information for retaining the position information needs to be added to the position information, for example, a bracket is added behind the position information, and the content in the bracket is "suggestion retention"; on the contrary, if the target similarity is smaller than the similarity threshold, it is indicated that the position information corresponding to the target similarity does not depend on the spectrum, and suggestion information for deleting the position information needs to be added to the position information, for example, a bracket is added after the position information, and the content in the bracket is "suggestion deletion".
Example two
Fig. 6 is a schematic structural diagram of an address annotating device provided in the second embodiment of the present application, and as shown in fig. 6, the address annotating device includes:
an obtaining module 601, configured to obtain target information of position information by calling an application program interface of an electronic map after obtaining the position information to be processed, where the target information includes a target position and a target information point;
a determining module 602, configured to determine, according to the location information, the target location, and the target information point, a target similarity between the location information and the target information;
a counting module 603, configured to count a ratio of the number of the target similarities in each similarity interval, and determine a similarity threshold according to a counting result, where a numerical range of each similarity interval decreases sequentially according to a preset size, and maximum values of each similarity interval are equal;
an executing module 604, configured to add an annotation to the location information corresponding to the target similarity by comparing the target similarity with the similarity threshold, where the annotation includes a suggestion prompt information for deleting or retaining the location information.
In a possible embodiment, the obtaining module 601, when configured to obtain the target information of the location information by calling an application program interface of the electronic map, includes:
inquiring the position information in the electronic map to obtain longitude and latitude coordinates of the position information;
and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
In a possible embodiment, the determining module 602, when configured to determine the target similarity between the location information and the target information according to the location information, the target location and the target information point, includes:
calculating a first similarity between the position information and the target position;
calculating a second similarity between the position information and the target information point;
selecting a greater similarity of the first similarity and the second similarity as the target similarity.
In a possible embodiment, the configuration of the statistic module 603, when the module is configured to count the percentage of the number of the target similarities located in each similarity interval, and determine the similarity threshold according to the statistical result, includes:
counting the ratio of the number of the target similarities in each similarity interval;
selecting candidate similarity intervals from the similarity intervals, wherein the ratio of the number of the target similarities in the candidate similarity intervals is greater than or equal to a ratio threshold value;
selecting a largest endpoint value from the smaller endpoint values of the candidate similarity intervals as the similarity threshold.
In a possible embodiment, the executing module 604, when configured to add annotations to the location information corresponding to the target similarity by comparing the target similarity with the similarity threshold, includes:
if the target similarity is greater than or equal to the similarity threshold, adding suggestion prompt information for reserving the position information to the position information corresponding to the target similarity;
and if the target similarity is smaller than the similarity threshold, adding suggestion prompt information for deleting the position information to the position information corresponding to the target similarity.
The apparatus provided in the embodiments of the present application may be specific hardware on a device, or software or firmware installed on a device, etc. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The address annotation method provided by the embodiment of the application calls an application program interface of an electronic map after position information to be processed is obtained, target information corresponding to the position information is obtained, the target information represents space geographic address information of the position information, then the target similarity between the position information and the target information is determined according to the position information and target positions and target information points in the target information, then a similarity threshold value is determined by counting the proportion of the number of the target similarities in each similarity interval, and finally annotation including suggestion prompt information is added to the position information corresponding to the target similarity by comparing the target similarities with the similarity threshold value, so that a more accurate and more visual judgment basis is provided for a worker to process the position information to be processed, and the method is favorable for saving manual workload, the labor cost is reduced.
EXAMPLE III
Fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention, and as shown in fig. 7, the electronic device includes a memory 701, a processor 702, and a computer program stored in the memory 701 and operable on the processor 702, where the processor 702 implements the address annotation method when executing the computer program.
Specifically, the memory 701 and the processor 702 can be general memories and processors, which are not limited in particular, and when the processor 702 runs a computer program stored in the memory 701, the address annotation method can be executed, so that the problem of high labor cost in the prior art is solved.
Example four
The embodiment of the application also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the address annotation method are executed.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the address annotation method can be executed, so that the problem of high labor cost in the prior art is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An address annotation method, comprising:
after position information to be processed is obtained, target information of the position information is obtained by calling an application program interface of an electronic map, wherein the target information comprises a target position and a target information point;
determining the target similarity of the position information and the target information according to the position information, the target position and the target information point;
counting the proportion of the number of the target similarity in each similarity interval, and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal;
and adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or reserving the position information.
2. The method of claim 1, wherein obtaining the target information of the location information by calling an application program interface of an electronic map comprises:
inquiring the position information in the electronic map to obtain longitude and latitude coordinates of the position information;
and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
3. The method of claim 1, wherein said determining a target similarity of the location information and the target information based on the location information, the target location, and the target information point comprises:
calculating a first similarity between the position information and the target position;
calculating a second similarity between the position information and the target information point;
selecting a greater similarity of the first similarity and the second similarity as the target similarity.
4. The method of claim 1, wherein the counting the fraction of the number of the target similarities located in each similarity interval and determining a similarity threshold according to the statistical result comprises:
counting the ratio of the number of the target similarities in each similarity interval;
selecting candidate similarity intervals from the similarity intervals, wherein the ratio of the number of the target similarities in the candidate similarity intervals is greater than or equal to a ratio threshold value;
selecting a largest endpoint value from the smaller endpoint values of the candidate similarity intervals as the similarity threshold.
5. The method of claim 1, wherein the adding annotations to the location information corresponding to the target similarity by comparing the target similarity with the similarity threshold comprises:
if the target similarity is greater than or equal to the similarity threshold, adding suggestion prompt information for reserving the position information to the position information corresponding to the target similarity;
and if the target similarity is smaller than the similarity threshold, adding suggestion prompt information for deleting the position information to the position information corresponding to the target similarity.
6. An address annotation apparatus, comprising:
the system comprises an obtaining module, a processing module and a processing module, wherein the obtaining module is used for obtaining target information of position information by calling an application program interface of an electronic map after the position information to be processed is obtained, and the target information comprises a target position and a target information point;
the determining module is used for determining the target similarity of the position information and the target information according to the position information, the target position and the target information point;
the statistical module is used for counting the proportion of the number of the target similarity in each similarity interval and determining a similarity threshold according to a statistical result, wherein the numerical range of each similarity interval is sequentially decreased according to a preset size, and the maximum values of the similarity intervals are equal;
and the execution module is used for adding annotations to the position information corresponding to the target similarity by comparing the target similarity with the similarity threshold, wherein the annotations comprise suggestion prompt information for deleting or reserving the position information.
7. The apparatus of claim 6, wherein the obtaining module, when configured to obtain the target information of the location information by calling an application program interface of an electronic map, comprises:
inquiring the position information in the electronic map to obtain longitude and latitude coordinates of the position information;
and obtaining the target information used for representing the longitude and latitude coordinates according to the longitude and latitude coordinates.
8. The apparatus of claim 6, wherein the determining module, when configured to determine the target similarity of the location information and the target information based on the location information, the target location, and the target information point, comprises:
calculating a first similarity between the position information and the target position;
calculating a second similarity between the position information and the target information point;
selecting a greater similarity of the first similarity and the second similarity as the target similarity.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1-5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110190531.1A CN112836472A (en) | 2021-02-18 | 2021-02-18 | Address annotation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110190531.1A CN112836472A (en) | 2021-02-18 | 2021-02-18 | Address annotation method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112836472A true CN112836472A (en) | 2021-05-25 |
Family
ID=75933838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110190531.1A Pending CN112836472A (en) | 2021-02-18 | 2021-02-18 | Address annotation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112836472A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115952779A (en) * | 2023-03-13 | 2023-04-11 | 中规院(北京)规划设计有限公司 | Position name calibration method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304423A (en) * | 2017-03-29 | 2018-07-20 | 腾讯科技(深圳)有限公司 | A kind of information identifying method and device |
CN111339233A (en) * | 2020-02-26 | 2020-06-26 | 集奥聚合(北京)人工智能科技有限公司 | Address safety identification control method |
CN111814990A (en) * | 2020-06-23 | 2020-10-23 | 汇纳科技股份有限公司 | Threshold determination method, system, storage medium and terminal |
CN111966766A (en) * | 2020-02-18 | 2020-11-20 | 上海寻梦信息技术有限公司 | Address information detection method, system, electronic device and storage medium |
-
2021
- 2021-02-18 CN CN202110190531.1A patent/CN112836472A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304423A (en) * | 2017-03-29 | 2018-07-20 | 腾讯科技(深圳)有限公司 | A kind of information identifying method and device |
CN111966766A (en) * | 2020-02-18 | 2020-11-20 | 上海寻梦信息技术有限公司 | Address information detection method, system, electronic device and storage medium |
CN111339233A (en) * | 2020-02-26 | 2020-06-26 | 集奥聚合(北京)人工智能科技有限公司 | Address safety identification control method |
CN111814990A (en) * | 2020-06-23 | 2020-10-23 | 汇纳科技股份有限公司 | Threshold determination method, system, storage medium and terminal |
Non-Patent Citations (1)
Title |
---|
王积分,张新荣编著: "基于可靠性的海洋机器人软件建模方法及仿真", 中国铁道出版社, pages: 351 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115952779A (en) * | 2023-03-13 | 2023-04-11 | 中规院(北京)规划设计有限公司 | Position name calibration method and device, computer equipment and storage medium |
CN115952779B (en) * | 2023-03-13 | 2023-09-29 | 中规院(北京)规划设计有限公司 | Position name calibration method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109522923B (en) | Client address aggregation method, device and computer readable storage medium | |
CN112836472A (en) | Address annotation method, device, equipment and storage medium | |
CN110134721B (en) | Data statistics method and device based on bitmap and electronic equipment | |
CN111896016A (en) | Position information processing method and device, storage medium and terminal | |
CN109657148B (en) | Abnormal operation identification method, device, server and medium for reported POI | |
CN110309244B (en) | Target point positioning method and device | |
CN115145587A (en) | Product parameter checking method and device, electronic equipment and storage medium | |
CN110688995B (en) | Map query processing method, computer-readable storage medium and mobile terminal | |
CN110647595B (en) | Method, device, equipment and medium for determining newly-added interest points | |
CN116719843A (en) | Query method, storage medium and device for database system | |
CN110688439A (en) | Method for automatically identifying and analyzing enterprise information based on regional geocoding | |
CN114239562B (en) | Method, device and equipment for identifying program code blocks in document | |
CN116955856A (en) | Information display method, device, electronic equipment and storage medium | |
CN115116070A (en) | Method, device and equipment for accurately cutting PDF and storage medium | |
US20220188292A1 (en) | Data processing method, apparatus, electronic device and readable storage medium | |
CN115712667A (en) | Graph data fusion analysis method and device and storage medium | |
CN114220113A (en) | Paper quality detection method, device and equipment | |
CN114661925A (en) | Method, device, equipment and storage medium for identifying similar legends of CAD drawings | |
CN110297825B (en) | Data processing method, device, computer equipment and storage medium | |
CN113656446A (en) | Method and device for improving accuracy of geocoding | |
CN110457705B (en) | Method, device, equipment and storage medium for processing point of interest data | |
CN112149204A (en) | Method for automatically searching position pointed by caption in CAD file | |
CN110704523A (en) | Data export method, device, equipment and computer readable storage medium | |
CN110609874A (en) | Address entity coreference resolution method based on density clustering algorithm | |
CN112785567B (en) | Map detection method, map detection device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |