CN104361014A - Method and device for automatically converting currency in short message - Google Patents

Method and device for automatically converting currency in short message Download PDF

Info

Publication number
CN104361014A
CN104361014A CN201410545090.2A CN201410545090A CN104361014A CN 104361014 A CN104361014 A CN 104361014A CN 201410545090 A CN201410545090 A CN 201410545090A CN 104361014 A CN104361014 A CN 104361014A
Authority
CN
China
Prior art keywords
currency
note
retrieval
short message
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410545090.2A
Other languages
Chinese (zh)
Inventor
杨硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TIANJIN YUNCHEN SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
TIANJIN YUNCHEN SCIENCE & 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 TIANJIN YUNCHEN SCIENCE & TECHNOLOGY Co Ltd filed Critical TIANJIN YUNCHEN SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201410545090.2A priority Critical patent/CN104361014A/en
Publication of CN104361014A publication Critical patent/CN104361014A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

Abstract

The invention provides a method and a device for automatically converting currency in a short message, which are used to solve the problem that the short message cannot automatically convert the quantity and types of the currency. The method comprises the following steps: when a mobile phone receives a short message, a short message program automatically analyzes a symbol, characters, numerical values and characteristics of terminology in front and back of the numerical values of the matched currency, obtains the exchange rate from a cloud terminal, converts the analysis results, and establishes the relation between the converting result and the original currency content, so as to avoid the problem that when receiving the short message containing the currency information and requiring conversion, a user needs find a conversion tool or conversion software in a troublesome manner, visually display the converted currency in the short message to the user, and brings convenience to the user.

Description

