CN108304080B - Method, device, equipment and computer storage medium for converting currency by input method - Google Patents

Method, device, equipment and computer storage medium for converting currency by input method Download PDF

Info

Publication number
CN108304080B
CN108304080B CN201810068847.1A CN201810068847A CN108304080B CN 108304080 B CN108304080 B CN 108304080B CN 201810068847 A CN201810068847 A CN 201810068847A CN 108304080 B CN108304080 B CN 108304080B
Authority
CN
China
Prior art keywords
currency
input
currency type
conversion result
user
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
CN201810068847.1A
Other languages
Chinese (zh)
Other versions
CN108304080A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810068847.1A priority Critical patent/CN108304080B/en
Publication of CN108304080A publication Critical patent/CN108304080A/en
Application granted granted Critical
Publication of CN108304080B publication Critical patent/CN108304080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Abstract

The invention provides a method, a device, equipment and a computer storage medium for converting currency by an input method, wherein the method comprises the following steps: acquiring input content of a user on a screen through an input method; if the input content contains currency information of a first currency type, obtaining a conversion result of a second currency type corresponding to the currency information of the first currency type; and displaying the conversion result on an input method panel. The invention automatically converts the currency information contained in the input content of the user through the input method, thereby simplifying the step of obtaining the currency conversion result in the input process of the user and improving the input efficiency of the user.

Description

