CN109584056A - A kind of share-selecting method and device based on natural language - Google Patents
A kind of share-selecting method and device based on natural language Download PDFInfo
- Publication number
- CN109584056A CN109584056A CN201811103391.4A CN201811103391A CN109584056A CN 109584056 A CN109584056 A CN 109584056A CN 201811103391 A CN201811103391 A CN 201811103391A CN 109584056 A CN109584056 A CN 109584056A
- Authority
- CN
- China
- Prior art keywords
- natural language
- stocks
- language
- selecting
- selecting stocks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The present invention is suitable for financial investment technical field, provide a kind of share-selecting method and device based on natural language, this method includes receiving natural language, natural language is parsed according to preset rules, generative grammar tree, formula of selecting stocks is determined according to syntax tree, according to formula of selecting stocks, screening meets the stock for formula of selecting stocks, obtain result of selecting stocks, transmission selects stocks result to terminal, the natural language that server is sent according to terminal determines formula of selecting stocks, so that investor is without learning complicated formula of selecting stocks, increase the convenience that investor selects stocks, reduce difficulty of selecting stocks, improve efficiency of selecting stocks, and, server screens to obtain result of selecting stocks according to formula of selecting stocks, without sending stock certificate data to terminal, save the time of data transmission, improve efficiency of selecting stocks, simultaneously, server transmission selects stocks result to terminal, facilitate investor at any time Everywhere select stocks, solve the problems, such as that amateur investor can not simply and quickly select stocks according to formula of selecting stocks in the prior art.
Description
Technical field
The invention belongs to financial investment technical field more particularly to a kind of share-selecting methods and device based on natural language.
Background technique
With rapid development of economy, the finance consciousness and investment awareness of people is gradually increased, more and more investors
Investment in stock market is selected to realize the appreciation of fixed assets of oneself.
In stock market, investor has the share-selecting method of oneself, and for amateur investor, formula of selecting stocks is write
Regular complicated, difficulty is higher, and ordinary investor is not proficient in or has half knowledge to formula of selecting stocks, and the formula that learns to select stocks is write
Much time wealth effort, leads to not analysis method to be converted to formula of selecting stocks, and can not efficiently be selected stocks using formula of selecting stocks,
Seriously affect the efficiency of selecting stocks of investor.And for the investor of mobile terminal, the input of various indexs is extremely inconvenient,
The formula that causes to select stocks can not flexibly be applied to mobile terminal.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of share-selecting method and device based on natural language, existing to solve
There is amateur investor in technology that can not simply and quickly generate the problem of formula of selecting stocks is to select stocks.
The first aspect of the embodiment of the present invention provides a kind of share-selecting method based on natural language, comprising:
Natural language is received, parses the natural language, generative grammar tree according to preset rules;
Formula of selecting stocks is determined according to the syntax tree;
According to the formula of selecting stocks, screening meets the stock of the formula of selecting stocks, and obtains result of selecting stocks;
Result of selecting stocks described in transmission is to terminal.
In a kind of possible implementation, the reception nature language pack is included:
Obtain natural language;
Judge whether the natural language is related to stock;
If related, the natural language is received;
Otherwise, the natural language is abandoned.
Described to parse the natural language according to preset rules in a kind of possible implementation, generative grammar tree is wrapped
It includes:
Natural language described in abbreviation;
Natural language after parsing abbreviation according to the preset rules, generative grammar tree.
The second aspect of the embodiment of the present invention provides a kind of share-selecting method based on natural language, comprising:
Receive the language of user's input;
The language of user input is pre-processed, natural language is obtained;
The natural language is sent to server;
Receive the result of selecting stocks that the server is sent.
In a kind of possible implementation, the form of the language of user's input include: text and/or voice and/or
Image;
The language to user input pre-processes, comprising:
Whether the form for judging the language of user's input includes voice;
When the form of the language of user input includes voice, the language for the user's input for converting the speech form
The language inputted for the user of textual form;
Whether the form for judging the language of user's input includes image;
When the form of the language of user input includes image, the language of user's input of conversion described image form
The language inputted for the user of textual form.
In a kind of possible implementation, the language to user input is pre-processed, further includes:
Correct the language of user's input of received and/or conversion textual form.
The third aspect of the embodiment of the present invention provides a kind of device of selecting stocks based on natural language, comprising:
Receiving module, for receiving natural language;
Parsing module, for parsing the natural language, generative grammar tree according to preset rules;
Determining module, for determining formula of selecting stocks according to the syntax tree;
Screening module, for formula of selecting stocks according to, screening meets the stock of the formula of selecting stocks, and obtains knot of selecting stocks
Fruit;
Sending module, for sending the result of selecting stocks to terminal.
The fourth aspect of the embodiment of the present invention provides a kind of device of selecting stocks based on natural language, comprising:
Receiving module, for receiving the language of user's input;
Processing module, the language for inputting to the user pre-process, and obtain natural language;
Sending module, for sending the natural language to server;
The receiving module is also used to receive the result of selecting stocks that the server is sent.
5th aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
Memory, processor and storage are in the memory and the computer journey that can run on the processor
The step of sequence, the processor realizes method as described above when executing the computer program.
6th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer program, real when the computer program is executed by processor
The step of existing method as described above.
A kind of share-selecting method and device based on natural language provided in an embodiment of the present invention, including natural language is received,
The natural language is parsed according to preset rules, generative grammar tree determines formula of selecting stocks according to the syntax tree, according to the choosing
Stock formula, screening meet the stock of the formula of selecting stocks, and are selected stocks as a result, result of selecting stocks described in sending is to terminal, server
The natural language sent according to terminal determines formula of selecting stocks, so that investor increases throwing without learning complicated formula of selecting stocks
The convenience that money person selects stocks, reduces difficulty of selecting stocks, and improves efficiency of selecting stocks, also, server is screened according to formula of selecting stocks
To selecting stocks as a result, save the time of data transmission without sending stock certificate data to terminal, improve efficiency of selecting stocks, meanwhile, clothes
Business device transmission selects stocks result to terminal, facilitates investor to select stocks anywhere or anytime, solves amateur throwing in the prior art
The problem of money person can not simply and quickly be selected stocks according to formula of selecting stocks.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram for share-selecting method based on natural language that the embodiment of the present invention one provides;
Fig. 2 (1), (2) are syntax tree schematic diagram;
Fig. 3 is a kind of implementation process schematic diagram of the share-selecting method based on natural language provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of implementation process schematic diagram for share-selecting method based on natural language that the embodiment of the present invention three provides;
Fig. 5 is a kind of schematic diagram for device of selecting stocks based on natural language that the embodiment of the present invention four provides;
Fig. 6 is a kind of schematic diagram for device of selecting stocks based on natural language that the embodiment of the present invention five provides;
Fig. 7 is the schematic diagram for the terminal device that the embodiment of the present invention six provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is a kind of implementation process schematic diagram for share-selecting method based on natural language that the embodiment of the present invention one provides,
As shown in Figure 1, the method for the present embodiment the following steps are included:
Step 11 receives natural language.
The executing subject of the present embodiment is the device of selecting stocks based on natural language, specifically, device of selecting stocks is server, it should
Server can be common server, be also possible to Cloud Server, and the present embodiment is not specifically limited.
The natural language that server receiving terminal is sent, which is the language of the daily exchange of investor, for example,
" I will filter out the stock that amount of increase is greater than 5 percent ", the concrete form of the natural language can be text.
Step 12 parses the natural language, generative grammar tree according to preset rules.
The preset rules are pre-stored in server, and according to preset rules, the natural language received is parsed,
Generative grammar tree.
Fig. 2 (1), (2) they are syntax tree schematic diagram, by taking " I will filter out the stock that amount of increase is greater than 5 percent " as an example, root
According to preset rules, the syntax tree for parsing generation is the tree for indicating " amount of increase is greater than 5 percent ", as shown in Fig. 2 (1).With " screening
Amount of increase is greater than 1 percent, and net profit is greater than 1,000,000,000 stock " for, according to preset rules, the syntax tree for parsing generation is table
The tree for showing " amount of increase is greater than 1 percent, and net profit is greater than 1,000,000,000 ", as shown in Fig. 2 (2).
Preset rules not only include semantic analysis, further include meaning of a word analysis, and the word of equivalent will be stated in natural language
Also it is parsed, for example, " searching the stock that amount of increase is greater than 5 percent ", " obtaining the stock that amount of increase is greater than 5 percent ", " sieve
Select amount of increase to be greater than 5 percent stock ", " screening go up stock " more than 5 percent, " screening rising range is greater than percentage
Five stock " and the meaning of the statements such as " ascensional range be greater than 5 percent stock " it is all the same.
The diversity of natural language is taken into account in the present embodiment, compared to the single statement side of traditional formula of selecting stocks
Formula, a variety of form of presentation of the present embodiment are not necessarily to by fixed language format input, thus it is more flexible, facilitate investor to select
Stock operation.
Step 13 determines formula of selecting stocks according to the syntax tree.
Terminal determines formula of selecting stocks according to obtained syntax tree.
For example, the formula of selecting stocks of " amount of increase is greater than 5 percent " is as follows:
For another example with the formula of selecting stocks of " amount of increase is greater than 1 percent, and net profit is greater than 1,000,000,000 " are as follows:
Due to sending natural language using terminal, formula of selecting stocks is determined by server, so that investor is complicated without learning
Formula of selecting stocks, increase investor input convenience, reduce difficulty of selecting stocks, improve efficiency of selecting stocks.
Step 14, formula of selecting stocks according to, screening meet the stock of the formula of selecting stocks, obtain result of selecting stocks.
The natural language that server is sent according to terminal determines formula of selecting stocks, and screening, which meets, in all listed stocks selects stocks
The stock of formula, obtains result of selecting stocks.Terminal uploads natural language, carries out screening operation in server end, there is no need to again will
A large amount of stock certificate data downloads to terminal on server, not only saves download time, accelerates speed of selecting stocks, improves and select stocks
Efficiency, and the data without saving all listed stocks in the terminal, realized at the end that capacity is smaller, processing speed is slower
It is quickly selected stocks on end, investor is facilitated to select stocks anywhere or anytime, it is greatly convenient to provide for investor.
Step 15, send described in select stocks result to terminal.
A kind of share-selecting method based on natural language provided in this embodiment, including natural language is received, according to default rule
The natural language is then parsed, generative grammar tree determines formula of selecting stocks according to the syntax tree, according to the formula of selecting stocks, sieve
Choosing meets the stock of the formula of selecting stocks, and is selected stocks as a result, result of selecting stocks described in sending is to terminal, server is sent out according to terminal
The natural language sent determines formula of selecting stocks, so that investor increases what investor selected stocks without learning complicated formula of selecting stocks
Convenience reduces difficulty of selecting stocks, and improves efficiency of selecting stocks, also, server screened according to formula of selecting stocks selected stocks as a result,
Without sending stock certificate data to terminal, the time of data transmission is saved, efficiency of selecting stocks is improved, meanwhile, server sends choosing
Stock result facilitates investor to select stocks anywhere or anytime, solving amateur investor in the prior art can not letter to terminal
Singly, the problem of quickly being selected stocks according to formula of selecting stocks.
Fig. 3 is a kind of implementation process schematic diagram of the share-selecting method based on natural language provided by Embodiment 2 of the present invention,
As shown in figure 3, the share-selecting method based on natural language of the present embodiment, comprising:
Step 31 obtains natural language.
Server obtains natural language, specifically, the natural language of terminal transmission can be obtained in real time with server,
The natural language for being pre-stored in local side can be obtained from local side, the present embodiment is not specifically limited.
Step 32 judges whether the natural language is related to stock.
The natural language that terminal is sent may be uncorrelated to stock, for example, " I will filter out amount of increase and be greater than 5 percent
Stock " is natural language relevant to stock, and " I will go to Beijing " is and the incoherent natural language of stock.Therefore, it is necessary to right
The natural language of acquisition is judged.Server carries out semantic analysis to the natural language of acquisition, judges the natural language got
Whether speech is related to stock, if related, executes step 33, otherwise, executes step 34.
Step 33 receives the natural language.
Server determine natural language be it is relevant to stock, then receive the natural language of acquisition.It jumps and executes step 35.
Step 34 abandons the natural language.
Server determine natural language be it is incoherent with stock, then abandon the natural language of acquisition.
Natural language described in step 35, abbreviation.
Even if natural language is relevant to stock, but still including incoherent word or word, such as " I will filter out amount of increase
Words such as " we " in stock greater than 5 percent " delete these incoherent words, can reduce parsing complexity, add
It selects stocks fastly speed." I will filter out the stock that amount of increase is greater than 5 percent " passes through Reduction, the natural language after obtaining abbreviation
Speech " screening amount of increase is greater than 5 percent stock ".
Step 36 parses the natural language after abbreviation, generative grammar tree according to the preset rules.
Natural language after abbreviation is parsed, generative grammar tree.With the natural language after abbreviation, " screening amount of increase is greater than
For 5 percent stock ", according to preset rules, the syntax tree for parsing generation is to indicate " amount of increase is greater than 5 percent "
Tree, as shown in Fig. 2 (1).With the natural language " screening amount of increase is greater than 1 percent, and net profit is greater than 1,000,000,000 stock " after abbreviation
For, according to preset rules, the syntax tree of generation is parsed to indicate " amount of increase is greater than 1 percent, and net profit is greater than 1,000,000,000 "
Tree, as shown in Fig. 2 (2).
It not only requires semanteme constant when abbreviation, and requires word terse, therefore preset rules not only include semantic analysis,
Further include meaning of a word analysis, the word that equivalent is stated in natural language is also parsed, for example, " searching amount of increase and being greater than percentage
Five stock ", " obtain amount of increase be greater than 5 percent stock ", " screening amount of increase be greater than 5 percent stock ", " in screening
The stock to rise more than 5 percent ", " screening rising range be greater than 5 percent stock " and " ascensional range be greater than percent
The meaning of the statements such as five stock " is all the same.
The diversity of natural language is taken into account in the present embodiment, compared to the single statement side of traditional formula of selecting stocks
Formula, a variety of form of presentation of the present embodiment are not necessarily to by fixed language format input, thus it is more flexible, facilitate investor to select
Stock operation.
Step 37 determines formula of selecting stocks according to the syntax tree.
Step 38, formula of selecting stocks according to, screening meet the stock of the formula of selecting stocks, obtain result of selecting stocks.
Step 39, send described in select stocks result to terminal.
The present embodiment step 37 respectively corresponds the step 13 of embodiment one to step 15, one step 13 of reference implementation example to 39
To describing accordingly in step 15, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
A kind of share-selecting method based on natural language provided in this embodiment, including natural language is obtained, judge nature language
Whether speech is related to stock, if related, receives natural language, otherwise, abandons natural language.Natural language described in abbreviation, according to
Preset rules parse the natural language after abbreviation, and generative grammar tree determines formula of selecting stocks according to the syntax tree, according to the choosing
Stock formula, screening meet the stock of the formula of selecting stocks, and are selected stocks as a result, result of selecting stocks described in sending is to terminal, server
The natural language sent according to terminal determines formula of selecting stocks, so that investor increases throwing without learning complicated formula of selecting stocks
The convenience that money person selects stocks, reduces difficulty of selecting stocks, and improves efficiency of selecting stocks, also, server is screened according to formula of selecting stocks
To selecting stocks as a result, save the time of data transmission without sending stock certificate data to terminal, improve efficiency of selecting stocks, meanwhile, clothes
Business device transmission selects stocks result to terminal, facilitates investor to select stocks anywhere or anytime, solves amateur throwing in the prior art
The problem of money person can not simply and quickly be selected stocks according to formula of selecting stocks.
Fig. 4 is that the embodiment of the present invention three provides a kind of implementation process schematic diagram of share-selecting method based on natural language, such as
Shown in Fig. 4, the method for the present embodiment the following steps are included:
Step 41, the language for receiving user's input.
The executing subject of the present embodiment is the device of selecting stocks based on natural language, specifically, device of selecting stocks is terminal, the end
End can be smart phone, tablet computer, desktop computer or notebook, and the present embodiment is not specifically limited.
Step 42 pre-processes the language of user input, obtains natural language.
Terminal receives the language of user's input, pre-processes to it, obtains natural language.
Optionally, the form of the language of user's input includes: text and/or voice and/or image.
The language of the user's input received is uniformly processed for convenience, when the language that terminal receives user's input is non-text
When this form, it is pre-processed, to be converted into textual form.
Specifically, the language to user input pre-processes, comprising:
Whether the form for judging the language of user's input includes voice;
When the form of the language of user input includes voice, the language for the user's input for converting the speech form
The language inputted for the user of textual form;
Whether the form for judging the language of user's input includes image;
When the form of the language of user input includes image, the language of user's input of conversion described image form
The language inputted for the user of textual form.
Optionally, the language of terminal received user input can be inputted in real time at the terminal by investor, can also be by
Investor, which pre-enters, is stored in terminal or other devices, is read or is imported when needed.
By terminal in this present embodiment it is received be user's input language, investor is without learning complicated public affairs of selecting stocks
Formula increases the convenience that investor selects stocks, reduces difficulty of selecting stocks, improve efficiency of selecting stocks.
Optionally, the language to user input pre-processes, further includes: correction is received and/or converts
Textual form user input language.
Since the language of the textual form of user's input is likely to occur wrong word or terminal converting speech, image format
User's input language when identification error, cause it is received or conversion textual form user input language accuracy compared with
Low, by end correction, the natural language made is more accurate.
Step 43 sends the natural language to server.
Step 44 receives the result of selecting stocks that the server is sent.
Obtained natural language is sent to server by terminal, determines formula of selecting stocks according to natural language by server, sieve
It is selected stocks as a result, obtained result of selecting stocks is back to terminal, number of the terminal without downloading, saving all listed stocks again
According to, save transmission data time, accelerate speed of selecting stocks, improve efficiency of selecting stocks, realize capacity it is smaller, processing speed
It spends in slower terminal and is quickly selected stocks, facilitate investor to select stocks anywhere or anytime, provided greatly for investor
It is convenient.
A kind of share-selecting method based on natural language provided in this embodiment, the language including receiving user's input, to institute
The language for stating user's input pre-processes, and obtains natural language, sends the natural language to server, receive the service
What device was sent selects stocks as a result, in terminal side without inputting formula of selecting stocks, so that investor increases without learning complicated formula of selecting stocks
The convenience for having added input, reduces difficulty of selecting stocks, improves efficiency of selecting stocks, and natural language is uploaded to server by terminal,
Server side is selected stocks as a result, without in terminal downloads, preservation stock certificate data, is saved the time of transmission data, is accelerated
It selects stocks speed, improves efficiency of selecting stocks, realize and select stocks in the terminal that capacity is smaller, processing speed is slower, facilitate throwing
Money person selects stocks anywhere or anytime, and it is greatly convenient to provide for investor, solves amateur investor in the prior art
The problem of can not simply and quickly being selected stocks according to formula of selecting stocks.
Fig. 5 is a kind of schematic diagram for device of selecting stocks based on natural language that the embodiment of the present invention four provides, such as Fig. 5 institute
Show, the device of the present embodiment comprises the following modules:
Receiving module 51, for receiving natural language.
Parsing module 52, for parsing the natural language, generative grammar tree according to preset rules.
Determining module 53, for determining formula of selecting stocks according to the syntax tree.
Screening module 54, for formula of selecting stocks according to, screening meets the stock of the formula of selecting stocks, and obtains knot of selecting stocks
Fruit.
Sending module 55, for sending the result of selecting stocks to terminal.
A kind of device of selecting stocks based on natural language provided in this embodiment, for realizing described in embodiment one based on from
The share-selecting method of right language, wherein the function of modules can be referred to and be described accordingly in embodiment of the method, realization principle
Similar with technical effect, details are not described herein again.
Fig. 6 is a kind of schematic diagram for device of selecting stocks based on natural language that the embodiment of the present invention five provides, such as Fig. 6 institute
Show, the device of the present embodiment comprises the following modules:
Receiving module 61, for receiving the language of user's input.
Preprocessing module 62, the language for inputting to the user pre-process, and obtain natural language.
Sending module 63, for sending the natural language to server.
The receiving module 61 is also used to receive the result of selecting stocks that the server is sent.
A kind of device of selecting stocks based on natural language provided in this embodiment, for realizing described in embodiment three based on from
The share-selecting method of right language, wherein the function of modules can be referred to and be described accordingly in embodiment of the method, realization principle
Similar with technical effect, details are not described herein again.
Fig. 7 is the schematic diagram for the terminal device that the embodiment of the present invention six provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72, such as program of selecting stocks.The processor 70 realizes above-mentioned each side of selecting stocks when executing the computer program 72
Step in method embodiment, such as step 11 shown in FIG. 1 is to 15.Alternatively, the processor 70 executes the computer program
The function of each unit in above-mentioned each system embodiment, such as the function of module 51 to 55 shown in Fig. 5 are realized when 72.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the terminal device 7 is described.For example, the computer program 72 can be divided
It is cut into receiving module, parsing module, determining module, screening module, sending module (unit module in virtual bench), each module
Concrete function is as follows:
Receiving module, for receiving natural language.
Parsing module, for parsing the natural language, generative grammar tree according to preset rules.
Determining module, for determining formula of selecting stocks according to the syntax tree.
Screening module, for formula of selecting stocks according to, screening meets the stock of the formula of selecting stocks, and obtains knot of selecting stocks
Fruit.
Sending module, for sending the result of selecting stocks to terminal.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device 7 may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that figure
7 be only the example of terminal device 7, does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device 7 can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device 7
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the terminal device is divided into different functional unit or module, to complete
All or part of function described above.Each functional unit in embodiment, module can integrate in one processing unit,
It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units, above-mentioned collection
At unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function
Unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned system
The specific work process of unit in system, module, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions
Signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of share-selecting method based on natural language characterized by comprising
Natural language is received, parses the natural language, generative grammar tree according to preset rules;
Formula of selecting stocks is determined according to the syntax tree;
According to the formula of selecting stocks, screening meets the stock of the formula of selecting stocks, and obtains result of selecting stocks;
Result of selecting stocks described in transmission is to terminal.
2. the method as described in claim 1, which is characterized in that the reception nature language pack includes:
Obtain natural language;
Judge whether the natural language is related to stock;
If related, the natural language is received;
Otherwise, the natural language is abandoned.
3. method according to claim 1 or 2, which is characterized in that it is described to parse the natural language according to preset rules, it is raw
At syntax tree, comprising:
Natural language described in abbreviation;
Natural language after parsing abbreviation according to the preset rules, generative grammar tree.
4. a kind of share-selecting method based on natural language characterized by comprising
Receive the language of user's input;
The language of user input is pre-processed, natural language is obtained;
The natural language is sent to server;
Receive the result of selecting stocks that the server is sent.
5. method as claimed in claim 4, which is characterized in that the form of the language of user input include: text and/or
Voice and/or image;
The language to user input pre-processes, comprising:
Whether the form for judging the language of user's input includes voice;
When the form of the language of user input includes voice, the language for the user's input for converting the speech form is text
The language of user's input of this form;
Whether the form for judging the language of user's input includes image;
When the form of the language of user input includes image, the language of user's input of conversion described image form is text
The language of user's input of this form.
6. method as claimed in claim 5, which is characterized in that the language to user input pre-processes, also
Include:
Correct the language of user's input of received and/or conversion textual form.
7. a kind of device of selecting stocks based on natural language characterized by comprising
Receiving module, for receiving natural language;
Parsing module, for parsing the natural language, generative grammar tree according to preset rules;
Determining module, for determining formula of selecting stocks according to the syntax tree;
Screening module, for formula of selecting stocks according to, screening meets the stock of the formula of selecting stocks, and obtains result of selecting stocks;
Sending module, for sending the result of selecting stocks to terminal.
8. a kind of device of selecting stocks based on natural language characterized by comprising
Receiving module, for receiving the language of user's input;
Processing module, the language for inputting to the user pre-process, and obtain natural language;
Sending module, for sending the natural language to server;
The receiving module is also used to receive the result of selecting stocks that the server is sent.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811103391.4A CN109584056A (en) | 2018-09-20 | 2018-09-20 | A kind of share-selecting method and device based on natural language |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811103391.4A CN109584056A (en) | 2018-09-20 | 2018-09-20 | A kind of share-selecting method and device based on natural language |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109584056A true CN109584056A (en) | 2019-04-05 |
Family
ID=65919820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811103391.4A Pending CN109584056A (en) | 2018-09-20 | 2018-09-20 | A kind of share-selecting method and device based on natural language |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109584056A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112232824A (en) * | 2019-07-15 | 2021-01-15 | 招商证券股份有限公司 | Abstract syntax tree-based risk result calculation method and equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182069A (en) * | 2017-12-28 | 2018-06-19 | 深圳市创梦天地科技股份有限公司 | Programming language transformation method, terminal device and computer-readable medium |
-
2018
- 2018-09-20 CN CN201811103391.4A patent/CN109584056A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182069A (en) * | 2017-12-28 | 2018-06-19 | 深圳市创梦天地科技股份有限公司 | Programming language transformation method, terminal device and computer-readable medium |
Non-Patent Citations (1)
Title |
---|
林沛坤: "财经问答系统问句解析子系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112232824A (en) * | 2019-07-15 | 2021-01-15 | 招商证券股份有限公司 | Abstract syntax tree-based risk result calculation method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240078386A1 (en) | Methods and systems for language-agnostic machine learning in natural language processing using feature extraction | |
CN104020994B (en) | Stream process definition device and stream process based on streaming system define method | |
CN108268431B (en) | The method and apparatus of paragraph vectorization | |
CN107463683A (en) | The naming method and terminal device of code element | |
CN109657251A (en) | Method and apparatus for translating sentence | |
US11461317B2 (en) | Method, apparatus, system, device, and storage medium for answering knowledge questions | |
CN109408247A (en) | Interaction data processing method and device | |
CN107967333A (en) | Voice search method, voice searching device and electronic equipment | |
CN107943895A (en) | Information-pushing method and device | |
CN111523324A (en) | Training method and device for named entity recognition model | |
CN109684476A (en) | A kind of file classification method, document sorting apparatus and terminal device | |
CN110472043A (en) | A kind of clustering method and device for comment text | |
CN110119445A (en) | The method and apparatus for generating feature vector and text classification being carried out based on feature vector | |
CN110210038A (en) | Kernel entity determines method and its system, server and computer-readable medium | |
CN109284367A (en) | Method and apparatus for handling text | |
CN109190123A (en) | Method and apparatus for output information | |
CN109584056A (en) | A kind of share-selecting method and device based on natural language | |
CN110245226A (en) | Enterprises ' industry classification method and its device | |
CN111859933B (en) | Training method, recognition method, device and equipment for maleic language recognition model | |
CN111651989B (en) | Named entity recognition method and device, storage medium and electronic device | |
CN112883088B (en) | Data processing method, device, equipment and storage medium | |
CN108959343A (en) | A kind of method and device of text modification | |
CN117093619A (en) | Rule engine processing method and device, electronic equipment and storage medium | |
CN109446052B (en) | Verification method and device for application program | |
CN110222286A (en) | Information acquisition method, device, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190405 |