A kind of automatic conversion method of note currency and device
Technical field
The invention belongs to communication technical field, be specifically related to the method and apparatus that in a kind of note, currency converts automatically.
Background technology
In modern society, due to the widespread use of mobile phone, note also becomes tool of communications more and more important between people, and even international business exchange is also had and much undertaken by note.
Especially relate in international business in the information communication of note; often there will be quantity of money and Currency Type information that commercial intercourse relates to; because the proportion between various countries is different; and the exchange rate also real-time change; the both sides of messaging communication also need to be converted voluntarily by some instruments or software, therefore for messaging communication brings much unnecessary trouble.
Summary of the invention
The problem to be solved in the present invention is to provide the method and apparatus that in a kind of note, currency converts automatically, and solving note can not automatically to the problem that quantity of money and Currency Type convert.
For achieving the above object, the technical scheme that the present invention takes is: the automatic conversion method of a kind of note currency, comprising:
The note that step one, note program automatic analysis receive, obtains effective information and key character position data;
Step 2, effective information to be converted according to the real-time exchange rate;
Step 3, scaling results to be associated with key character in note.
Preferably, the note that the note program automatic analysis in described step one receives, the step obtaining effective information and key character position data comprises:
(1.1) according to presetting monetary value in retrieval locating short message;
(1.2) find that monetary value extracts specific quantity character before and after numerical value;
(1.3) by character before and after numerical value and local identification database comparison;
(1.4) Currency Type and quantity of money information is obtained.
Wherein, can adopt with the following method according to the concrete grammar of monetary value in default retrieval locating short message:
(a) retrieval " numeral. numeral " form, location monetary value, wherein, the numeral before radix point is nonzero digit, and the numeral after radix point is two digits;
B () retrieval pure digi-tal form, when the figure place of pure digi-tal is greater than the threshold value preset, then obtains the some characters of digital periphery, compares with local identification database, location monetary value.
Further, following method can also be adopted:
C () retrieval currency symbol and keyword describe, numerical value before and after retrieval currency symbol, location monetary value.Preferably, described step 2 by the concrete steps that effective information carries out converting according to the real-time exchange rate is:
(2.1) conversion Currency Type information is sent to cloud server by network, described conversion Currency Type information comprises source Currency Type information and the target Currency Type information of conversion, described source Currency Type information is the Currency Type information obtained in step (1.4), described target Currency Type information is the Currency Type of short-message users belonging country, can preset or according to the ownership place of collection of letters phone number or determine according to GPS information etc.;
(2.2) cloud server is according to Currency Type information, returns the corresponding exchange rate;
(2.3) numerical value using the currency exchange returned to obtain.
According to a further aspect in the invention, additionally provide a kind of note currency autoscaler, comprising:
Automatic analysis module, for the note that automatic analysis receives, obtains effective information and key character position data;
Conversion module, for converting effective information according to the real-time exchange rate;
Relating module, for being associated scaling results with key character in note.
Preferably, described automatic analysis module comprises:
Retrieval positioning unit, for retrieving monetary value in locating short message according to presetting;
Character extraction unit, for finding that monetary value extracts specific quantity character before and after numerical value;
Comparing unit, for by character before and after numerical value and local identification database comparison;
Acquiring unit, for obtaining Currency Type and quantity of money information.
Preferably, described retrieval positioning unit comprises:
Digital format searcher, for retrieval " numeral. numeral " form or pure digi-tal form, and judge whether the threshold value being greater than setting;
Character getter, for obtaining the some characters of digital periphery;
Character comparative device, for the some characters of digital periphery that comparison obtains;
Steady arm, location monetary value.
Further, described retrieval positioning unit also comprises:
Character search device, for retrieving currency symbol and keyword describes, numerical value before and after retrieval currency symbol.
Preferably, described conversion module comprises:
Transmitting element, for being sent to cloud server by Currency Type information by network;
Receiving element, for receiving the exchange rate of the correspondence that cloud server returns;
Computing unit, for the numerical value using the currency exchange returned to obtain.
Beneficial effect of the present invention is: by the present invention, after mobile phone receives note, and note program automatic analysis coupling currency symbol, word, and numerical value, and vocabulary character before and after numerical value.And obtain the exchange rate from high in the clouds, analysis result is converted, after conversion, scaling results and original text currency content are set up and contact, avoid user when receiving the note containing monetary information and needing to convert, the very troublesome problem going for conversion instrument or conversion software, make the currency in note can be shown to user intuitively after converting, convenient for users.
Accompanying drawing explanation
Fig. 1 is method step figure of the present invention;
Fig. 2 is the detailed annotation figure of method step figure of the present invention;
Fig. 3 is monetary value localization method figure in the present invention.
Embodiment
Below in conjunction with specific embodiment, the invention will be further described.
As shown in Figure 1, method of the present invention is:
When the mobile phone of user receives note (especially the note of foreign customers or businessman), note contains relevant expense, monetary information, the note that the note program automatic analysis of user receives, and obtains effective information and key character position data;
Then, effective information is converted according to the real-time exchange rate;
Finally, by scaling results be associated with key character in note, be presented on mobile phone, user is known in time.
As shown in Figure 2, method of the present invention contains much concrete step, below the content involved by these steps is made to illustrating one by one:
Note routine package contains local identification database, have recorded symbol, character, keyword etc. that each Currency Type is relevant in database; Note program has preset judgment threshold simultaneously.
When mobile phone receives note,
(1.1) according to presetting monetary value in retrieval locating short message;
Wherein, the localization method of monetary value is as follows:
(a) retrieval " numeral. numeral " form, location monetary value, wherein, the numeral before radix point is nonzero digit, and the numeral after radix point is two digits;
B () retrieval pure digi-tal form, when the figure place of pure digi-tal is greater than the threshold value preset, then obtains the some characters of digital periphery, compares with local identification database, location monetary value;
C () retrieval currency symbol and keyword describe, numerical value before and after retrieval currency symbol, location monetary value.
Detailed description process is as follows:
When mobile phone receives note, note program is analyzed note, retrieve " numeral. numeral " form, namely think that this belongs to the numerical value of currency; This is mainly because the note that sends of a lot of automatic system with currency concerning foreign affairs, is all with admittedly formatted, this form usually with " numeral. numeral " this form, the numeral before radix point is nonzero digit, and the numeral after radix point is two digits;
If retrieve pure digi-tal form, after finding that there is the numerical value of particular number of bits length, such as more than 2 figure places (threshold value), some each characters before and after numerical value can be obtained, if currency symbol appears in these characters, just can judge that this numerical value has been a monetary value;
First can retrieve currency symbol in addition, after judging currency symbol, then retrieve numerical value before and after currency symbol, can monetary value be located;
(1.2) find that monetary value extracts specific quantity character before and after numerical value;
(1.3) by character before and after numerical value and local identification database comparison;
For (1.2) and (1.3), note program extracts Word message before and after numerical value automatically, carry out pattern-recognition, intellectual analysis Currency Type, such as with the symbol that the such vocabulary of the word such as dollar, pound of dollar, U.S. cutter or English, sterling, $ are such, corresponding Currency Type can be identified by the comparison of local identification database.
(1.4) Currency Type and quantity of money information is obtained.
After identifying monetary value and Currency Type, namely can obtain the information of Currency Type and quantity of money.
(2.1) conversion Currency Type information is sent to cloud server by network, described conversion Currency Type information comprises source Currency Type information and the target Currency Type information of conversion, described source Currency Type information is the Currency Type information obtained in step (1.4), described target Currency Type information is the Currency Type of short-message users belonging country, can preset or according to the ownership place of collection of letters phone number or determine according to GPS information etc.;
(2.2) cloud server returns the corresponding exchange rate;
Cloud server, according to the Currency Type information received, returns the exchange rate of current correspondence.
(2.3) numerical value using the currency exchange returned to obtain.
The monetary value of the exchange rate that note program returns according to cloud server and acquisition, converts, and obtains the numerical value after converting.
Convert successfully, scaling results is associated with key character in note, value of money needed for having converted and symbol are marked out with the font and color that are different from text.
Above the embodiment of the invention has been described in detail, but described content being only the preferred embodiment of the invention, can not being considered to for limiting practical range of the present invention.All equalizations done according to the invention scope change and improve, and all should still belong within this patent covering scope.