Method, device, equipment and computer storage medium for converting currency by input method
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of input methods, in particular to a method, a device, equipment and a computer storage medium for converting currency by an input method.
[ background of the invention ]
Due to the unstable currency exchange rate, the user can only obtain the exchange rate between the currencies in a real-time query mode, and further obtain the conversion result between different currencies. Therefore, if the user is in the process of chatting with another person, and if the chatting content relates to money, the user needs to leave the chatting interface, and can obtain the corresponding money conversion result by additionally opening the related webpage or application of the money conversion. Therefore, the steps of the user acquiring the currency conversion result in the input process are complicated.
[ summary of the invention ]
In view of the above, the present invention provides a method, an apparatus, a device and a computer storage medium for converting currency by an input method, which are used to simplify the steps of obtaining a currency conversion result during the input process of a user, thereby improving the input efficiency of the user.
The technical scheme adopted by the invention for solving the technical problem is to provide a method for converting currency by an input method, which comprises the following steps: acquiring input content of a user on a screen through an input method; if the input content contains currency information of a first currency type, obtaining a conversion result of a second currency type corresponding to the currency information of the first currency type; and displaying the conversion result on an input method panel.
According to a preferred embodiment of the present invention, before acquiring the input content that is displayed on the screen by the user through the input method, the method may further include: and determining whether the currency conversion function of the input method is started, and if so, continuing to execute the step of acquiring the input content of the user through the input method.
According to a preferred embodiment of the present invention, after the obtaining of the input content of the user through the input method, the method further includes: it is determined whether currency information of a first currency type is included in the input content.
According to a preferred embodiment of the present invention, the determining whether the input content includes money information of the first money type includes: detecting the input content by using a currency identification rule; if the input content is detected to contain the content matched with the currency identification rule, determining that the input content contains currency information of a first currency type; the currency identification rule is preset or obtained by learning the currency input habit of the user through an input method.
According to a preferred embodiment of the invention, the currency information comprises a currency type and/or a currency amount.
According to a preferred embodiment of the invention, the second currency type comprises: taking the preset currency type as a second currency type; or acquiring the current position information of the user, determining the local currency type of the position of the user according to the position information, and taking the local currency type as a second currency type.
According to a preferred embodiment of the present invention, the obtaining a conversion result of the second currency type corresponding to the currency information of the first currency type includes: determining an exchange rate value between the first currency type and a second currency type; and obtaining a conversion result of the second currency type corresponding to the currency information of the first currency type according to the currency value.
According to a preferred embodiment of the present invention, the displaying the conversion result on the input method panel includes: and displaying the conversion result in a candidate bar on an input method panel.
According to a preferred embodiment of the invention, the method further comprises: and when the triggering operation of the conversion result in the candidate bar is detected, the conversion result is displayed on a screen.
According to a preferred embodiment of the present invention, a separator or identifier is automatically added to the conversion result when the conversion result is displayed on the screen.
The technical scheme adopted by the invention for solving the technical problem is to provide a device for converting currency by an input method, which comprises the following steps: the first acquisition unit is used for acquiring input contents of a user on a screen through an input method; a second acquisition unit configured to acquire a conversion result of a second currency type corresponding to currency information of a first currency type when the input content includes the currency information of the first currency type; and the display unit is used for displaying the conversion result on an input method panel.
According to a preferred embodiment of the present invention, before acquiring the input content on the screen by the user through the input method, the first acquiring unit further performs: and determining whether the currency conversion function of the input method is started, and if so, continuing to execute the operation of acquiring the input content of the user through the input method on the screen.
According to a preferred embodiment of the present invention, after acquiring the input content on the screen by the user through the input method, the first acquiring unit further performs: it is determined whether currency information of a first currency type is included in the input content.
According to a preferred embodiment of the present invention, the first acquiring unit, when determining whether the input content includes money information of the first money type, specifically performs: detecting the input content by using a currency identification rule; if the input content is detected to contain the content matched with the currency identification rule, determining that the input content contains currency information of a first currency type; the currency identification rule is preset or obtained by learning the currency input habit of the user through an input method.
According to a preferred embodiment of the present invention, the second obtaining unit is further configured to: taking the preset currency type as a second currency type; or acquiring the current position information of the user, determining the local currency type of the position of the user according to the position information, and taking the local currency type as a second currency type.
According to a preferred embodiment of the present invention, when acquiring a conversion result of the second currency type corresponding to the currency information of the first currency type, the second acquiring unit specifically performs: determining an exchange rate value between the first currency type and a second currency type; and obtaining a conversion result of the second currency type corresponding to the currency information of the first currency type according to the currency value.
According to a preferred embodiment of the present invention, when the display unit displays the conversion result on the input method panel, the following steps are specifically performed: and displaying the conversion result in a candidate bar on an input method panel.
According to a preferred embodiment of the present invention, the display unit is further configured to perform: and when the triggering operation of the conversion result in the candidate bar is detected, the conversion result is displayed on a screen.
According to the technical scheme, when the currency information is detected to be included in the input content of the user through the input method screen, the currency information and other currencies are automatically converted, so that the step of obtaining the currency conversion result by the user in the input process is simplified, and the input efficiency of the user is improved.
[ description of the drawings ]
FIG. 1 is a flow chart of a method for converting currency using an input method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a conversion result displayed on an input method panel according to an embodiment of the present invention;
FIG. 3 is a diagram of a device for converting currency by an input method according to an embodiment of the present invention;
fig. 4 is a block diagram of a computer system/server according to an embodiment of the invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 is a flowchart of a method for converting currency by an input method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
in 101, input content of a user on a screen through an input method is acquired.
In this step, the input content of the user on the screen through the input method is acquired, the acquired input content is used for determining whether the input content contains currency information, and then the conversion result of the corresponding currency type is obtained based on the currency information contained in the input content.
Before the step of acquiring the input content of the user on the screen through the input method, the method may further include: determining whether a currency conversion function of the input method is started, if so, continuing to execute the step of acquiring the input content of the user on the screen through the input method; if the input method is not started, the currency conversion is not required by the user, and the step of acquiring the input content of the user on the screen through the input method does not need to be executed continuously.
After the step of acquiring the input content of the user on the screen through the input method, the method may further include: it is determined whether currency information of a first currency type is included in the input content.
Specifically, in determining whether or not the input content includes the money information of the first money type, the following manner may be adopted: and detecting the input content by using the currency identification rule, if the input content is detected to contain the content matched with the currency identification rule, determining that the input content contains currency information of the first currency type, and if not, determining that the input content does not contain the currency information of the first currency type. The currency identification rule may be preset, that is, names of various currencies may be preset as the currency identification rule, for example, "meijin", "mei ke", "RMB", "euro", and the like. The input method log can also be used for learning the currency input habits of the user, and the learned currency input habits are used as currency identification rules.
The above-described process will be described by taking the example in which the money recognition rule is obtained by learning the money input habit of the user through the input method log. If the user inputs the currency type of 'U.S. dollars' daily, generally by means of 'U.S. dollars' or 'dollars', the 'U.S. dollars' and 'dollars' are used as currency identification rules to detect the input content of the user, and if the input content of the user is detected to contain 'dollars', the input content can be determined to contain currency information of the first currency type. If it is determined that the input content of the user includes the first type of money information, the process continues to step 102.
At 102, if the input content includes currency information of a first currency type, a conversion result of a second currency type corresponding to the currency information of the first currency type is acquired.
In this step, the money information of the first money type included in the input content of the user on the screen by the input method is converted to obtain a conversion result of the second money type corresponding to the conversion result. The currency information of the first currency type comprises a currency type and/or a currency amount. In the present embodiment, the money information of the first money type preferably includes a money type and a money amount.
Specifically, when the conversion result of the second currency type corresponding to the currency information of the first currency type is acquired, the following manner may be adopted: extracting the currency information of the first currency type contained in the input content, wherein the currency type and the currency amount contained in the currency information can be extracted at the same time, or only the currency type can be extracted; and acquiring a conversion result of the second currency type corresponding to the currency information of the first currency type according to the extracted currency information of the first currency type and the second currency type.
And the second currency type is a target conversion currency type corresponding to the currency information of the first currency type. That is, the present step converts the first currency into the second currency. The second currency type may be a preset currency type, and the preset currency type may be one or more. The currency type acquired in real time can also be taken as the second currency type, and the currency type can be acquired in real time in the following way: acquiring the current geographic position of a user; determining a local currency type corresponding to the geographic position according to the acquired geographic position; the determined local currency type is then taken as the second currency type. For example, if the user's current location is somewhere in the United states, and then obtains U.S. dollars as the second currency type, then this step converts the other types of currency to a conversion result corresponding to U.S. dollars.
When the conversion result of the second currency type corresponding to the currency information of the first currency type is acquired, the following mode can be adopted: determining an exchange rate value between the first currency type and the second currency type, wherein the exchange rate value between the first currency type and the second currency type can be obtained through a server or an exchange rate query application; and then, converting the currency amount in the currency information of the first currency type according to the acquired exchange rate value to obtain a conversion result of a second currency type corresponding to the currency information of the first currency type.
For example, if the currency information of the first currency type is "100 dollars", assuming that the second currency type is renminbi, first a rate of "6.43" is obtained between the current dollar and the renminbi, and then a conversion result of "100 dollars equals 643 renminbi" is obtained according to the rate of "6.43". If only the money type is included in the money information of the first money type or only the money type in the extracted money information, the money amount in the money information is set to "1" for money conversion. For example, if the currency information for the first currency type is "U.S. dollars," assuming the second currency type is RMB, "6.43" is the exchange rate between the current U.S. dollar and the RMB, then the conversion result is "1 U.S. dollars equal to 6.43 RMB".
It is understood that, when performing currency conversion, the input method may also send the currency information of the first currency type and the second currency type to the server or the exchange rate query application, perform corresponding currency conversion by the server or the exchange rate query application, and then obtain the conversion result returned by the server or the exchange rate query application.
In 103, the conversion result is displayed on an input method panel.
In this step, step 102 acquires a conversion result of the second currency type corresponding to the currency information of the first currency type, and then displays the acquired conversion result on the input method panel. When the conversion result is displayed on the input method panel, the conversion result can be displayed in the candidate bar on the input method panel; the conversion result may be displayed in the form of a floating window on the input method panel. As shown in fig. 2, the conversion result is displayed in the candidate bar on the input method panel. It is understood that when the conversion result is displayed on the input method panel, "$ 100 equal to 263 rmb" can be displayed; only the conversion result may be displayed, for example, "263 rmb", or 263 rmb "may be displayed.
After the conversion result is displayed in this step, if a trigger operation for the conversion result in the input method panel is detected, the conversion result is displayed on the screen. Upon on-screen scaling of the results, a delimiter or identifier may be automatically added to the scaling results. For example, when the user clicks the conversion result in the candidate bar, the conversion result may be displayed as "(equal to 263 rmb)", may be displayed as "(263 rmb)", may be displayed as "rah263".
Fig. 3 is a structural diagram of an apparatus for converting currency by an input method according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a first acquisition unit 31, a second acquisition unit 32, and a display unit 33.
The first acquiring unit 31 is used for acquiring input contents of a user on a screen through an input method.
The first acquisition unit 31 acquires input contents of a user on the screen by an input method, the acquired input contents being used to determine whether or not there is money information contained therein, and then obtains a conversion result of a corresponding money type based on the money information contained in the input contents.
Before the first acquiring unit 31 acquires the input content on the screen by the user through the input method, the following steps may be further performed: the first acquisition unit 31 determines whether a currency conversion function of the input method is started, and if so, continues to perform the step of acquiring the input content of the user on the screen through the input method; if the input method is not started, the currency conversion is not required by the user, and the step of acquiring the input content of the user on the screen through the input method does not need to be executed continuously.
After the first acquiring unit 31 acquires the input content on the screen by the user through the input method, the following steps may be further performed: it is determined whether currency information of a first currency type is included in the input content.
Specifically, when the first acquisition unit 31 determines whether or not the money information of the first money type is included in the input content, the following manner may be adopted: the first acquisition unit 31 detects input content using a currency recognition rule, and determines that currency information of a first currency type is included in the input content if it is detected that content matching the currency recognition rule is included in the input content, and otherwise does not. Note that the money identification rule may be preset, that is, names of various kinds of money may be set as the money identification rule in advance, and for example, "memu" or "mei ke", "RMB" or "euro" may be set as the money identification rule. The input method log can also be used for learning the currency input habits of the user, and the learned currency input habits are used as currency identification rules.
The above-described process will be described by taking the example in which the money recognition rule is obtained by learning the money input habit of the user through the input method log. If the user inputs the currency type of 'U.S. dollars' daily, generally by means of 'U.S. dollars' or 'dollars', the 'U.S. dollars' and 'dollars' are used as currency identification rules to detect the input content of the user, and if the input content of the user is detected to contain 'dollars', the input content can be determined to contain currency information of the first currency type.
If the first acquiring unit 31 determines that the input content of the user includes the first type of money information, the second acquiring unit 32 continues to acquire the conversion result.
And a second acquiring unit 32 configured to acquire a conversion result of a second currency type corresponding to the currency information of the first currency type when the currency information of the first currency type is included in the input content.
The second acquisition unit 32 converts the money information of the first money type included in the input content of the user on the screen by the input method, and obtains a conversion result of the second money type corresponding thereto. The currency information of the first currency type comprises a currency type and/or a currency amount. In the present embodiment, the money information of the first money type preferably includes a money type and a money amount.
Specifically, the second acquiring unit 32 may adopt the following manner when acquiring the conversion result of the second currency type corresponding to the currency information of the first currency type: the second acquiring unit 32 extracts the money information of the first money type included in the input content, and may extract the money type and the money amount included in the money information at the same time, or may extract only the money type; the second acquisition unit 32 acquires a conversion result of the second currency type corresponding to the currency information of the first currency type, based on the extracted currency information of the first currency type and the second currency type.
And the second currency type is a target conversion currency type corresponding to the currency information of the first currency type. That is, the second acquiring unit 32 converts the first currency into the second currency. The second currency type may be a preset currency type, and the preset currency type may be one or more. The currency type acquired in real time may also be taken as the second currency type, and the second acquiring unit 32 may acquire the currency type in real time in the following manner: acquiring the current geographic position of a user; determining a local currency type corresponding to the geographic position according to the acquired geographic position; the determined local currency type is then taken as the second currency type. For example, if the user's current location is somewhere in the united states, and acquires the dollar as the second currency type, the second acquiring unit 32 converts the other types of currency into a conversion result corresponding to the dollar.
When the second acquiring unit 32 acquires the conversion result of the second currency type corresponding to the currency information of the first currency type, the following manner may be adopted: the second obtaining unit 32 determines an exchange rate value between the first currency type and the second currency type, which may be obtained by the server or an exchange rate query application; the second acquiring unit 32 then converts the money amount in the money information of the first money type based on the acquired exchange rate value to obtain a conversion result of the second money type corresponding to the money information of the first money type.
For example, if the money information of the first money type is "100 dollars", assuming that the second money type is rmb, the second obtaining unit 32 first obtains the exchange rate between the current dollar and rmb as "6.43", and then the second obtaining unit 32 obtains the conversion result of "100 dollars equals 643 rmb" from the exchange rate of "6.43". If only the money type is included in the money information of the first money type or only the money type in the extracted money information, the second acquisition unit 32 sets the money amount in the money information to "1" for money conversion. For example, if the currency information for the first currency type is "U.S. dollars," assuming the second currency type is RMB, "6.43" is the exchange rate between the current U.S. dollar and the RMB, then the conversion result is "1 U.S. dollars equal to 6.43 RMB".
It is understood that, when the second obtaining unit 32 performs currency conversion, the currency information of the first currency type and the second currency type may also be sent to the server or the exchange rate query application, and the server or the exchange rate query application performs corresponding currency conversion, and then the second obtaining unit 32 directly obtains the conversion result returned by the server or the exchange rate query application.
A display unit 33 for displaying the conversion result on an input method panel.
The second acquiring unit 32 acquires the conversion result of the second currency type corresponding to the currency information of the first currency type, and the display unit 33 displays the acquired conversion result on the input method panel. Wherein, when the conversion result is displayed on the input method panel, the display unit 33 may display the conversion result in the candidate bar on the input method panel; the conversion result may be displayed in the form of a floating window on the input method panel. It is understood that the display unit 33 may display "$ 100 equals 263 rmb" when displaying the conversion result on the input method panel; only the conversion result may be displayed, for example, "263 rmb", or 263 rmb "may be displayed.
After the display unit 33 displays the conversion result, if a trigger operation of the conversion result in the input method panel by the user is detected, the conversion result is displayed on the screen. When the conversion result is displayed on the screen, a separator or an identifier can be automatically added to the conversion result so as to distinguish the obtained conversion result from the input content of the user. For example, when the user clicks the conversion result in the candidate bar, the conversion result may be displayed as "(equal to 263 rmb)", may be displayed as "(263 rmb)", may be displayed as "rah263".
Fig. 4 illustrates a block diagram of an exemplary computer system/server 012 suitable for use in implementing embodiments of the invention. The computer system/server 012 shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 4, the computer system/server 012 is embodied as a general purpose computing device. The components of computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Bus 018 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 012 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 012 and includes both volatile and nonvolatile media, removable and non-removable media.
System memory 028 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)030 and/or cache memory 032. The computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 034 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 018 via one or more data media interfaces. Memory 028 can include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the present invention.
Program/utility 040 having a set (at least one) of program modules 042 can be stored, for example, in memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof might include an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system/server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.), hi the present invention, the computer system/server 012 communicates with an external radar device, and may also communicate with one or more devices that enable a user to interact with the computer system/server 012, and/or with any device (e.g., network card, modem, etc.) that enables the computer system/server 012 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 022. Also, the computer system/server 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system/server 012 via bus 018. It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes various functional applications and data processing by executing programs stored in the system memory 028, for example, implementing a method for converting currency by an input method, which may include:
acquiring input content of a user on a screen through an input method;
if the input content contains currency information of a first currency type, obtaining a conversion result of a second currency type corresponding to the currency information of the first currency type;
and displaying the conversion result on an input method panel.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the method flows executed by the one or more processors may include:
acquiring input content of a user on a screen through an input method;
if the input content contains currency information of a first currency type, obtaining a conversion result of a second currency type corresponding to the currency information of the first currency type;
and displaying the conversion result on an input method panel.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
By utilizing the technical scheme provided by the invention, if the input content of the user through the input method screen comprises the currency information, the currency information can be automatically converted, so that the step of acquiring the currency conversion result by the user in the input process is simplified, and the input efficiency of the user is improved.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
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 of the present invention 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 integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (18)

