CN109685417B - Sending information determining method and device - Google Patents

Sending information determining method and device Download PDF

Info

Publication number
CN109685417B
CN109685417B CN201811532688.2A CN201811532688A CN109685417B CN 109685417 B CN109685417 B CN 109685417B CN 201811532688 A CN201811532688 A CN 201811532688A CN 109685417 B CN109685417 B CN 109685417B
Authority
CN
China
Prior art keywords
preset
information
address
sending
mail
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.)
Active
Application number
CN201811532688.2A
Other languages
Chinese (zh)
Other versions
CN109685417A (en
Inventor
孔六五
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SF Intra City Technology Co Ltd
Original Assignee
Beijing SF Intra City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SF Intra City Technology Co Ltd filed Critical Beijing SF Intra City Technology Co Ltd
Priority to CN201811532688.2A priority Critical patent/CN109685417B/en
Publication of CN109685417A publication Critical patent/CN109685417A/en
Application granted granted Critical
Publication of CN109685417B publication Critical patent/CN109685417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping

Abstract

The embodiment of the invention provides a method and a device for determining mail sending information. The method is applied to a mail sending terminal, and comprises the following steps: when a preset sending instruction comprising character information is received, acquiring a preset address list and current positioning information of a sending terminal; determining a mail sending address according to the preset address list and the current positioning information; and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address. The embodiment of the invention solves the problem that the process of inputting the receiving and sending address by the sending end in the application program of logistics distribution is complicated in the prior art.

Description

Sending information determining method and device
Technical Field
The embodiment of the invention relates to the technical field of logistics, in particular to a method and a device for determining mail sending information.
Background
Currently, with the rapid development of the logistics industry, particularly with the logistics mainly based on e-commerce services, the dependence degree of users on the logistics industry is gradually improved; a logistics distribution service may be required, whether by a seller or buyer, or other scenario that requires mailing of the package. Therefore, various logistics applications have come into play.
In the prior art, in an application program of logistics distribution, a process of inputting a receiving and sending address by a sending end is complicated; specifically, each time the logistics distribution service is started, the user is usually required to manually fill in the mailing address and the receiving address, so that the logistics service party obtains the mailing address and the receiving address information of the logistics service to start the logistics distribution service. However, the address information of the user is not changed in many cases, and the address of the recipient needs to be manually and repeatedly filled in each time the sender sends the mail, and even the address of the sender needs to be manually and repeatedly filled in sometimes.
In addition, for filling in the address of the receiving and dispatching part, the user mainly inputs the address through a keyboard at present, and a nearby address list positioned by the mobile phone of the user and a frequently-occurring address list of the user are selected as auxiliary addresses.
Specifically, in an address search page of a mail address, there are usually a nearby address list and a frequently used address list. Wherein, the nearby address list is arranged from near to far with the distance from the current positioning position, and usually has about 10 pieces of data for direct selection; the list of common addresses is the addresses used by the user and can also be directly selected. However, even if the addresses are selected from the two lists, the user is still required to manually fill in the mobile phone number and the sender name, so that for a sending user (namely sending) who often resides at a certain fixed address, the sending and receiving address needs to be repeatedly filled in each sending, and time and labor are consumed; when the delivery address is changed, the user still needs to refill the sender mobile phone number and the sender name, and the mobile phone number and the sender name do not need to be changed in most cases; for the information of the addressee file sent by the addressee to the sender, the manual input filling or copying and pasting of the sender is needed, the operation is complicated, and the wrong characters are easy to be input.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining mail sending information, which are used for solving the problem that in the prior art, in an application program of logistics distribution, the process of inputting a sending and receiving address by a mail sending end is complicated.
In one aspect, an embodiment of the present invention provides a method for determining a mail sending information, which is applied to a mail sending terminal, and the method includes:
when a preset sending instruction comprising character information is received, acquiring a preset address list and current positioning information of a sending terminal;
determining a mail sending address according to the preset address list and the current positioning information;
and
and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address.
In one aspect, an embodiment of the present invention provides a device for determining mail sending information, which is applied to a mail sending terminal, where the device includes:
the system comprises an acquisition module, a sending module and a positioning module, wherein the acquisition module is used for acquiring a preset address list and current positioning information of a sending terminal when receiving a preset sending instruction comprising text information;
the sending address determining module is used for determining a sending address according to the preset address list and the current positioning information;
and
and the receiving address determining module is used for carrying out character recognition on the text message, extracting preset keywords in the text message and obtaining a receiving address.
On the other hand, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor, where the processor implements the steps in the method for determining the mail information when executing the program.
In still another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above-mentioned mail information determining method.
According to the method and the device for determining the mail sending information, when a preset mail sending instruction comprising character information is received, a preset address list and current positioning information of a mail sending terminal are obtained; determining a mail sending address according to the preset address list and the current positioning information; and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address. Automatically obtaining a mail sending address and a mail receiving address, avoiding the complexity of manual input of a user and simultaneously avoiding address input errors; to sending a terminal of sending that a volume is big, can improve effectively and send an efficiency, reduce the cost of labor simultaneously.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for determining mail information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an example of an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mail information determining apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "an embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in an embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
Fig. 1 is a schematic flow chart illustrating a method for determining mail information according to an embodiment of the present invention.
As shown in fig. 1, the method for determining mail sending information provided in the embodiment of the present invention is applied to a mail sending terminal, and specifically includes the following steps:
step 101, when a preset sending instruction including text information is received, acquiring a preset address list and current positioning information of the sending terminal.
Wherein the text information is a text including the receiving information; for example, the recipient information to be filled in by the user is a text sent by the recipient, which includes information such as address, house number, contact person, and contact phone. Optionally, an input box can be added on a display interface of the mail sending terminal, and if the user inputs the text information into the input box, a preset mail sending instruction is received by default; and a trigger key can be arranged on the display interface, and if the trigger key is detected to be triggered, the receiving of a preset mail sending instruction is confirmed.
When a preset sending instruction is received, a preset address list and current positioning information which are pre-stored in a sending terminal are obtained; the preset address list may be a list of commonly used addresses of the sender.
Optionally, the sending information includes a sending address and a receiving address.
And step 102, determining a mail sending address according to the preset address list and the current positioning information.
Wherein, the sending address is the sending address; when the address in the current positioning information exists in the preset address list or is within a preset distance range from the current positioning information, the address meeting the requirement in the preset address list is used as a mail address, and the trouble that a user needs to input manually is avoided; and if the preset address list does not have an address meeting the requirements, taking the address in the current positioning information as a sending address.
Optionally, the sender address comprises sender address information, sender name and sender phone information.
And 103, performing character recognition on the text message, extracting preset keywords in the text message, and obtaining a recipient address.
After the mail address is determined, character recognition is needed to be carried out on the text information, because the text information input by a user usually has no rule, contacts, telephones, addresses and house numbers can be input out of order, particularly the text information copied by the user, at the moment, the character recognition is carried out on the text information, and preset keywords are extracted; the preset keyword may be an address type keyword such as a city, district, street, house number, etc.; or keywords of name type, such as surname.
Optionally, the recipient address includes recipient address information, recipient name, and recipient phone information.
After extracting preset keywords, sorting the keywords to obtain an addressee; if the addressee content which cannot be extracted from the text message exists, the user is prompted to input the addressee content through the addressee terminal.
In the above embodiment of the present invention, when a preset mail sending instruction including text information is received, a preset address list and current positioning information of the mail sending terminal are obtained; determining a mail sending address according to the preset address list and the current positioning information; and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address. Automatically obtaining a mail sending address and a mail receiving address, avoiding the complexity of manual input of a user and simultaneously avoiding address input errors; to sending a terminal of sending that a volume is big, can improve effectively and send an efficiency, reduce the cost of labor simultaneously. The embodiment of the invention solves the problem that the process of inputting the receiving and sending address by the sending end in the application program of logistics distribution is complicated in the prior art.
Optionally, in the embodiment of the present invention, the step of determining a mail address according to the preset address list and the current location information includes:
if an address information item with a deviation from a positioning address in the positioning information meeting a preset error requirement exists in the preset address list, taking the address information item as a mail address;
and if not, taking the current positioning information as a mail address.
After the current positioning information is acquired, comparing the address of the preset address list with the positioning address in the current positioning information; and determining that the address information item meets the preset error requirement when the preset error requirement is that the distance between the address information item in the preset address list and the positioning address is within a preset distance range.
Specifically, if the address information entry of the preset address list contains the currently positioned positioning address, the common address information is directly filled as a mail address; or if the address in the common address list does not contain the current positioning address, considering the deviation factor of positioning, if the address in the preset address list exists in a preset distance range from the current positioning position, using the address information item closest to the positioning address as the sending address.
And if the address information item meeting the requirements does not exist, taking the current positioning information as a mail address.
Further, in the embodiment of the present invention, after the step of using the current location information as a mail address, the method includes:
and taking the sender contact information with the highest use frequency in the preset address list as the contact information of the sender address.
When the positioning address is used as the sending address, sending contact person information with the highest use frequency in a preset address list, namely the most common contact person information, is used as the contact person information of the sending address.
Optionally, in an embodiment of the present invention, step 103 includes:
when the text message comprises a first character string of a digital type, judging that the first character string is a telephone number according to a preset regular expression, and using the first character string as the telephone message of a recipient address;
and when the character information comprises a second character string of a Chinese character or letter type, extracting preset keywords of the second character string to obtain address information and/or contact information of a recipient address.
When the text message comprises a first character string of a digital type and the first character string is judged to be a telephone number according to a preset regular expression, the first character string can be determined to be a contact telephone of a receiver, namely the telephone message of a receiver address; the regular expression can also detect whether the first character string is a telephone number meeting the preset format specification, such as whether the digit requirement is met.
And when the character information comprises a second character string of a Chinese character or letter type, the second character string is address information of a recipient address, and preset keyword extraction is carried out on the second character string at the moment to obtain address information and/or contact information of the recipient address.
Specifically, the step of extracting the preset keyword from the second character string to obtain address information of the recipient address and/or contact information includes:
the first step, divide the said second character string into at least two unit phrases including a preset keyword;
secondly, extracting effective information of each unit phrase, and taking characters before the extracted preset keywords or the characters comprising the preset keywords in the unit phrases as effective information;
and thirdly, sequentially arranging the effective information according to the preset priority of the preset keyword corresponding to each effective information to obtain the address information and/or the contact information of the addressee.
In the first step, the preset keyword may be an address type keyword, such as a city, a district, a street, a house number, and the like, and for a real address information phrase, there is often a keyword at the end of the phrase; or keywords of name type, such as surname.
And each unit phrase only comprises one preset keyword.
In the third step, the effective information is sequentially arranged according to the preset priority of the corresponding preset keyword to obtain the address information of the addressee and/or the addressee contact information.
Further, in an embodiment of the present invention, the second step includes:
if the type of the preset keyword is an address type, taking characters before the preset keyword in the unit phrase as effective information;
and if the type of the preset keyword is a name type, taking characters behind the preset keyword in the unit phrase as effective information.
The preset keywords of the address type, such as city, district, street, house number, etc., are usually placed at the end of the unit phrase through such keywords, so that the characters before the preset keywords are used as effective information.
If the type of the preset keyword is a name type, for example, the preset keyword is a surname, the whole unit phrase including the preset keyword is used as effective information.
Optionally, in this embodiment of the present invention, the step of using a text before the preset keyword in the unit phrase as valid information includes:
and if the characters before the preset keywords in the unit phrase are the addresses in the preset map database, taking the characters before the preset keywords in the unit phrase as effective information.
When the preset keyword is a keyword of an address type, after the character before the preset keyword is extracted, the address indicated by the character needs to be checked; as an implementation manner, the address may be checked according to a preset map database, and if the address is an address in the preset map database, the address is valid information. If the address is not an address in the preset map database, the address is ignored.
Optionally, the address may also be verified according to a preset map application.
Optionally, in this embodiment of the present invention, the step of dividing the second character string into at least two unit phrases including a preset keyword includes:
if the second character string comprises a preset spacer, dividing the second character string into at least two unit phrases comprising a preset keyword according to the preset spacer;
and if the second character string does not comprise the preset spacer, extracting keywords of the second character string, and dividing the second character string into at least two unit phrases comprising one preset keyword.
The preset spacer can be a punctuation mark or a space; when the preset interval symbol exists, the characters between every two preset interval symbols are divided into a unit phrase, and the unit phrase only comprises one preset keyword.
And if the second character string does not comprise the preset interval character, directly extracting the keywords, grouping the second character string according to each preset keyword, and only comprising one preset keyword in each unit phrase.
Further, in this embodiment of the present invention, the step of dividing the second character string into at least two unit phrases including a preset keyword according to the preset spacer includes:
dividing the second character string into at least two original phrases according to the preset interval symbol;
extracting keywords from the original phrases;
if the original phrase comprises a preset keyword or does not comprise the preset keyword, the original phrase is a unit phrase;
and if the original phrase comprises at least two preset keywords, dividing the original phrase into at least two unit phrases according to the preset keywords.
Firstly, dividing the second character string into at least two original phrases according to the interval symbol, wherein one original phrase is arranged between every two preset interval symbols; after extracting keywords from the original phrase, if the original phrase at most comprises one preset keyword, the original phrase is a unit phrase;
and if the original phrase comprises at least two preset keywords, grouping the original phrase again according to the preset keywords and dividing the original phrase into at least two unit phrases.
Optionally, in an embodiment of the present invention, the method further includes:
displaying a history mail sending record;
and when receiving an instruction that the history item information in the history sending record is selected, taking the history item information as the sending information of the current sending.
Some users often need to repeatedly send a mail to a certain address, and historical mail sending records are displayed on a display interface of a mail sending terminal, so that one-key and one-order functions can be provided; specifically, when the sending terminal receives the instruction that the history item information in the history sending record is selected, the history item information is used as the sending information of the sending at this time, for example, if a user selects a record in the history sending record, the record is directly filled in the currently processed sending order to be used as the sending address information and the receiving address information, so that the data which are frequently and repeatedly filled by the user are saved, and the effect of sending the sending by one key is achieved.
Further, in the embodiment of the present invention, if the history mail record includes at least two pieces of history entry information,
and arranging the history entry information in the history sending record from high to low according to sending frequency in a preset statistical period.
The historical sending records can be updated according to preset statistical cycles, the sending frequency of the historical entry information of the user is counted in each preset statistical cycle, and the historical entry information is arranged from high to low according to the sending frequency.
As a specific example, referring to fig. 2, fig. 2 is a display interface of a mail terminal, which includes a history mail record, a mail configuration page, an address editing page, and an address search (sug) page.
1. When the mail terminal detects that a user copies a segment of text information to an input box of a mail configuration page, if preset interval characters exist among the address, the house number, the contact person, the contact phone and the like in the text information, the mail terminal analyzes the text information and separates the segment of text into a plurality of segments of text by the interval characters or the spaces.
2. If a segment of characters of the numeric string is detected, the segment of characters is the contact telephone.
3. And checking and matching each remaining text segment by using the common names, wherein if only one text segment is matched, the text segment is the contact.
If multiple sections of characters are matched, the matched characters need to be screened and matched in a preset map database stored in a server, and the characters which are not matched in the province and the city are contacts.
4. After the contact phone and the contact person are obtained, only the address and the house number are left; the address is matched with a preset map database, and the last remaining characters are house number information.
5. And finally, filling the analyzed information back into each input item of the address editing page.
6. If the segment of characters has no preset interval symbol, directly executing the steps 2-5.
When step 4 is executed, the contact person and the house number are needed to be obtained, at this time, the section of characters can be divided into a plurality of sections, and then only each section of characters of the rest sections of characters needs to be executed, so that the contact person and house number information can be determined.
But if the text is not divided into multiple sections, then either the contact is in front or the house number is in front; firstly, checking all characters of the common names, if the first character of the common names is checked, extracting the first two characters, and judging whether the rest characters accord with the step 4, if the first 3 characters do not accord with the step 4, judging whether the rest characters accord with the step 4, until the first 4 characters are extracted, the front extracted is the contact person, and the back extracted is the house number.
If the common name is in the back of all the characters, then the contacts are in the back from the common name and the house number is in the front.
And finally, filling the analyzed information back into each input item of the address editing page.
In the above embodiment of the present invention, when a preset mail sending instruction including text information is received, a preset address list and current positioning information of the mail sending terminal are obtained; determining a mail sending address according to the preset address list and the current positioning information; and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address. Automatically obtaining a mail sending address and a mail receiving address, avoiding the complexity of manual input of a user and simultaneously avoiding address input errors; to sending a terminal of sending that a volume is big, can improve effectively and send an efficiency, reduce the cost of labor simultaneously.
The method for determining the mail information according to the embodiment of the present invention is described above, and the apparatus for determining the mail information according to the embodiment of the present invention is described below with reference to the accompanying drawings.
Referring to fig. 3, an embodiment of the present invention provides a sending information determining apparatus, which is applied to a sending terminal, and the apparatus includes:
the obtaining module 301 is configured to obtain a preset address list and current positioning information of the mail sending terminal when receiving a preset mail sending instruction including text information.
Wherein the text information is a text including the receiving information; for example, the recipient information to be filled in by the user is a text sent by the recipient, which includes information such as address, house number, contact person, and contact phone. Optionally, an input box can be added on a display interface of the mail sending terminal, and if the user inputs the text information into the input box, a preset mail sending instruction is received by default; and a trigger key can be arranged on the display interface, and if the trigger key is detected to be triggered, the receiving of a preset mail sending instruction is confirmed.
When a preset sending instruction is received, a preset address list and current positioning information which are pre-stored in a sending terminal are obtained; the preset address list may be a list of commonly used addresses of the sender.
Optionally, the sending information includes a sending address and a receiving address.
A sending address determining module 302, configured to determine a sending address according to the preset address list and the current positioning information.
Wherein, the sending address is the sending address; when the address in the current positioning information exists in the preset address list or is within a preset distance range from the current positioning information, the address meeting the requirement in the preset address list is used as a mail address, and the trouble that a user needs to input manually is avoided; and if the preset address list does not have an address meeting the requirements, taking the address in the current positioning information as a sending address.
Optionally, the sender address comprises sender address information, sender name and sender phone information.
And
and the recipient address determining module 303 is configured to perform character recognition on the text message, extract a preset keyword in the text message, and obtain a recipient address.
After the mail address is determined, character recognition is needed to be carried out on the text information, because the text information input by a user usually has no rule, contacts, telephones, addresses and house numbers can be input out of order, particularly the text information copied by the user, at the moment, the character recognition is carried out on the text information, and preset keywords are extracted; the preset keyword may be an address type keyword such as a city, district, street, house number, etc.; or keywords of name type, such as surname.
Optionally, the recipient address includes recipient address information, recipient name, and recipient phone information.
After extracting preset keywords, sorting the keywords to obtain an addressee; if the addressee content which cannot be extracted from the text message exists, the user is prompted to input the addressee content through the addressee terminal.
Optionally, in this embodiment of the present invention, the mail address determining module 302 is configured to:
if an address information item with a deviation from a positioning address in the positioning information meeting a preset error requirement exists in the preset address list, taking the address information item as a mail address;
and if not, taking the current positioning information as a mail address.
Optionally, in this embodiment of the present invention, the mail address determining module 302 is further configured to:
and taking the sender contact information with the highest use frequency in the preset address list as the contact information of the sender address.
Optionally, in this embodiment of the present invention, the recipient address determining module 303 includes:
the first determining sub-module is used for judging that the first character string is a telephone number according to a preset regular expression when the text message comprises a first character string of a digital type, and taking the first character string as the telephone message of the addressee;
and the second determining submodule is used for extracting preset keywords from the second character string when the character information comprises the second character string of the Chinese character or the letter type to obtain address information and/or contact information of the addressee.
Optionally, in this embodiment of the present invention, the second determining sub-module includes:
the grouping unit is used for dividing the second character string into at least two unit phrases comprising a preset keyword;
the information extraction unit is used for extracting effective information of each unit phrase, and taking characters before the extracted preset keywords in the unit phrases or characters comprising the preset keywords as effective information;
and the arrangement unit is used for sequentially arranging the effective information according to the preset priority of the preset keyword corresponding to each effective information to obtain the address information and/or the contact information of the addressee.
Optionally, in this embodiment of the present invention, the information extracting unit is configured to:
if the type of the preset keyword is an address type, taking characters before the preset keyword in the unit phrase as effective information;
and if the type of the preset keyword is a name type, taking characters behind the preset keyword in the unit phrase as effective information.
Optionally, in this embodiment of the present invention, the information extracting unit is configured to:
and if the characters before the preset keywords in the unit phrase are the addresses in the preset map database, taking the characters before the preset keywords in the unit phrase as effective information.
Optionally, in this embodiment of the present invention, the grouping unit is configured to:
if the second character string comprises a preset spacer, dividing the second character string into at least two unit phrases comprising a preset keyword according to the preset spacer;
and if the second character string does not comprise the preset spacer, extracting keywords of the second character string, and dividing the second character string into at least two unit phrases comprising one preset keyword.
Optionally, in this embodiment of the present invention, the dividing the second character string into at least two unit phrases including a preset keyword according to the preset spacer includes:
dividing the second character string into at least two original phrases according to the preset interval symbol;
extracting keywords from the original phrases;
if the original phrase comprises a preset keyword or does not comprise the preset keyword, the original phrase is a unit phrase;
and if the original phrase comprises at least two preset keywords, dividing the original phrase into at least two unit phrases according to the preset keywords.
Optionally, in an embodiment of the present invention, the apparatus further includes:
the display module is used for displaying historical sending records;
and when receiving an instruction that the history item information in the history sending record is selected, taking the history item information as the sending information of the current sending.
Optionally, in the embodiment of the present invention, if the history mail record includes at least two pieces of history entry information,
and arranging the history entry information in the history sending record from high to low according to sending frequency in a preset statistical period.
In the above embodiment of the present invention, when receiving a preset mail sending instruction including text information, the obtaining module 301 obtains a preset address list and current positioning information of the mail sending terminal; the sending address determining module 302 determines a sending address according to the preset address list and the current positioning information; and the recipient address determining module 303 performs character recognition on the text message, extracts preset keywords in the text message, and obtains a recipient address. Automatically obtaining a mail sending address and a mail receiving address, avoiding the complexity of manual input of a user and simultaneously avoiding address input errors; to sending a terminal of sending that a volume is big, can improve effectively and send an efficiency, reduce the cost of labor simultaneously.
Fig. 4 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
As shown in fig. 4, the electronic device may include: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform the following method:
when a preset sending instruction comprising character information is received, acquiring a preset address list and current positioning information of a sending terminal;
determining a mail sending address according to the preset address list and the current positioning information;
and
and performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products.
In another embodiment of the present invention, a non-transitory computer-readable storage medium is provided, where a computer program is stored on the non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the steps in the method provided in the foregoing embodiment of the present invention are implemented, and details of the implementation are not repeated.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 invention. 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.
The above-described embodiments of the apparatus are merely illustrative, and 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A method for determining mail sending information is applied to a mail sending terminal, and is characterized by comprising the following steps:
when a preset sending instruction comprising character information is received, acquiring a preset address list and current positioning information of a sending terminal;
determining a mail sending address according to the preset address list and the current positioning information;
and
performing character recognition on the text information, and extracting preset keywords in the text information to obtain a receiving address;
displaying a history mail sending record;
and when receiving an instruction that the history item information in the history sending record is selected, filling the history item information into a sending order as a sending address and a receiving address of the sending at this time.
2. The method of claim 1, wherein said step of determining a mail address based on said predetermined address list and current location information comprises:
if an address information item with a deviation from a positioning address in the positioning information meeting a preset error requirement exists in the preset address list, taking the address information item as a mail address;
and if not, taking the current positioning information as a mail address.
3. The method of claim 2, wherein the step of using the current location information as a mail address is followed by:
and taking the sender contact information with the highest use frequency in the preset address list as the contact information of the sender address.
4. The method according to claim 1, wherein the step of performing character recognition on the text message, extracting preset keywords in the text message, and obtaining a recipient address comprises:
when the text message comprises a first character string of a digital type, judging that the first character string is a telephone number according to a preset regular expression, and using the first character string as the telephone message of a recipient address;
and when the character information comprises a second character string of a Chinese character or letter type, extracting preset keywords of the second character string to obtain address information and/or contact information of a recipient address.
5. The method according to claim 4, wherein the step of extracting the preset keyword from the second character string to obtain address information of a recipient address and/or contact information comprises:
dividing the second character string into at least two unit phrases comprising a preset keyword;
extracting effective information of each unit phrase, and taking characters before the extracted preset keywords or characters comprising the preset keywords in the unit phrases as effective information;
and sequentially arranging the effective information according to the preset priority of the preset keyword corresponding to each effective information to obtain the address information and/or the contact information of the addressee.
6. The method according to claim 5, wherein the step of extracting valid information from each unit phrase and using a text preceding the extracted preset keyword or a text including the preset keyword in the unit phrase as valid information comprises:
if the type of the preset keyword is an address type, taking characters before the preset keyword in the unit phrase as effective information;
and if the type of the preset keyword is a name type, taking characters behind the preset keyword in the unit phrase as effective information.
7. The method according to claim 5, wherein the step of using the text before the preset keyword in the unit phrase as effective information comprises:
and if the characters before the preset keywords in the unit phrase are the addresses in the preset map database, taking the characters before the preset keywords in the unit phrase as effective information.
8. The method according to claim 5, wherein the step of dividing the second character string into at least two unit phrases including a predetermined keyword comprises:
if the second character string comprises a preset spacer, dividing the second character string into at least two unit phrases comprising a preset keyword according to the preset spacer;
and if the second character string does not comprise the preset spacer, extracting keywords of the second character string, and dividing the second character string into at least two unit phrases comprising one preset keyword.
9. The method according to claim 8, wherein the step of dividing the second character string into at least two unit phrases including a preset keyword according to the preset spacer comprises:
dividing the second character string into at least two original phrases according to the preset interval symbol;
extracting keywords from the original phrases;
if the original phrase comprises a preset keyword or does not comprise the preset keyword, the original phrase is a unit phrase;
and if the original phrase comprises at least two preset keywords, dividing the original phrase into at least two unit phrases according to the preset keywords.
10. The method according to claim 1, wherein if the history mail record includes at least two pieces of history entry information,
and arranging the history entry information in the history sending record from high to low according to sending frequency in a preset statistical period.
11. A mail information determination device is applied to a mail terminal, and is characterized by comprising:
the system comprises an acquisition module, a sending module and a positioning module, wherein the acquisition module is used for acquiring a preset address list and current positioning information of a sending terminal when receiving a preset sending instruction comprising text information;
the sending address determining module is used for determining a sending address according to the preset address list and the current positioning information;
and
the receiving address determining module is used for carrying out character recognition on the text message, extracting preset keywords in the text message and obtaining a receiving address;
the display module is used for displaying historical sending records;
and when receiving an instruction that the history item information in the history sending record is selected, filling the history item information into a sending order as a sending address and a receiving address of the sending at this time.
12. An electronic device comprising a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the mail information determination method according to any one of claims 1 to 10 when executing the program.
13. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that: the program, when executed by a processor, implements the steps in a mail information determination method according to any one of claims 1 to 10.
CN201811532688.2A 2018-12-14 2018-12-14 Sending information determining method and device Active CN109685417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811532688.2A CN109685417B (en) 2018-12-14 2018-12-14 Sending information determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811532688.2A CN109685417B (en) 2018-12-14 2018-12-14 Sending information determining method and device

Publications (2)

Publication Number Publication Date
CN109685417A CN109685417A (en) 2019-04-26
CN109685417B true CN109685417B (en) 2021-08-17

Family

ID=66187836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811532688.2A Active CN109685417B (en) 2018-12-14 2018-12-14 Sending information determining method and device

Country Status (1)

Country Link
CN (1) CN109685417B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347890A (en) * 2019-05-27 2019-10-18 天津五八到家科技有限公司 Interface display method, equipment and storage medium
CN110489622B (en) * 2019-07-10 2024-02-06 平安科技(深圳)有限公司 Sharing method and device of object information, computer equipment and storage medium
CN112884929B (en) * 2021-01-12 2023-06-30 西安京迅递供应链科技有限公司 Mail sending method, device, logistics server, storage medium and mail sending system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657836A (en) * 2015-02-13 2015-05-27 深圳支付界科技有限公司 Method and system for automatically acquiring address and inputting address into courier receipt
CN104933046A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and system for providing search result of commodity object
CN107292227A (en) * 2017-05-03 2017-10-24 浙江百世技术有限公司 Part information extracting method and system are received/posted to one kind
CN107437156A (en) * 2016-05-25 2017-12-05 北大方正集团有限公司 Ship-to management method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657361A (en) * 2013-11-18 2015-05-27 阿里巴巴集团控股有限公司 Data processing method and data processing device
CN104408632A (en) * 2014-11-25 2015-03-11 苏州迪云信息科技有限公司 Method and device for confirming delivery address information of cellphone shopping

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933046A (en) * 2014-03-17 2015-09-23 阿里巴巴集团控股有限公司 Method and system for providing search result of commodity object
CN104657836A (en) * 2015-02-13 2015-05-27 深圳支付界科技有限公司 Method and system for automatically acquiring address and inputting address into courier receipt
CN107437156A (en) * 2016-05-25 2017-12-05 北大方正集团有限公司 Ship-to management method and device
CN107292227A (en) * 2017-05-03 2017-10-24 浙江百世技术有限公司 Part information extracting method and system are received/posted to one kind

Also Published As

Publication number Publication date
CN109685417A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN106021510B (en) The method and system handled for the inquiry of user's starting by mobile device
CN109685417B (en) Sending information determining method and device
CN106162584B (en) Method, client, cloud server and system for identifying spam messages
CN104182549A (en) E-mail digest generation method and device
US8326333B2 (en) Electronic device and method of controlling the electronic device
WO2018053594A1 (en) Emoji images in text messages
CN106453582B (en) Asynchronous message pushing method and system
CN101943991A (en) Input method and equipment based on cloud computing
CN110705926A (en) Method, device and system for acquiring logistics object distribution information
CN111124714A (en) Address information filling method, device and computer readable storage medium
CN112732893A (en) Text information extraction method and device, storage medium and electronic equipment
CN105681523A (en) Method and apparatus for sending birthday blessing short message automatically
US20170171128A1 (en) Method and electronic device for email processing
CN101345966A (en) Method and device for automatically matching menu
EP2535802A1 (en) Computer-implemented method of arranging text items in a predefined order
US9277053B2 (en) Ready-to-dial global phone numbers
CN111083705A (en) Group-sending fraud short message detection method, device, server and storage medium
CN109039995B (en) Illegal information identification method, device and equipment
CN107784064B (en) Webpage data processing method and device, computer equipment and computer storage medium
US20130262452A1 (en) Server for Conveying a Set of Contact Identification Data to a User Equipment, Methods Therefor, User Equipment, Computer Programs and Computer Program Products
CN105120045A (en) Method and device for creating address book according to note information of new contact name
JP4872433B2 (en) Language processing apparatus, portable terminal, and language processing method
CN107277788A (en) Short message display processing method and device
CN111179921A (en) Digital information processing method, mobile terminal and computer storage medium
CN113595884A (en) Message reminding method and application terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant