CN104268233B - Combine the generation method and device of keyword - Google Patents

Combine the generation method and device of keyword Download PDF

Info

Publication number
CN104268233B
CN104268233B CN201410505634.2A CN201410505634A CN104268233B CN 104268233 B CN104268233 B CN 104268233B CN 201410505634 A CN201410505634 A CN 201410505634A CN 104268233 B CN104268233 B CN 104268233B
Authority
CN
China
Prior art keywords
keyword
target
data source
source file
combination
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
CN201410505634.2A
Other languages
Chinese (zh)
Other versions
CN104268233A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410505634.2A priority Critical patent/CN104268233B/en
Publication of CN104268233A publication Critical patent/CN104268233A/en
Application granted granted Critical
Publication of CN104268233B publication Critical patent/CN104268233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The invention discloses a kind of generation methods and device of combination keyword.Wherein, the generation method for combining keyword includes:Receive selection instruction;According to selection instruction, the selection target data source file from multiple data source files, wherein each data source file is used to storage keyword, and target data source file is any data source file in multiple data source files;The keyword in target data source file is obtained, target keyword is obtained;Again selection instruction is received, until getting multiple target keywords from multiple data source files;The multiple target keywords got are combined, combination keyword is generated.Through the invention, it solves the problems, such as that the generating mode of combination keyword in the prior art so that operating personnel are cumbersome, has achieved the effect that improve user job efficiency.

Description