Claims (10)

1. the automatic conversion method of note currency, is characterized in that, comprising:
The note that step one, note program automatic analysis receive, obtains effective information and key character position data;
Step 2, effective information to be converted according to the real-time exchange rate;
Step 3, scaling results to be associated with key character in note.
2. the automatic conversion method of a kind of note currency according to claim 1, is characterized in that: the note that the note program automatic analysis in described step one receives, and the step obtaining effective information and key character position data comprises:
(1.1) according to presetting monetary value in retrieval locating short message;
(1.2) find that monetary value extracts specific quantity character before and after numerical value;
(1.3) by character before and after numerical value and local identification database comparison;
(1.4) Currency Type and quantity of money information is obtained.
3. the automatic conversion method of a kind of note currency according to claim 2, is characterized in that: according to the concrete grammar of monetary value in default retrieval locating short message be:
(a) retrieval " numeral. numeral " form, location monetary value, wherein, the numeral before radix point is nonzero digit, and the numeral after radix point is two digits;
B () retrieval pure digi-tal form, when the figure place of pure digi-tal is greater than the threshold value preset, then obtains the some characters of digital periphery, compares with local identification database, location monetary value.
4. the automatic conversion method of a kind of note currency according to Claims 2 or 3, is characterized in that: according to the concrete grammar of monetary value in default retrieval locating short message can also be:
C () retrieval currency symbol and keyword describe, numerical value before and after retrieval currency symbol, location monetary value.
5. the automatic conversion method of a kind of note currency according to claim 1, is characterized in that: in described step 2 by the concrete steps that effective information carries out converting according to the real-time exchange rate be:
(2.1) conversion Currency Type information is sent to cloud server by network, described conversion Currency Type information comprises source Currency Type information and the target Currency Type information of conversion, described source Currency Type information is the Currency Type information obtained in step (1.4), described target Currency Type information is the Currency Type of short-message users belonging country, can preset or according to the ownership place of collection of letters phone number or determine according to GPS information etc.;
(2.2) cloud server is according to Currency Type information, returns the corresponding exchange rate;
(2.3) numerical value using the currency exchange returned to obtain.
6. a note currency autoscaler, is characterized in that, comprising:
Automatic analysis module, for the note that automatic analysis receives, obtains effective information and key character position data;
Conversion module, for converting effective information according to the real-time exchange rate;
Relating module, for being associated scaling results with key character in note.
7. a kind of note currency autoscaler according to claim 6, it is characterized in that, described automatic analysis module comprises:
Retrieval positioning unit, for retrieving monetary value in locating short message according to presetting;
Character extraction unit, for finding that monetary value extracts specific quantity character before and after numerical value;
Comparing unit, for by character before and after numerical value and local identification database comparison;
Acquiring unit, for obtaining Currency Type and quantity of money information.
8. a kind of note currency autoscaler according to claim 7, it is characterized in that, described retrieval positioning unit comprises:
Digital format searcher, for retrieval " numeral. numeral " form or pure digi-tal form, and judge whether the threshold value being greater than setting;
Character getter, for obtaining the some characters of digital periphery;
Character comparative device, for the some characters of digital periphery that comparison obtains;
Steady arm, location monetary value.
9. a kind of note currency autoscaler according to claim 7 or 8, it is characterized in that, described retrieval positioning unit also comprises:
Character search device, for retrieving currency symbol and keyword describes, numerical value before and after retrieval currency symbol.
10. a kind of note currency autoscaler according to claim 6, is characterized in that: described conversion module comprises:
Transmitting element, for being sent to cloud server by Currency Type information by network;
Receiving element, for receiving the exchange rate of the correspondence that cloud server returns;
Computing unit, for the numerical value using the currency exchange returned to obtain.
CN201410545090.2A 2014-10-15 2014-10-15 Method and device for automatically converting currency in short message Pending CN104361014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410545090.2A CN104361014A (en) 2014-10-15 2014-10-15 Method and device for automatically converting currency in short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410545090.2A CN104361014A (en) 2014-10-15 2014-10-15 Method and device for automatically converting currency in short message