1. A method for converting currency by an input method, the method comprising:
acquiring input content of a user on a screen through an input method;
if the input content contains currency information of a first currency type, obtaining a conversion result of a second currency type corresponding to the currency information of the first currency type;
displaying the conversion result on an input method panel;
wherein the obtaining of the conversion result of the second currency type corresponding to the currency information of the first currency type includes:
determining an exchange rate value between the first currency type and a second currency type;
and obtaining a conversion result of the second currency type corresponding to the currency information of the first currency type according to the currency value.
2. The method of claim 1, further comprising, prior to obtaining input content that a user is on-screen via an input method:
and determining whether the currency conversion function of the input method is started, and if so, continuing to execute the step of acquiring the input content of the user through the input method.
3. The method of claim 1, after obtaining the input content of the user through the input method, further comprising:
it is determined whether currency information of a first currency type is included in the input content.
4. The method of claim 3, wherein determining whether currency information of a first currency type is contained in the input content comprises:
detecting the input content by using a currency identification rule;
if the input content is detected to contain the content matched with the currency identification rule, determining that the input content contains currency information of a first currency type;
the currency identification rule is preset or obtained by learning the currency input habit of the user through an input method.
5. The method of claim 1, wherein the currency information comprises a currency type and/or a currency amount.
6. The method of claim 1, wherein the second currency type comprises:
taking the preset currency type as a second currency type; or
The method comprises the steps of obtaining current position information of a user, determining a local currency type of the position of the user according to the position information, and taking the local currency type as a second currency type.
7. The method of claim 1, wherein displaying the scaled results on the input method panel comprises:
and displaying the conversion result in a candidate bar on an input method panel.
8. The method of claim 7, further comprising:
and when the triggering operation of the conversion result in the candidate bar is detected, the conversion result is displayed on a screen.
9. The method of claim 8, wherein a separator or identifier is automatically added to the conversion result when the conversion result is displayed on the screen.
10. An apparatus for converting money by an input method, the apparatus comprising:
the first acquisition unit is used for acquiring input contents of a user on a screen through an input method;
a second acquisition unit configured to acquire a conversion result of a second currency type corresponding to currency information of a first currency type when the input content includes the currency information of the first currency type;
a display unit for displaying the conversion result on an input method panel;
wherein the second acquiring unit, when acquiring a conversion result of a second currency type corresponding to the currency information of the first currency type, specifically executes:
determining an exchange rate value between the first currency type and a second currency type;
and obtaining a conversion result of the second currency type corresponding to the currency information of the first currency type according to the currency value.
11. The apparatus according to claim 10, wherein the first obtaining unit further performs, before obtaining the input content that the user is on-screen by the input method:
and determining whether the currency conversion function of the input method is started, and if so, continuing to execute the operation of acquiring the input content of the user through the input method on the screen.
12. The apparatus according to claim 10, wherein the first obtaining unit further performs, after obtaining the input content that the user inputs by the input method, that:
it is determined whether currency information of a first currency type is included in the input content.
13. The apparatus according to claim 12, wherein the first acquisition unit, when determining whether or not the input content contains money information of a first money type, specifically performs:
detecting the input content by using a currency identification rule;
if the input content is detected to contain the content matched with the currency identification rule, determining that the input content contains currency information of a first currency type;
the currency identification rule is preset or obtained by learning the currency input habit of the user through an input method.
14. The apparatus of claim 10, wherein the second obtaining unit is further configured to:
taking the preset currency type as a second currency type; or
The method comprises the steps of obtaining current position information of a user, determining a local currency type of the position of the user according to the position information, and taking the local currency type as a second currency type.
15. The apparatus according to claim 10, wherein the display unit, when displaying the conversion result on the input method panel, specifically performs:
and displaying the conversion result in a candidate bar on an input method panel.
16. The apparatus of claim 15, wherein the display unit is further configured to perform:
and when the triggering operation of the conversion result in the candidate bar is detected, the conversion result is displayed on a screen.
17. An apparatus for converting money by an input method, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
18. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-9 when executed by a computer processor.
CN201810068847.1A 2018-01-24 2018-01-24 Method, device, equipment and computer storage medium for converting currency by input method Active CN108304080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810068847.1A CN108304080B (en) 2018-01-24 2018-01-24 Method, device, equipment and computer storage medium for converting currency by input method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810068847.1A CN108304080B (en) 2018-01-24 2018-01-24 Method, device, equipment and computer storage medium for converting currency by input method