Combine the generation method and device of keyword
Technical field
The present invention relates to data processing fields, in particular to a kind of generation method and device of combination keyword.
Background technology
It is studied in keyword and extends field, user wishes different crucial phrases to expand new key altogether Word.Generally used in SEO either SEM or electric business user.SEO (Search Engine Optimization) is translated into search Engine optimizes, and SEO is to improve current web in relation to the nature in search engine exclusively with the search rule of search engine The mode of ranking.SEM is the abbreviation of Search Engine Marketing, and Chinese means search engine marketing, is a kind of new Network marketing form, SEM done be exactly comprehensively and effectively carries out network marketing and popularization using search engine.SEO Or the foundation that keyword combines is core word+expansion word (long-tail word) by SEM.The foundation that keyword combines is quotient by electric business Primary keyword+attribute keywords of product/product.Wherein, core word primary keyword:Refer to very important keyword;Long-tail word Attribute keywords:Non-targeted keyword but the keyword of search flow can also be brought on website, referred to as long-tail keyword, also It is the expansion word of product, such as:XX wrist-watches or wrist-watch XXX, wrist-watch is exactly the primary keyword of product at this time, can utilize this Keyword expands out many and user product or the relevant long-tail keyword of Business Name with user.
In the prior art, using simple keyword combination tool, keyword is combined, concrete operations are:
User inputs crucial etymology 1 and crucial etymology 2, and the wherein keyword in keyword etymology 1 is core word, keyword Keyword in etymology 2 is expansion word, the tool using the keyword in keyword etymology 1 as core, by its respectively with keyword Keyword in source 2 carries out combined crosswise and generates new keywords, that is, combines keyword.
But said program has as a drawback that:User can only input keyword in the form of being manually entered or replicate stickup List, and define and can only input 2 groups of key etymologies, cause the negligible amounts for once generating combination keyword, user to need The problem of multi-pass operation, and without the data source composite type of identifier combination keyword, user is caused to check that result is not easy to arrange Look into problematic keyword.
For the problem that the generating mode of combination keyword in the related technology makes operating personnel cumbersome, at present not yet It is proposed effective solution scheme.
Invention content
The main purpose of the present invention is to provide a kind of generation methods and device of combination keyword, to solve the prior art The problem that the generating mode of middle combination keyword makes operating personnel cumbersome.
According to an aspect of the invention, there is provided a kind of generation method of combination keyword.
It is according to the present invention combination keyword generation method include:Receive selection instruction;According to the selection instruction, from Selection target data source file in multiple data source files, wherein each data source file is used to storage keyword, institute It is any data source file in multiple data source files to state target data source file;Obtain the target data source file In keyword, obtain target keyword;Again selection instruction is received, until being got from multiple data source files Multiple target keywords;And multiple target keywords that combination is got, generate the combination keyword.
Further, the keyword in the target data source file is obtained, obtaining target keyword includes:Described in judgement Whether target data source file is character string;In the case where it is the character string to judge the target data source file, connect Input content is received, and determines that the input content is the target keyword;And judging the target data source file In the case of not being the character string, the path of the target data source file is determined, and from the target data source file The target keyword is obtained under path.
Further, the multiple target keywords got are combined, generating the combination keyword includes:It obtains more First object keyword in a target keyword and the second target keyword, wherein the first object keyword is The target keyword got for the first time, the second target keyword are in the multiple target keywords got except described The m target keywords except first object keyword, the coding of m second target keywords are followed successively by K21 extremely The natural number that K2m, m are 2 or more;Using the first object keyword as core word, and using the second target keyword K2i as Expansion word combines the expansion word and the core word, obtains combination keyword A2i, wherein i is taken successively 1 to m.
Further, the quantity of the first object keyword is n, and the coding of the n first object keywords is successively For K11 to K1n, the natural number that n is 2 or more, using the first object keyword as core word, and with the second target keyword K2i combines the expansion word and the core word as expansion word, obtains combination keyword A2i and includes:With first object key Word K1j combines the expansion word and the core word, obtains as core word, and using the second target keyword K2i as expansion word To combination keyword A1j2i, wherein j is taken successively 1 to n.
Further, the generation method further includes:While combining the core word and the expansion word, record packet The title for including the title of the data source file of the core word and the data source file with reference to the expansion word, it is crucial to obtain combination Word identifies;And show the combination keyword and the combination keyword identification.
Further, before showing the combination keyword and the combination keyword identification, the generation method is also Including:Judge to whether there is combination keyword identical in combination keyword Za in combination keyword Za ' to combination keyword Zs, Wherein, a takes 1 to s-1 successively, and a '=a+1, s are the number of the combination keyword;And judging the combination keyword Za ' to exist in the combination keyword Zs with it is described combine the identical combination keywords of keyword Za in the case of, deletion and The identical combination keyword of the combination keyword Za.
Further, third target keyword includes the sub- keyword of p target, wherein the third target keyword is The coding of any target keyword in multiple target keywords, the p sub- keywords of target is followed successively by K31 extremely The natural number that K3p, p are 2 or more, the keyword in obtaining the target data source file, obtains the third target critical After word, the generation method further includes:Judge to whether there is in the sub- keyword K3b ' of target to the sub- keyword K3p of target and mesh Mark the identical sub- keywords of target of sub- keyword K3b, wherein b takes 1 to p-1 successively, b '=b+1;Judging target There is the sub- keyword of target identical with the sub- keyword K3b of the target in keyword K3b ' to the sub- keyword K3p of the target In the case of, delete the sub- keyword of target identical with the sub- keyword K3b of the target.
According to another aspect of the present invention, a kind of generating means of combination keyword are additionally provided, which includes: Receiving unit, for receiving selection instruction;Selecting unit, for according to the selection instruction, being selected from multiple data source files Select target data source file, wherein each data source file is used to storage keyword, and the target data source file is Any data source file in multiple data source files;Acquiring unit, for obtaining in the target data source file Keyword obtains target keyword;Processing unit, for receiving selection instruction again, until from multiple data source files In get multiple target keywords;And assembled unit, for combining the multiple target keywords got, Generate the combination keyword.
Further, the acquiring unit includes:Judgment module, for judging whether the target data source file is word Symbol string;First determining module, in the case where it is the character string to judge the target data source file, receiving input Content, and determine that the input content is the target keyword;And second determining module, for judging the target In the case that data source file is not the character string, the path of the target data source file is determined, and from the number of targets According to obtaining the target keyword under the path of source file.
Further, the assembled unit includes:Acquisition module, for obtaining first in multiple target keywords Target keyword and the second target keyword, wherein the first object keyword is the target critical got for the first time Word, the second target keyword are m in the multiple target keywords got in addition to the first object keyword The coding of the target keyword, m second target keywords is followed successively by K21 to K2m, the natural number that m is 2 or more;Group Mold block:For using the first object keyword as core word, and using the second target keyword K2i as expansion word, group The expansion word and the core word are closed, combination keyword A2i is obtained, wherein i is taken successively 1 to m.
Further, the composite module includes:Submodule is combined, for being when the quantity of the first object keyword The coding of n, n first object keywords is followed successively by K11 to K1n, when the natural number that n is 2 or more, with first object key Word K1j combines the expansion word and the core word, obtains as core word, and using the second target keyword K2i as expansion word To combination keyword A1j2i, wherein j is taken successively 1 to n.
Further, the generating means further include:Recording unit, for combining the core word and the expansion word While, record includes the name of the title of the data source file of the core word and the data source file with reference to the expansion word Claim, obtains combination keyword identification;And display unit, for showing the combination keyword and the combination keyword mark Know.
Further, the generating means further include:First judging unit, for showing the combination keyword and institute Before stating combination keyword identification, judge to combine in keyword Za ' to combination keyword Zs with the presence or absence of in combination keyword Za Identical combination keyword, wherein a takes 1 to s-1 successively, and a '=a+1, s are the number of the combination keyword;And first Deleting unit combines key for existing in judging the combination keyword Za ' to the combination keyword Zs with described In the case of the identical combination keywords of word Za, deletes and combine the identical combination keywords of keyword Za with described.
Further, third target keyword includes the sub- keyword of p target, wherein the third target keyword is The coding of any target keyword in multiple target keywords, the p sub- keywords of target is followed successively by K31 extremely The natural number that K3p, p are 2 or more, the generating means further include:Second judgment unit, for judging the sub- keyword K3b ' of target To in the sub- keyword K3p of target whether there is the sub- keyword of target identical with the sub- keyword K3b of target, wherein b takes 1 successively To p-1, b '=b+1;Second deleting unit, for judging the sub- keyword K3b ' of the target to the sub- keyword of the target In the case of there is the sub- keyword of target identical with the sub- keyword K3b of the target in K3p, delete crucial with target The sub- keyword of the identical targets of word K3b.
In the present invention, using reception selection instruction;According to the selection instruction, mesh is selected from multiple data source files Mark data source file, wherein each data source file is used to storage keyword, and the target data source file is multiple Any data source file in the data source file;The keyword in the target data source file is obtained, target pass is obtained Keyword;Again selection instruction is received, until getting multiple target keywords from multiple data source files;With And multiple target keywords that combination is got, generate the combination keyword.By according to selection instruction, selecting mesh Data source file is marked, keyword is got from target data source file, and can be repeated according to user demand above-mentioned Process obtains the keyword in multiple data source files, until having obtained user wants the multiple target keywords obtained, in turn Multiple target keywords are combined, combination keyword are obtained, because the unlimited number for determining data source file, allows user It is needed to select multiple data source files according to it, and the keyword in multiple data source files is combined, be compared to existing There is user in technology that two groups of etymologies can only be selected to generate combination keyword every time, solves the life for combining keyword in the prior art At mode so that the cumbersome problem of operating personnel, has achieved the effect that improve user job efficiency.
Description of the drawings
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the generation method of combination keyword according to the ... of the embodiment of the present invention;And
Fig. 2 is the schematic diagram of the generation method of combination keyword according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
In the absence of conflict, the features in the embodiments and the embodiments of the present application can be combined with each other.Below will The present invention will be described in detail with reference to the accompanying drawings and embodiments.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method can be used for implementing the application device embodiment is provided, It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructions It is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein Sequence execute shown or described step.
According to embodiments of the present invention, a kind of generation method of combination keyword is provided, Fig. 1 is according to embodiments of the present invention Combination keyword generation method flow chart, as shown in Figure 1, this method includes following step S102 to step S110:
S102:Selection instruction is received, the selection instruction is the instruction for the type that user is used to select data source file, data The type of source file can be any in TXT texts, EXCEL file, csv file or character string.When the number of user's selection When according to the type of source file being EXCEL file, because may include multiple worksheets in EXCEL file, the specified tool of user be needed The title of body running table.
S104:According to selection instruction, the selection target data source file from multiple data source files, wherein each data Source file is used to storage keyword, and target data source file is any data source file in multiple data source files;Specifically Ground, user can provide multiple data source files, and storage has keyword in these data source files, wherein each data source The quantity for the keyword stored in file is stored according to user demand, can be one, or and it is multiple, it is selected according to user It is file type, corresponding data source file is selected in multiple data source files, at this point, selected corresponding data source document Part is target data source file.
S106:The keyword in target data source file is obtained, obtains target keyword, target keyword is target data The general designation of the keyword stored in source file.
S108:Again selection instruction is received, until multiple target keywords are got from multiple data source files, it can To repeat above-mentioned steps, until the keyword in multiple data source files that user provides all is got.
S110:The multiple target keywords got are combined, combination keyword is generated.
In embodiments of the present invention, by according to selection instruction, selecting target data source file, from target data source document Keyword is got in part, and can repeat the above process according to user demand, is obtained in multiple data source files Multiple target keywords are combined until having obtained user wants the multiple target keywords obtained, obtain group by keyword Close keyword allows user to be needed to select multiple data source files according to it because of the unlimited number for determining data source file, and Keyword in multiple data source files is combined, two groups of etymologies can only be selected every time by being compared to user in the prior art Combination keyword is generated, solves the problems, such as that the generating mode of combination keyword so that operating personnel are cumbersome, and then reach Improve the effect of user job efficiency.
It preferably, can be as follows in the generation method for the combination keyword that the embodiment of the present invention is provided Obtain the keyword in target data source file:
Judge whether target data source file is character string, that is, judge the target data source file selected type whether for Character string.
In the case where it is character string to judge target data source file, input content is received, and determines that input content is Target keyword;If judging, the type of target data source file is character string, and user can be straight by input equipments such as keyboards The one or more keywords of input are connect to be separated with comma between each keyword, inputted at this time if inputting multiple keywords One or more keywords be target keyword.
In the case where it is character string to judge target data source file not, the path of target data source file is determined, and Target keyword is obtained under the path of target data source file, if when receiving instruction, the data source file class of user's selection Type is any in TXT texts, EXCEL file or csv file, and user is needed to specify the path of the data source file of selection, Corresponding data source file can be found according to this path, and gets the keyword on the data source file, i.e. mesh Mark keyword.
In embodiments of the present invention, after user selects data source file according to its demand, according to data source document The difference of part type, have different keywords acquisition modes rather than it is in the prior art be manually entered or paste keyword, it is special It is not when needing the keyword that is manually entered or pastes a fairly large number of, further to improve the facility of user's operation Property.
Preferably, the embodiment of the present invention provided combination keyword generation method in, combine get it is multiple Target keyword, generating combination keyword includes:The multiple target keywords got are divided into two types first, are respectively First object keyword and the second target keyword, wherein first object keyword is the target keyword got for the first time, the Two target keywords are the m target keyword obtained in multiple target keywords in addition to first object keyword, m a second The coding of target keyword is followed successively by K21 to K2m, the natural number that m is 2 or more, that is, in multiple target keywords, removes first Target keyword except target keyword is the second target keyword.When there are 5 data source files, just there are 5 targets Keyword has 1 first object keyword and 4 the second target keywords in 5 target keywords, and the value of m is 4, then 4 the The coding of two target keywords is K21, K22, K23, K24 respectively;Secondly, using first object keyword as core word, and with Second target keyword K2i combines expansion word and core word as expansion word, obtains combination keyword A2i, wherein i takes successively 1 to m, i.e., using first object keyword as core word, group is carried out respectively at the core word that the second target keyword of difference is used as It closes, obtains combination keyword.
In embodiments of the present invention, using first object keyword in multiple target keywords as core word, the first mesh is removed The target keyword marked outside keyword is used as expansion word successively, and core word is combined with multiple expansion words respectively, improves The quantity for generating combination keyword, improves the working efficiency of user, saves the working time.
Specifically, when the quantity of first object keyword is n, the coding of n first object keyword is followed successively by K11 extremely When the natural number that K1n, n are 2 or more, using first object keyword as core word, and using the second target keyword K2i as expansion Word is opened up, expansion word and core word are combined, obtaining combination keyword A2i includes:Using first object keyword K1j as core word, And using the second target keyword K2i as expansion word, expansion word and core word are combined, obtains combination keyword A1j2i, wherein j It is taken successively 1 to n.In embodiments of the present invention, it is assumed that first object keyword is 3, the volume of these three first object keywords Code is followed successively by K11, K12 and K13, and the second target keyword K21 (i=1) is used as expansion word, at this time first using K11 as core Word is combined with K21, is obtained combination keyword A1121, is secondly combined using K12 as core word with K21, and combination keyword is obtained Then A1221 is combined using K13 as core word with K21, combination keyword A1321 is obtained, according to aforesaid way, by these three First keyword is combined from the second different target keywords, obtains multiple combination keywords.
Preferably, in the generation method for the combination keyword that the embodiment of the present invention is provided, which further includes: While combining core word and expansion word, record includes the title of the data source file of core word and the data with reference to expansion word The title of source file obtains combination keyword identification;And combination keyword identification is shown while keyword is combined in display. Assuming that there are three data source files, title is respectively data source 1, data source 2 and data source 3, the key that each data source includes Word is as shown in table 1 below:
Table 1
Data source 1 Data source 2 Data source 3
Mobile phone 1 It is domestic Straight panel
Mobile phone 2 Import Intelligence
Mobile phone 3 Slip lid
The generation method of the combination keyword provided according to embodiments of the present invention, by the key in 3 data source files Word generates combination keyword, and shows that combination keyword and combination keyword are as shown in table 2 below:
Table 2
Data source file title Combine keyword
Data source 1+ data sources 2 Mobile phone 1 is domestic
Data source 1+ data sources 2 Mobile phone 2 is domestic
Data source 1+ data sources 2 Mobile phone 3 is domestic
Data source 1+ data sources 2 1 import of mobile phone
Data source 1+ data sources 2 2 import of mobile phone
Data source 1+ data sources 2 3 import of mobile phone
Data source 1+ data sources 3 1 straight panel of mobile phone
Data source 1+ data sources 3 2 straight panel of mobile phone
Data source 1+ data sources 3 3 straight panel of mobile phone
Data source 1+ data sources 3 1 intelligence of mobile phone
Data source 1+ data sources 3 2 intelligence of mobile phone
Data source 1+ data sources 3 3 intelligence of mobile phone
Data source 1+ data sources 3 1 slip lid of mobile phone
Data source 1+ data sources 3 2 slip lid of mobile phone
Data source 1+ data sources 3 3 slip lid of mobile phone
In embodiments of the present invention, by when generating combination keyword, obtaining combination keyword identification, and combination is closed Keyword mark is shown jointly with combination keyword, the combination keyword that user investigates out composition error is facilitated, especially in life When a fairly large number of at combination keyword, further achieve the effect that improve user job efficiency.
Preferably, in display combination keyword and the combination that before combining keyword identification, the embodiment of the present invention is provided The generation method of keyword further includes:Judge in combination keyword Za ' to combination keyword Zs with the presence or absence of in combination keyword The identical combination keywords of Za, wherein a takes 1 to s-1 successively, and a '=a+1, s are the number for combining keyword;Judging group Close exist in keyword Za ' to combination keyword Zs with combine the identical combination keywords of keyword Za in the case of, deletion and Combine the identical combination keywords of keyword Za.In embodiments of the present invention, it is assumed that generate 20 combination keywords altogether, work as a When=1, a ' is 2, needs to judge to combine in keyword Z2 to combination keyword Z20 whether have the combination keyword repeated with Z1, If there is the combination keyword repeated with Z1, the combination keyword repeated with Z1 is deleted;Following a 2 takes 20 successively, according to upper Judgment mode is stated, if any the combination keyword repeated, is then deleted.
In embodiments of the present invention, it is compared, is deleted by the way that each combination keyword is combined keyword with other The combination keyword repeated, reduces the redundancy of data, has achieved the effect that save memory space.
Preferably, third target keyword includes the sub- keyword of p target, wherein third target keyword is multiple mesh The either objective keyword in keyword is marked, the coding of the sub- keyword of p target is followed successively by K31 to K3p, the nature that p is 2 or more Number, the keyword in obtaining target data source file, after obtaining third target keyword, what the embodiment of the present invention was provided Combination keyword generation method further include:Judge in the sub- keyword K3b ' of target to the sub- keyword K3p of target with the presence or absence of with The identical sub- keywords of target of the sub- keyword K3b of target, wherein b takes 1 to p-1 successively, b '=b+1;Judging target pass In the case of there is the sub- keyword of target identical with the sub- keyword K3b of target in keyword K3b ' to the sub- keyword K3p of target, delete Except the sub- keyword of target identical with the sub- keyword K3b of target.
In embodiments of the present invention, after the keyword in obtaining target source file obtains target keyword, pass through judgement Whether the sub- keyword of target for including in each target keyword repeats, and the sub- keyword of target repeated is deleted, life is reduced At the possibility of repeated combination keyword, achieve the effect that provide user satisfaction.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of generation dress for implementing the generation method of said combination keyword is additionally provided It sets, which is mainly used for executing the generation method that the above of the embodiment of the present invention is provided, below to of the invention real The generating means for applying the process that example is provided do specific introduction:
According to an embodiment of the invention, a kind of generating means of combination keyword are provided, Fig. 2 is implemented according to the present invention The schematic diagram of the generating means of the combination keyword of example, as shown in Fig. 2, the device mainly includes:Receiving unit 10, selecting unit 20, acquiring unit 30, processing unit 40 and assembled unit 50, wherein:
Receiving unit 10 is the type that user is used to select data source file for receiving selection instruction, the selection instruction Instruction, the type of data source file can be any in TXT texts, EXCEL file, csv file or character string.Work as user The type of the data source file selected for EXCEL file when because in EXCEL file may include multiple worksheets, need to use Specify the title of specific works table in family.
Selecting unit 20 is used for according to selection instruction, the selection target data source file from multiple data source files, wherein Each data source file is used to storage keyword, and target data source file is any data source document in multiple data source files Part;Specifically, user can provide multiple data source files, and storage has keyword in these data source files, wherein each The quantity for the keyword stored in data source file is stored according to user demand, can be one, or it is multiple, according to Family selection is file type, corresponding data source file is selected in multiple data source files, at this point, selected corresponding number It is target data source file according to source file.
Acquiring unit 30 is used to obtain the keyword in target data source file, obtains target keyword, target keyword General designation for the keyword stored in target data source file.
Processing unit 40 for receiving selection instruction again, until getting multiple targets from multiple data source files Keyword can repeat to call receiving unit 10, selecting unit 20 and acquiring unit 30, until multiple data that user is provided Keyword in source file is all got.
Assembled unit 50 generates combination keyword for combining the multiple target keywords got.
In embodiments of the present invention, by according to selection instruction, selecting target data source file, from target data source document Keyword is got in part, and can repeat the above process according to user demand, is obtained in multiple data source files Keyword until having obtained user wants the multiple target keywords obtained, and then multiple target keywords is combined, is obtained User is set to be needed to select multiple data source documents according to it because of the unlimited number for determining data source file to combination keyword Part, and the keyword in multiple data source files is combined, two can only be selected every time by being compared to user in the prior art Group etymology generates combination keyword, solves the problems, such as that the generating mode of combination keyword so that operating personnel are cumbersome, reaches To the effect for improving user job efficiency.
Preferably, in the generating means for the combination keyword that the embodiment of the present invention is provided, acquiring unit 30 is mainly wrapped Include judgment module, the first determining module and the second determining module, wherein
Judgment module judges the target data source file of selection for judging whether target data source file is character string Type whether be character string;First determining module is used to, in the case where it is character string to judge target data source file, connect Input content is received, and determines that input content is target keyword, the type of target data source file is character string if judging, is used Family can directly input one or more keywords by input equipments such as keyboards, if inputting multiple keywords, each keyword Between be separated with comma, the one or more keywords inputted at this time be target keyword;Second determining module is used for In the case of judging that target data source file is not character string, the path of target data source file is determined, and from target data Target keyword is obtained under the path of source file, if when receiving instruction, the data source file type of user's selection is TXT texts It is any in sheet, EXCEL file or csv file, need user to specify the path of the data source file of selection, according to this road Diameter can find corresponding data source file, and get the keyword on the data source file, i.e. target keyword.
In embodiments of the present invention, after user selects data source file according to its demand, according to data source document The difference of part type, have different keywords acquisition modes rather than it is in the prior art be manually entered or paste keyword, it is special It is not when needing the keyword that is manually entered or pastes a fairly large number of, further to improve the facility of user's operation Property.
Preferably, in the generating means for the combination keyword that the embodiment of the present invention is provided, assembled unit 60 includes obtaining Modulus block and composite module, wherein acquisition module is used to obtain the first object keyword and second in multiple target keywords Target keyword, wherein first object keyword is the target keyword got for the first time, and the second target keyword is to get Multiple target keywords in m target keyword in addition to first object keyword, the coding of m the second target keywords It is followed successively by K21 to K2m, the natural number that m is 2 or more, that is, the multiple target keywords got are divided into two types, respectively It is first object keyword and the second target keyword, in multiple target keywords, the mesh in addition to first object keyword It is the second target keyword to mark keyword.When there are 5 data source files, just there are 5 target keywords, 5 target criticals There are 1 first object keyword and 4 the second target keywords in word, the value of m is 4, then the coding of 4 the second target keywords It is K21, K22, K23, K24 respectively;Composite module is used for using first object keyword as core word, and with the second target critical Word K2i combines expansion word and core word as expansion word, obtains combination keyword A2i, wherein i takes 1 to m successively, i.e., with the One target keyword is combined respectively at the core word that the second target keyword of difference is used as, is combined as core word Keyword.
In embodiments of the present invention, using first object keyword in multiple target keywords as core word, the first mesh is removed The target keyword marked outside keyword is used as expansion word successively, and core word is combined with multiple expansion words respectively, improves The quantity for generating combination keyword, improves the working efficiency of user, saves the working time.
Specifically, in embodiments of the present invention, composite module includes combination submodule, and combination submodule is used for when first The quantity of target keyword is n, and the coding of n first object keyword is followed successively by K11 to K1n, n for 2 or more natural number when, Using first object keyword K1j as core word, and using the second target keyword K2i as expansion word, expansion word and core are combined Heart word obtains combination keyword A1j2i, wherein j is taken successively 1 to n.In embodiments of the present invention, it is assumed that first object keyword It it is 3, the coding of these three first object keywords is followed successively by K11, K12 and K13, and the second target keyword K21 (i=1) makees It for expansion word, is combined first using K11 as core word with K21 at this time, combination keyword A1121 is obtained, secondly using K12 as core Heart word is combined with K21, is obtained combination keyword A1221, is then combined using K13 as core word with K21, and combination keyword is obtained These three first keywords are combined from the second different target keywords, obtain multiple according to aforesaid way by A1321 Combine keyword.
Preferably, in the generating means for the combination keyword that the embodiment of the present invention is provided, which further includes Recording unit and display unit, wherein recording unit is used for while combining core word and expansion word, and record includes core word Data source file title and with reference to expansion word data source file title, obtain combination keyword identification;Display unit For showing combination keyword and combination keyword identification.Assuming that there are three data source file, title is respectively data source 1, number According to source 2 and data source 3, the keyword that each data source includes is as shown in table 1, and the combination provided according to embodiments of the present invention is closed Keyword in 3 data source files is generated combination keyword, and shows combination keyword and group by the generation method of keyword It is as shown in table 2 to close keyword.
In embodiments of the present invention, by when generating combination keyword, obtaining combination keyword identification, and combination is closed Keyword mark is shown jointly with combination keyword, the combination keyword that user investigates out composition error is facilitated, especially in life When a fairly large number of at combination keyword, further achieve the effect that improve user job efficiency.
Preferably, in the generating means for the combination keyword that the embodiment of the present invention is provided, which further includes First judging unit and the first deleting unit, wherein the first judging unit is used to show combination keyword and group in display unit Before closing keyword identification, judge to combine in keyword Za ' to combination keyword Zs with the presence or absence of identical in combination keyword Za Combination keyword, wherein a takes 1 to s-1 successively, and a '=a+1, s are the number for combining keyword;First deleting unit is used for There is the case where with keyword Za identical combination keywords are combined in judging to combine keyword Za ' to combination keyword Zs Under, it deletes and combines the identical combination keywords of keyword Za.In embodiments of the present invention, it is assumed that generate 20 combinations altogether and close Keyword, as a=1, a ' is 2, needs to judge to combine in keyword Z2 to combination keyword Z20 whether have the combination repeated with Z1 Keyword deletes the combination keyword repeated with Z1 if there is the combination keyword repeated with Z1;Following a 2 takes successively 20, it is then deleted if any the combination keyword repeated according to above-mentioned judgment mode.
In embodiments of the present invention, it is compared, is deleted by the way that each combination keyword is combined keyword with other The combination keyword repeated, reduces the redundancy of data, has achieved the effect that save memory space.
Preferably, third target keyword is the either objective keyword in multiple target keywords, third target critical Word includes the sub- keyword of p target, and the coding of the sub- keyword of p target is followed successively by K31 to K3p, the natural number that p is 2 or more, In the generating means for the combination keyword that the embodiment of the present invention is provided, which further includes second judgment unit and second Deleting unit, wherein second judgment unit is for judging to whether there is in the sub- keyword K3b ' of target to the sub- keyword K3p of target The sub- keyword of target identical with the sub- keyword K3b of target, wherein b takes 1 to p-1 successively, b '=b+1;Second deleting unit is used In in judging the sub- keyword K3b ' of target to the sub- keyword K3p of target exist target identical with the sub- keyword K3b of target In the case of sub- keyword, the sub- keyword of target identical with the sub- keyword K3b of target is deleted.
In embodiments of the present invention, after the keyword in obtaining target source file obtains target keyword, pass through judgement Whether the sub- keyword of target for including in each target keyword repeats, and the sub- keyword of target repeated is deleted, life is reduced At the possibility of repeated combination keyword, achieve the effect that provide user satisfaction.
It can be seen from the above description that the generating mode that the present invention solves combination keyword makes operating personnel Cumbersome problem has achieved the effect that improve user job efficiency.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, either they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of generation method of combination keyword applied to search engine marketing field, which is characterized in that including:
Receive selection instruction, wherein the selection instruction is the instruction of the type for selecting data source file;
According to the file type in the selection instruction, the selection target data source file from multiple data source files, wherein every A data source file is used to storage keyword, and the target data source file is appointing in multiple data source files One data source file;
The keyword in the target data source file is obtained, target keyword is obtained;
Again selection instruction is received, until getting multiple target keywords from multiple data source files;With And
The multiple target keywords got are combined, generate the combination keyword, wherein will be in multiple target keywords For first object keyword as core word, the target keyword in addition to the first object keyword is used as expansion word successively, and The core word is combined with multiple expansion words respectively, the first object keyword be get for the first time it is described Target keyword,
Wherein, the keyword in the target data source file is obtained, obtaining target keyword includes:
Judge whether the target data source file is character string;
In the case where it is the character string to judge the target data source file, input content is received, and determination is described defeated It is the target keyword to enter content;And
In the case where it is the character string to judge the target data source file not, the target data source file is determined Path, and obtain the target keyword under the path of the target data source file.
2. generation method according to claim 1, which is characterized in that the multiple target keywords got are combined, Generating the combination keyword includes:
Obtain the first object keyword and the second target keyword in multiple target keywords, wherein first mesh It is the target keyword got for the first time to mark keyword, and the second target keyword is the multiple target criticals got M in word in addition to the first object keyword target keywords, the codings of m second target keywords according to Secondary is K21 to K2m, the natural number that m is 2 or more;
Using the first object keyword as core word, and using the second target keyword K2i as expansion word, combine the expansion Word and the core word are opened up, combination keyword A2i is obtained, wherein i is taken successively 1 to m.
3. generation method according to claim 2, which is characterized in that the quantity of the first object keyword is n, and n is a The coding of the first object keyword is followed successively by K11 to K1n, the natural number that n is 2 or more, with the first object keyword As core word, and using the second target keyword K2i as expansion word, the expansion word and the core word is combined, group is obtained Closing keyword A2i includes:
Using first object keyword K1j as core word, and using the second target keyword K2i as expansion word, combine the expansion Word and the core word are opened up, combination keyword A1j2i is obtained, wherein j is taken successively 1 to n.
4. generation method according to claim 2 or 3, which is characterized in that the generation method further includes:
Combining the core word and while the expansion word, record include the data source file of the core word title with With reference to the title of the data source file of the expansion word, combination keyword identification is obtained;And
Show the combination keyword and the combination keyword identification.
5. a kind of generating means of combination keyword applied to search engine marketing field, which is characterized in that including:
Receiving unit, for receiving selection instruction, wherein the selection instruction is the finger of the type for selecting data source file It enables;
Selecting unit is used for according to the file type in the selection instruction, the selection target data from multiple data source files Source file, wherein each data source file is used to storage keyword, and the target data source file is multiple numbers According to any data source file in source file;
Acquiring unit obtains target keyword for obtaining the keyword in the target data source file;
Processing unit, for receiving selection instruction again, until being got from multiple data source files multiple described Target keyword;And
Assembled unit generates the combination keyword, wherein will be more for combining the multiple target keywords got First object keyword is as core word in a target keyword, and the target keyword in addition to the first object keyword is successively It is combined respectively with multiple expansion words as expansion word, and by the core word, headed by the first object keyword The secondary target keyword got,
Wherein, the acquiring unit includes:
Judgment module, for judging whether the target data source file is character string;
First determining module, in the case where it is the character string to judge the target data source file, receiving input Content, and determine that the input content is the target keyword;And
Second determining module, in the case where it is the character string to judge the target data source file not, determining institute The path of target data source file is stated, and the target keyword is obtained under the path of the target data source file.
6. generating means according to claim 5, which is characterized in that the assembled unit includes:
Acquisition module, for obtaining first object keyword and the second target keyword in multiple target keywords, In, the first object keyword is the target keyword got for the first time, the second target keyword be get it is more The m target keywords in a target keyword in addition to the first object keyword, m second targets The coding of keyword is followed successively by K21 to K2m, the natural number that m is 2 or more;
Composite module:For using the first object keyword as core word, and using the second target keyword K2i as extension Word combines the expansion word and the core word, obtains combination keyword A2i, wherein i is taken successively 1 to m.
7. generating means according to claim 6, which is characterized in that the composite module includes:
Submodule is combined, for being n, the coding of the n first object keywords when the quantity of the first object keyword K11 to K1n is followed successively by, when the natural number that n is 2 or more, using first object keyword K1j as core word, and with the second target Keyword K2i combines the expansion word and the core word as expansion word, obtains combination keyword A1j2i, wherein j is successively It takes 1 to n.
8. the generating means described according to claim 6 or 7, which is characterized in that the generating means further include:
Recording unit, for while combining the core word and the expansion word, record to include the data of the core word The title of the title of source file and the data source file of the reference expansion word, obtains combination keyword identification;And
Display unit, for showing the combination keyword and the combination keyword identification.
CN201410505634.2A 2014-09-26 2014-09-26 Combine the generation method and device of keyword Active CN104268233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410505634.2A CN104268233B (en) 2014-09-26 2014-09-26 Combine the generation method and device of keyword

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410505634.2A CN104268233B (en) 2014-09-26 2014-09-26 Combine the generation method and device of keyword