Publications (1)

Publication Number Publication Date
CN104361014A true CN104361014A (en) 2015-02-18

Family

ID=52528276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410545090.2A Pending CN104361014A (en) 2014-10-15 2014-10-15 Method and device for automatically converting currency in short message

Country Status (1)

Country Link
CN (1) CN104361014A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787789A (en) * 2015-12-23 2016-07-20 魅族科技(中国)有限公司 Method and apparatus for displaying currency exchange rate
CN108304080A (en) * 2018-01-24 2018-07-20 北京百度网讯科技有限公司 Method, apparatus, equipment and the computer storage media of input method conversion currency

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063417A (en) * 2010-12-29 2011-05-18 东莞宇龙通信科技有限公司 Unit conversion method, unit conversion system and communication terminal thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063417A (en) * 2010-12-29 2011-05-18 东莞宇龙通信科技有限公司 Unit conversion method, unit conversion system and communication terminal thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787789A (en) * 2015-12-23 2016-07-20 魅族科技(中国)有限公司 Method and apparatus for displaying currency exchange rate
CN108304080A (en) * 2018-01-24 2018-07-20 北京百度网讯科技有限公司 Method, apparatus, equipment and the computer storage media of input method conversion currency
CN108304080B (en) * 2018-01-24 2022-02-25 北京百度网讯科技有限公司 Method, device, equipment and computer storage medium for converting currency by input method

Similar Documents

Publication Publication Date Title
CN104794125B (en) A kind of recognition methods of refuse messages and device
CN106874287B (en) Method and device for processing POI address codes
WO2015143970A1 (en) Information collecting system and method based on two-dimensional code
CN101609673A (en) A kind of user voice processing method and server based on telephone bank
CN104270521A (en) Method for processing incoming call number and mobile terminal
CN102722525A (en) Methods and systems for establishing language model of address book names and searching voice
WO2022127057A1 (en) Weather early warning text processing method, related apparatus and computer program product
CN101930435A (en) Method and system for retrieving organization names
CN111970353A (en) Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN107992523B (en) Function option searching method of mobile application and terminal equipment
EP2847980A1 (en) Method, client, server and system for intelligent recognizing contents of short message
CN103401561A (en) Methods and devices for compressing and decompressing map data
CN104216896A (en) Contact information searching method and device
CN111079386A (en) Address recognition method, device, equipment and storage medium
CN109873751B (en) Group chat voice information processing method and device, storage medium and server
CN114241501B (en) Image document processing method and device and electronic equipment
CN105701224A (en) Security information customized service system based on big data
CN104361014A (en) Method and device for automatically converting currency in short message
CN103607515A (en) Short message merging device and method
CN108494977B (en) Method, device and system for identifying short signal code
CN104021186A (en) Dynamic intelligent flight information query system and method based on voice recognition
CN115712667B (en) Graph data fusion analysis method, device and storage medium
CN101404673B (en) Method, system and apparatus for acquiring integrated information
CN105787789A (en) Method and apparatus for displaying currency exchange rate
CN111401051B (en) Express information analysis method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150218