Publications (2)

Publication Number Publication Date
CN108304080A CN108304080A (en) 2018-07-20
CN108304080B true CN108304080B (en) 2022-02-25

Family

ID=62866043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810068847.1A Active CN108304080B (en) 2018-01-24 2018-01-24 Method, device, equipment and computer storage medium for converting currency by input method

Country Status (1)

Country Link
CN (1) CN108304080B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447638A (en) * 2018-10-22 2019-03-08 中国银行股份有限公司 Data processing method, device and the currency conversion scheme of currency conversion

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1241342A (en) * 1996-12-18 2000-01-12 艾利森电话股份有限公司 Method and apparatus for calculating
CN102063417A (en) * 2010-12-29 2011-05-18 东莞宇龙通信科技有限公司 Unit conversion method, unit conversion system and communication terminal thereof
CN104361014A (en) * 2014-10-15 2015-02-18 天津云辰科技有限公司 Method and device for automatically converting currency in short message
CN106372033A (en) * 2016-08-30 2017-02-01 浙江德景电子科技有限公司 Multifunctional calculator, control method thereof and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9292498B2 (en) * 2012-03-21 2016-03-22 Paypal, Inc. Device orientation based translation system
US20150205925A1 (en) * 2014-01-22 2015-07-23 HTH Worldwide LLC Method and system of retrieving healthcare information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1241342A (en) * 1996-12-18 2000-01-12 艾利森电话股份有限公司 Method and apparatus for calculating
CN102063417A (en) * 2010-12-29 2011-05-18 东莞宇龙通信科技有限公司 Unit conversion method, unit conversion system and communication terminal thereof
CN104361014A (en) * 2014-10-15 2015-02-18 天津云辰科技有限公司 Method and device for automatically converting currency in short message
CN106372033A (en) * 2016-08-30 2017-02-01 浙江德景电子科技有限公司 Multifunctional calculator, control method thereof and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Study of Currency Flows Based on the Input-Output Model";WANG Xuefeng 等;《第五届(2013)金融风险与公司金融国际研讨会论文集》;20130629;第580-585页 *
"海淘达人如何用输入法完成汇率换算";何翌;《计算机与网络》;20170426(第8期);第36页 *