Publications (2)

Publication Number Publication Date
CN104268233A CN104268233A (en) 2015-01-07
CN104268233B true CN104268233B (en) 2018-07-13

Family

ID=52159755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410505634.2A Active CN104268233B (en) 2014-09-26 2014-09-26 Combine the generation method and device of keyword

Country Status (1)

Country Link
CN (1) CN104268233B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164521A (en) * 2013-03-11 2013-06-19 亿赞普(北京)科技有限公司 Keyword calculation method and device based on user browse and search actions
CN103377226A (en) * 2012-04-25 2013-10-30 中国移动通信集团公司 Intelligent search method and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456058B (en) * 2010-11-02 2014-03-19 阿里巴巴集团控股有限公司 Method and device for providing category information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377226A (en) * 2012-04-25 2013-10-30 中国移动通信集团公司 Intelligent search method and system thereof
CN103164521A (en) * 2013-03-11 2013-06-19 亿赞普(北京)科技有限公司 Keyword calculation method and device based on user browse and search actions

Also Published As

Publication number Publication date
CN104268233A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN110147437A (en) A kind of searching method and device of knowledge based map
CN101650717B (en) Method and system for saving storage space of database
CN104679855A (en) Playlist creation method and terminal device
CN101996195A (en) Searching method and device of voice information in audio files and equipment
CN104866985B (en) The recognition methods of express delivery odd numbers, apparatus and system
EP2635960A1 (en) Determination of category information using multiple stages
WO2016101811A1 (en) Information arrangement method and apparatus
CN108197243A (en) Method and device is recommended in a kind of input association based on user identity
CN109902087A (en) For the data processing method and device of question and answer, server
CN107766396A (en) resource data management method and device
CN103870553A (en) Input resource pushing method and system
CN110009514A (en) Extracting method, device, terminal and the computer readable storage medium of data
CN105095236A (en) Advertisement filtering method and device
CN113535749A (en) Query statement generation method and device
CN103076894A (en) Method and equipment for building input entries for object identity information according to object identity information
CN106156262A (en) A kind of search information processing method and system
CN110012049B (en) Information push method, system, server and computer readable storage medium
CN106257449B (en) A kind of information determines method and apparatus
CN103399879B (en) The interested entity preparation method and device of daily record are searched for based on user
CN110555023B (en) Data storage method and device based on credit contract
KR101761177B1 (en) Method for mining important pattern of high rank k, apparatus performing the same and storage medium storing the same
CN104268233B (en) Combine the generation method and device of keyword
CN104298786B (en) A kind of image search method and device
CN106658444A (en) Short message channel provider selection method and terminal
CN103164522A (en) Method for obtaining linkman by end-user in social software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Generation method and device of combined keyword

Effective date of registration: 20190531

Granted publication date: 20180713

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: Beijing Guoshuang Technology Co.,Ltd.

CP02 Change in the address of a patent holder