A kind of key message extracting method based on mobile terminal instant messaging applicationTechnical field
The present invention relates to mobile terminal application and development fields, specifically a kind of to be based on mobile terminal instant messaging applicationKey message extracting method.
Background technique
Instant messaging (Instant Messaging) is communication modes the most popular on current Internet, various eachThe instant message applications of sample also emerges one after another;Service provider also provides more and more abundant Communications service function.It does not accommodateIt doubts, Internet has become real information superhighway.From practical engineering application angle, with Computer Networks PrincipleFor guidance, in conjunction with some common technologies in current network, programming realizes that the Internet chat tool based on C/S framework is conscientiously may be usedCapable.
Current mobile terminal instant messaging application, including wechat, QQ, when good friend's quantity of user reaches certain journeyAfter degree, the quantity of information is also doubled and redoubled therewith.When information content is excessive, user does not have the time completely to read each letterBreath, be easy to cause the omission of key message.
The patent document of Patent No. CN 100410943C discloses a kind of subject content applied in instant messaging and mentionsMethod is taken, comprising steps of extracting the pass from instant message using the highest word of the frequency of occurrences in instant message as keywordKey word;The degree of correlation that each keyword extracted occurs is calculated, which is compared with threshold values, and is being greater than threshold valuesWhen using the keyword of the degree of correlation as subject content.But the technical solution not can solve user information quantity it is excessive when, holdThe problem of easily causing key message to omit.
Summary of the invention
Technical assignment of the invention is against the above deficiency, to provide a kind of key based on mobile terminal instant messaging applicationInformation extracting method avoids letter to solve how to make user easily to focus key message in many and diverse communication informationThe problem of breath is omitted.
Technical assignment of the invention realizes in the following manner, a kind of key based on mobile terminal instant messaging applicationInformation extracting method, this method comprises the following steps:
(1), starting key message, which extracts, applies main program;
(2), judge that key message is extracted and detect whether the application program is to start for the first time using main program:
If 1., the application program be start for the first time, then follow the steps (3);
If 2., the application program be non-initial start, go to step (10);
(3), key message, which is extracted, will enter lists of keywords page using main program;
(4), user adds keyword to lists of keywords;
(5), system enters instant messaging application interface calling authorization page;
(6), user's selection needs the instant messaging application program of information extraction;
(7), key message, which is extracted, carries out the instant messaging using the instant messaging application program that main program jumps to selectionThe Authorized operation of application program;
(8), key message, which is extracted, returns to instant messaging application interface calling authorization page using main program;
(9), judge whether user needs to continue to add other instant messaging application programs for needing to carry out information extraction:
If 1., user need continue to add other instant messaging application programs, repeat step (6) to (8);
2., if you do not need to continuing to add other instant messaging application programs, then follow the steps (10);
(10), key message, which is extracted, enters using main program using main interface, carries out keyword retrieval.
Preferably, it is flat based on iOS platform or Android that key message, which is extracted using main program, in the step (1)The application program for mobile terminal of platform, the application program for mobile terminal include wechat and QQ.
Preferably, if the application program is non-initial start, key message extracts application master in the step (2)Program enters as follows using the step of after main interface, user reconfigures the application program:
(I), user's selection enters the application program configuration page, executes step (II) in next step;
(II), judge whether user needs to configure lists of keywords:
(I) if, user need to carry out lists of keywords configuration, go to step (V) to (VI);
(II) if, user do not need carry out lists of keywords configuration, then follow the steps (III);
(III), judge whether user needs to enter configuration application interface authorization:
(I) if, user carry out configuration application interface authorization, go to step (VII) to (Ⅹ);
(II) if, user do not need to carry out configuration application interface authorization, then follow the steps (IV);
(IV), judge whether user needs to configure using other options:
(I) if, user need to carry out other application option configuration, go to step (Ⅺ) to (Ⅻ);
(II) if, user do not need carry out other application option configuration, go to step (Ⅻ);
(V), into lists of keywords page, in lists of keywords page, user adds keyword to lists of keywords, nextStep executes step ((VI));
(VI), lists of keywords page is returned, then gos to step (Ⅻ);
(VII), authorization page is called into instant messaging application interface, executes step (VIII) in next step;
(VIII), user selects the instant messaging application program authorized, while main program jumps to the Instant Messenger of selectionIt interrogates application program and carries out Authorized operation, execute step ((Ⅸ)) in next step;
(Ⅸ), it returns to instant messaging application interface and calls authorization page, execute step (Ⅹ) in next step;
(Ⅹ), user judges whether to need to continue to add application interface authorization:
(I) continues to add other instant messaging application programs if necessary, then repeats step (VIII) to (Ⅸ);
(II), if you do not need to continuing to add other instant messaging application programs, then go to step (Ⅻ);
(Ⅺ), into other option configuration pages, user modifies corresponding configuration, and other option configurations are returned after completingThe page executes step (Ⅻ) in next step;
(Ⅻ), user's return system main interface carries out keyword retrieval.
Preferably, the step of keyword retrieval, is as follows:
(1), key message is extracted using after main program starting, is presented and is grasped to user by mobile terminal system foregroundMake main interface, passes through mobile terminal system running background operation flow;
(2), key message, which extracts to monitor in turn using main program on mobile terminal system backstage, has each authorized Instant MessengerThe information for interrogating application program reaches state;
(3), key message extraction judges whether there is new information using main program and reaches:
1., if there is new information reach, then follow the steps (four)
If 2., reach without new information, repeat step (2);
(4), key message, which is extracted, enters information list to be processed using the information that main program reaches caching;
(5), key message, which is extracted, checks whether information list to be processed is empty using main program:
If 1., information list to be processed be sky, repeat step (5);
If 2., information list to be processed be not it is empty, then follow the steps (six);
(6), key message extraction is taken out next information to be processed using main program and is handled;
(7), key message, which is extracted, matches information to be processed with each keyword using main program;
(8), judge the predetermined keyword in keyword inventory whether is hit in this information:
If 1., hit predetermined keyword, then follow the steps (nine);
If 2., miss predetermined keyword, repeat step (5);
(9), key message extraction caches this information to be processed using main program and enters in hit information list;
(10), key message extracts the information pushed one by one to user in hit information list using main program;
(11), judge whether user exits key message and extract using main program:
If 1., exit, then follow the steps (12);
If 2., do not exit, go to step (two);
(12) terminate.
Key message extracting method based on mobile terminal instant messaging application of the invention has the advantage that
1, the present invention utilizes keyword retrieval skill by the open interface that widely applied instant messaging application providesArt, the key word information in log that syndication users are paid close attention to facilitate user to focus crucial letter in many and diverse communication informationBreath, avoids key message from omitting;
2, it the present invention is based on the open interface that mobile terminal instant messaging application provides, is mentioned from the communication software of userThe information for taking each to reach, and be input to key message provided by the invention and extract using in main program, key message extractsIt is filtered using main program by keyword, extracts the information that each meets user preset keyword, and push away to userIt send, a large amount of garbage can be read to avoid user in this way, while can timely be located when key message arrivesReason.
Therefore the present invention has the characteristics that design is reasonable, structure is simple, easy to use, multi-purpose content, thus, have goodPopularizing value.
Detailed description of the invention
The following further describes the present invention with reference to the drawings.
Attached drawing 1 is that the key message extracting method applied based on mobile terminal instant messaging is applying stream when starting for the first timeJourney block diagram;
Attached drawing 2 is key message extracting method apply based on mobile terminal instant messaging when applying non-initial startFlow diagram;
Attached drawing 3 is the flow diagram of key search.
Specific embodiment
Referring to Figure of description and specific embodiment to a kind of pass based on mobile terminal instant messaging application of the inventionKey information extracting method is described in detail below.
Embodiment 1:
As shown in Fig. 1, the key message extracting method of the invention based on mobile terminal instant messaging application, this methodInclude the following steps:
(1), starting key message, which extracts, applies main program;Key message extract using main program be based on iOS platform orThe application program for mobile terminal of Android platform, the application program for mobile terminal include wechat and QQ.
(2), judge that key message is extracted and detect whether the application program is to start for the first time using main program:
If 1., the application program be start for the first time, then follow the steps (3);
If 2., the application program be non-initial start, go to step (10);
(3), key message, which is extracted, will enter lists of keywords page using main program;
(4), user adds keyword to lists of keywords;
(5), system enters instant messaging application interface calling authorization page;
(6), user's selection needs the instant messaging application program of information extraction;
(7), key message, which is extracted, carries out the instant messaging using the instant messaging application program that main program jumps to selectionThe Authorized operation of application program;
(8), key message, which is extracted, returns to instant messaging application interface calling authorization page using main program;
(9), judge whether user needs to continue to add other instant messaging application programs for needing to carry out information extraction:
If 1., user need continue to add other instant messaging application programs, repeat step (6) to (8);
2., if you do not need to continuing to add other instant messaging application programs, then follow the steps (10);
(10), key message, which is extracted, enters using main program using main interface, carries out keyword retrieval.
As shown in Fig. 2, in above-mentioned steps (2), if the application program is non-initial start, key message extracts applicationMain program enters as follows using the step of after main interface, user reconfigures the application program:
(I), user's selection enters the application program configuration page, executes step (II) in next step;
(II), judge whether user needs to configure lists of keywords:
(I) if, user need to carry out lists of keywords configuration, go to step (V) to (VI);
(II) if, user do not need carry out lists of keywords configuration, then follow the steps (III);
(III), judge whether user needs to enter configuration application interface authorization:
(I) if, user carry out configuration application interface authorization, go to step (VII) to (Ⅹ);
(II) if, user do not need to carry out configuration application interface authorization, then follow the steps (IV);
(IV), judge whether user needs to configure using other options:
(I) if, user need to carry out other application option configuration, go to step (Ⅺ) to (Ⅻ);
(II) if, user do not need carry out other application option configuration, go to step (Ⅻ);
(V), into lists of keywords page, in lists of keywords page, user adds keyword to lists of keywords, nextStep executes step ((VI));
(VI), lists of keywords page is returned, then gos to step (Ⅻ);
(VII), authorization page is called into instant messaging application interface, executes step (VIII) in next step;
(VIII), user selects the instant messaging application program authorized, while main program jumps to the Instant Messenger of selectionIt interrogates application program and carries out Authorized operation, execute step ((Ⅸ)) in next step;
(Ⅸ), it returns to instant messaging application interface and calls authorization page, execute step (Ⅹ) in next step;
(Ⅹ), user judges whether to need to continue to add application interface authorization:
(I) continues to add other instant messaging application programs if necessary, then repeats step (VIII) to (Ⅸ);
(II), if you do not need to continuing to add other instant messaging application programs, then go to step (Ⅻ);
(Ⅺ), into other option configuration pages, user modifies corresponding configuration, and other option configurations are returned after completingThe page executes step (Ⅻ) in next step;
(Ⅻ), user's return system main interface carries out keyword retrieval.
As shown in Fig. 3, the step of keyword retrieval is as follows:
(1), key message is extracted using after main program starting, is presented and is grasped to user by mobile terminal system foregroundMake main interface, passes through mobile terminal system running background operation flow;
(2), key message, which extracts to monitor in turn using main program on mobile terminal system backstage, has each authorized Instant MessengerThe information for interrogating application program reaches state;
(3), key message extraction judges whether there is new information using main program and reaches:
1., if there is new information reach, then follow the steps (four)
If 2., reach without new information, repeat step (2);
(4), key message, which is extracted, enters information list to be processed using the information that main program reaches caching;
(5), key message, which is extracted, checks whether information list to be processed is empty using main program:
If 1., information list to be processed be sky, repeat step (5);
If 2., information list to be processed be not it is empty, then follow the steps (six);
(6), key message extraction is taken out next information to be processed using main program and is handled;
(7), key message, which is extracted, matches information to be processed with each keyword using main program;
(8), judge the predetermined keyword in keyword inventory whether is hit in this information:
If 1., hit predetermined keyword, then follow the steps (nine);
If 2., miss predetermined keyword, repeat step (5);
(9), key message extraction caches this information to be processed using main program and enters in hit information list;
(10), key message extracts the information pushed one by one to user in hit information list using main program;
(11), judge whether user exits key message and extract using main program:
If 1., exit, then follow the steps (12);
If 2., do not exit, go to step (two);
(12) terminate.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answersWork as understanding, the present invention is not limited to a kind of above-mentioned specific embodiments.On the basis of the disclosed embodiments, the technologyThe technical staff in field can arbitrarily combine different technical features, to realize different technical solutions.
Except for the technical features described in the specification, it all is technically known to those skilled in the art.