Also Published As

Publication number Publication date
CN108304080A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
US10777192B2 (en) Method and apparatus of recognizing field of semantic parsing information, device and readable medium
CN107992596B (en) Text clustering method, text clustering device, server and storage medium
US10685245B2 (en) Method and apparatus of obtaining obstacle information, device and computer storage medium
CN110069608B (en) Voice interaction method, device, equipment and computer storage medium
US20190026605A1 (en) Neural network model training method and apparatus, living body detecting method and apparatus, device and storage medium
CN109599095B (en) Method, device and equipment for marking voice data and computer storage medium
CN109408829B (en) Method, device, equipment and medium for determining readability of article
CN110245580B (en) Method, device and equipment for detecting image and computer storage medium
CN108932066B (en) Method, device, equipment and computer storage medium for acquiring expression package by input method
CN110162786B (en) Method and device for constructing configuration file and extracting structured information
CN109933738B (en) Method, device and computer storage medium for displaying reading content
CN109960554B (en) Method, device and computer storage medium for displaying reading content
CN109495549B (en) Method, equipment and computer storage medium for application pull alive
CN109815481B (en) Method, device, equipment and computer storage medium for extracting event from text
CN110659438A (en) Method, apparatus and computer storage medium for issuing reading reward
CN115546488A (en) Information segmentation method, information extraction method and training method of information segmentation model
US20230096921A1 (en) Image recognition method and apparatus, electronic device and readable storage medium
CN114299366A (en) Image detection method and device, electronic equipment and storage medium
CN108304080B (en) Method, device, equipment and computer storage medium for converting currency by input method
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
CN117312140A (en) Method and device for generating test case, electronic equipment and storage medium
CN110929499B (en) Text similarity obtaining method, device, medium and electronic equipment
CN112445901A (en) Method and device for setting language of intelligent equipment
KR20220024251A (en) Method and apparatus for building event library, electronic device, and computer-readable medium
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment

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