CN107273254A - A kind of system and method that text is screened under windows - Google Patents

A kind of system and method that text is screened under windows Download PDF

Info

Publication number
CN107273254A
CN107273254A CN201710457531.7A CN201710457531A CN107273254A CN 107273254 A CN107273254 A CN 107273254A CN 201710457531 A CN201710457531 A CN 201710457531A CN 107273254 A CN107273254 A CN 107273254A
Authority
CN
China
Prior art keywords
keyword
module
text
input
prompt message
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.)
Granted
Application number
CN201710457531.7A
Other languages
Chinese (zh)
Other versions
CN107273254B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710457531.7A priority Critical patent/CN107273254B/en
Publication of CN107273254A publication Critical patent/CN107273254A/en
Application granted granted Critical
Publication of CN107273254B publication Critical patent/CN107273254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Digital Computer Display Output (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of system that text is screened under windows, it is characterized in that, including file selection module, keyword judge module, screening module and result output module, file selection module, which according to the absolute path of filesselected replicate, creates a temporary file;Keyword judge module judges number of input keywords, and the first keyword is transmission prompt message under air situation condition to result output module;First keyword according to the input results of keyword to call screening module in the case of empty;The keyword strings that screening module is sent according to keyword judge module are screened, and choose text to be shown to be sent to result output module according to the selection result;As a result output module sends prompt message to display terminal in the case where the first keyword is air situation shape;The text to be shown sent in the case where the first keyword is not air situation shape according to screening module is to display terminal.

Description

A kind of system and method that text is screened under windows
Technical field
The present invention relates to server test technical field, especially a kind of system that text is screened under windows and side Method.
Background technology
Onserver-class is various in the market, and the configuration that every kind of server can arrange in pairs or groups is also varied, in test During, each internal memory collocation CPU will carry out RMT tests, and the data result content of test is more, and processing is complicated, workflow Journey is cumbersome.Test result is simply screened according to single keyword in existing technology, if there is repetition inquiry in file Keyword, it is impossible to the very first time navigates to the desired result of user, adds the testing time of tester.
The content of the invention
It is an object of the invention to provide a kind of system and method that text is screened under windows, key can be reduced The repetitive rate of word screening, by the expected result of the direct location client of multiple keywords, shortens the testing time of tester.
To achieve the above object, the present invention uses following technical proposals:
A kind of system that text is screened under windows, including file selection module, keyword judge module, screening mould Block and result output module, file selection module, which according to the absolute path of filesselected replicate, creates a temporary file;
Keyword judge module judges number of input keywords, and the first keyword is transmission prompt message under air situation condition to knot Fruit output module;First keyword according to the input results of keyword to call screening module in the case of empty;
The keyword strings that screening module is sent according to keyword judge module are screened, and are selected according to the selection result In text to be shown be sent to result output module;
As a result output module sends prompt message to display terminal in the case where the first keyword is air situation shape;In the first keyword It is not the text to be shown that is sent according to screening module under air situation shape to display terminal.
Further, the keyword judge module includes the first keyword judging unit, the second keyword judging unit With character transmitting element, the first keyword judging unit is in the case where the first keyword is air situation shape, and character transmitting element sends prompting Information, in the case where the first keyword is not air situation shape, input character string is converted to and meets call format to result output module Isometric character string;Second keyword judging unit is in the second keyword without under effective input situation, and character transmitting element is only by the One keyword strings are sent to screening module, and the second keyword judging unit is effectively inputted under situation in the second keyword, Second keyword is inputted character and is converted to and meets the isometric character string of call format, character transmitting element is by the first keyword word Symbol string and the second keyword strings are sent to screening module.
Further, the screening module is chosen in the case where the first keyword has input and the second keyword does not input situation There is position and later a few style of writing paragraphs of this formation first for the first time in first keyword;Screening module is in the first keyword and Two keywords have under input situation simultaneously, choose the first keyword to occur position and later several rows for the first time, while choosing the There is position and later the second paragraph of a few row formation for the first time in two keywords, and the first paragraph or second segment are shaved one's head and deliver to result Display module.
Further, the result display module will receive prompt message and text message is shown in display terminal Show, result display module includes prompt message display unit and text message display unit, prompt message display unit reads word The prompt message that symbol transmitting element is sent is shown in display terminal;Text message display unit receives what screening module was sent The content on the first paragraph or second segment road is shown in display terminal.
A kind of method that text is screened under windows, comprises the following steps:
S1, file selection step:File selection module obtains the absolute path of filesselected, and according to the exhausted of filesselected Path replicate and creates a temporary file;
S2, keyword judgment step:Whether be empty, if the first keyword is sky, jump to step if judging the first keyword Rapid S3;Such as the first keyword is not sky, judges the input condition of the second keyword, jumps to step S4;
S3, prompt message step display:It can not be empty prompt message to export the first keyword, and empties input field, jumped Go to step S2;
S4, keyword screening step:The keyword strings sent according to keyword judge module carry out text screening, only There is the first keyword to input under situation, choose the first keyword to occur position and later the first paragraph of a few row formation for the first time; In the case where the first keyword and the second keyword have input situation simultaneously, the first keyword is chosen to occur position for the first time and later several OK, while choosing the second keyword to occur position and later the second paragraph of a few row formation for the first time;
S5, text step display:The content of text of the first paragraph or the second paragraph is shown in display terminal, interim text is removed Part, discharges memory space.
The beneficial effects of the invention are as follows,
GUI (figure) interface that the present invention is write based on JAVA language, file selection module filesselected server test The first keyword and the second keyword are inputted after destination file, is carried out on screening output result to the screen of software, test result The double keyword repetitive rates of file are few, and if there is double keyword Repeating Fields, can be simultaneously displayed on screen, solve existing There is technology to be screened only according to single keyword, and if system have repetition inquire about keyword can not be accurately positioned lack Fall into, this programme reduces the repetitive rate of keyword screening, turn to determine position user expectation result, operation letter by multiple keywords It is single, shorten the testing time.
Brief description of the drawings
Fig. 1 is present system structural representation;
Fig. 2 is the inventive method flow chart of steps.
Embodiment
As shown in figure 1, a kind of system that text is screened under windows, including file selection module, keyword judge mould Block, screening module and result output module, file selection module, which according to the absolute path of filesselected replicate, creates one Temporary file;Keyword judge module judges number of input keywords, the first keyword be send under air situation condition prompt message to As a result output module;First keyword according to the input results of keyword to call screening module in the case of empty;Screening module Screened according to the keyword strings that keyword judge module is sent, and choose text to be shown to send according to the selection result Give result output module;As a result output module sends prompt message to display terminal in the case where the first keyword is air situation shape; One keyword is not the text to be shown that is sent according to screening module under air situation shape to display terminal.
Keyword judge module includes the first keyword judging unit, the second keyword judging unit and character and sends single Member, the first keyword judging unit judges the situation of the first keyword according to the numerical value of the first key tag position, is closed first Key word is under air situation shape, character transmitting element sends prompt message to result output module, is not air situation shape in the first keyword Under, input character string is converted to the isometric character string for meeting call format;.
Keyword judging unit judges the input condition of the second keyword, second according to the situation of the second key tag position Key tag position second_flag set up 0,1 two kinds of flag bits, if the second keyword is sky, by the second keyword mark Will position second_flag puts 1, if otherwise setting to 0 user does not input the second keyword, acquiescence returns to null, if input One or more spaces then also return to null, if user has the other characters of input, character is converted into isometric character string, Background program can be called program according to the flag bit of the second keyword and be screened.In the second keyword without effective input feelings Under shape, the first keyword strings are only sent to screening module by character transmitting element, and the second keyword judging unit is second Under keyword effectively input situation, the second keyword input character is converted to the isometric character string for meeting call format, word Symbol transmitting element sends the first keyword strings and the second keyword strings to screening module.
Screening module has an input in the first keyword and the second keyword does not input under situation and chooses the first keyword the Once there is position and later a few style of writing paragraphs of this formation first;Screening module in the first keyword and the second keyword simultaneously Have under input situation, choose the first keyword to occur position and later several rows for the first time, while choosing the second keyword first It is secondary position and later the second paragraph of a few row formation occur, the first paragraph or second segment are shaved one's head and deliver to result display module.
Result display module will receive prompt message and text message is shown in display terminal, result display module bag Prompt message display unit and text message display unit are included, prompt message display unit reads carrying for character transmitting element transmission Show that information is shown in display terminal;Text message display unit receives the first paragraph or the second segment road that screening module is sent Content shown in display terminal.
As shown in Fig. 2 a kind of method that text is screened under windows, comprises the following steps:
S1, file selection step:File selection module obtains the absolute path of filesselected, and according to the exhausted of filesselected Path replicate and creates a temporary file;
S2, keyword judgment step:Whether be empty, if the first keyword is sky, jump to step if judging the first keyword Rapid S3;Such as the first keyword is not sky, judges the input condition of the second keyword, jumps to step S4;
S3, prompt message step display:It can not be empty prompt message to export the first keyword, and empties input field, jumped Go to step S2;
S4, keyword screening step:The keyword strings sent according to keyword judge module carry out text screening, only There is the first keyword to input under situation, choose the first keyword to occur position and later the first paragraph of a few row formation for the first time; In the case where the first keyword and the second keyword have input situation simultaneously, the first keyword is chosen to occur position for the first time and later several OK, while choosing the second keyword to occur position and later the second paragraph of a few row formation for the first time;
S5, text step display:The content of text of the first paragraph or the second paragraph is shown in display terminal, interim text is removed Part, discharges memory space.
Although above-mentioned the embodiment of the present invention is described with reference to accompanying drawing, not to present invention protection model The limitation enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not Need to pay various modifications or deform still within protection scope of the present invention that creative work can make.

Claims (5)

1. a kind of system that text is screened under windows, it is characterised in that judge mould including file selection module, keyword Block, screening module and result output module, file selection module, which according to the absolute path of filesselected replicate, creates one Temporary file;
Keyword judge module judges number of input keywords, and the first keyword is defeated to result to send prompt message under air situation condition Go out module;First keyword according to the input results of keyword to call screening module in the case of empty;
The keyword strings that screening module is sent according to keyword judge module are screened, and choose desire according to the selection result Display text is sent to result output module;
As a result output module sends prompt message to display terminal in the case where the first keyword is air situation shape;It is not in the first keyword The text to be shown sent under air situation shape according to screening module is to display terminal.
2. a kind of system that text is screened under windows as claimed in claim 1, it is characterised in that the keyword is sentenced Disconnected module includes the first keyword judging unit, the second keyword judging unit and character transmitting element, and the first keyword judges Unit is in the case where the first keyword is air situation shape, and character transmitting element sends prompt message to result output module, crucial first Under word is not air situation shape, character string will be inputted and be converted to meets the isometric character string of call format;Second keyword judging unit In the second keyword without under effective input situation, the first keyword strings are only sent to screening module by character transmitting element, Second keyword input character is converted to and met under the second keyword effectively input situation by the second keyword judging unit The isometric character string of call format, character transmitting element sends the first keyword strings and the second keyword strings to sieve Modeling block.
3. a kind of system that text is screened under windows as claimed in claim 1, it is characterised in that the screening module The first keyword have an input and the second keyword do not input under situation choose the first keyword occur for the first time position and Later several paragraphs of this formation first of composing a piece of writing;Screening module has under input situation simultaneously in the first keyword and the second keyword, choosing In the first keyword for the first time occur position and later several rows, while choose the second keyword for the first time occur position and with The second paragraph of a few row formation, the first paragraph or second segment are shaved one's head and deliver to result display module afterwards.
4. a kind of system that text is screened under windows as claimed in claim 1, it is characterised in that the result is shown Module will receive prompt message and text message is shown in display terminal, and result display module includes prompt message and shows single Member and text message display unit, prompt message display unit read the prompt message of character transmitting element transmission in display terminal Shown;Text message display unit receives the first paragraph of screening module transmission or the content on second segment road in display terminal Shown.
5. a kind of method that text is screened under windows of system as described in any one of Claims 1-4 claim, its It is characterised by, comprises the following steps:
S1, file selection step:File selection module obtains the absolute path of filesselected, and according to the absolute road of filesselected Footpath, which replicate, creates a temporary file;
S2, keyword judgment step:Whether be empty, if the first keyword is sky, jump to step S3 if judging the first keyword; Such as the first keyword is not sky, judges the input condition of the second keyword, jumps to step S4;
S3, prompt message step display:It can not be empty prompt message to export the first keyword, and empties input field, jumped to Step S2;
S4, keyword screening step:The keyword strings sent according to keyword judge module carry out text screening, only the Under one keyword input situation, the first keyword is chosen to occur position and later the first paragraph of a few row formation for the first time; One keyword and the second keyword have under input situation simultaneously, choose the first keyword to occur position and later several rows for the first time, The second keyword is chosen to occur position and later the second paragraph of a few row formation for the first time simultaneously;
S5, text step display:The content of text of the first paragraph or the second paragraph is shown in display terminal, temporary file is removed, Discharge memory space.
CN201710457531.7A 2017-06-16 2017-06-16 System and method for screening text under windows Active CN107273254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710457531.7A CN107273254B (en) 2017-06-16 2017-06-16 System and method for screening text under windows

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710457531.7A CN107273254B (en) 2017-06-16 2017-06-16 System and method for screening text under windows

Publications (2)

Publication Number Publication Date
CN107273254A true CN107273254A (en) 2017-10-20
CN107273254B CN107273254B (en) 2021-03-12

Family

ID=60067645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710457531.7A Active CN107273254B (en) 2017-06-16 2017-06-16 System and method for screening text under windows

Country Status (1)

Country Link
CN (1) CN107273254B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936894A (en) * 2006-10-12 2007-03-28 魏新成 Method for searching key word and inputting in turn search service character symbol on address search column
US20110035178A1 (en) * 2009-08-07 2011-02-10 Hon Hai Precision Industry Co., Ltd. System and method for generating a test file of a printed circuit board
CN102902688A (en) * 2011-07-27 2013-01-30 汉王科技股份有限公司 Method and device for displaying results of keyword search
CN105005562A (en) * 2014-04-15 2015-10-28 索意互动(北京)信息技术有限公司 Retrieval result display processing method and apparatus
CN106095779A (en) * 2016-05-26 2016-11-09 达而观信息科技(上海)有限公司 A kind of search method based on key word position and device
CN107194007A (en) * 2017-06-20 2017-09-22 哈尔滨工业大学 A kind of integrated management system of spacecraft isomery test data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936894A (en) * 2006-10-12 2007-03-28 魏新成 Method for searching key word and inputting in turn search service character symbol on address search column
US20110035178A1 (en) * 2009-08-07 2011-02-10 Hon Hai Precision Industry Co., Ltd. System and method for generating a test file of a printed circuit board
CN102902688A (en) * 2011-07-27 2013-01-30 汉王科技股份有限公司 Method and device for displaying results of keyword search
CN102902688B (en) * 2011-07-27 2016-08-10 汉王科技股份有限公司 Keyword lookup result presentation method and device
CN105005562A (en) * 2014-04-15 2015-10-28 索意互动(北京)信息技术有限公司 Retrieval result display processing method and apparatus
CN106095779A (en) * 2016-05-26 2016-11-09 达而观信息科技(上海)有限公司 A kind of search method based on key word position and device
CN107194007A (en) * 2017-06-20 2017-09-22 哈尔滨工业大学 A kind of integrated management system of spacecraft isomery test data

Also Published As

Publication number Publication date
CN107273254B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN107329747A (en) A kind of method and device for generating multi-threaded pattern
WO2021027256A1 (en) Method and apparatus for processing interactive sequence data
US6647390B2 (en) System and methods for standardizing data for design review comparisons
CN111159415B (en) Sequence labeling method and system, and event element extraction method and system
CN107886439A (en) Insurance products development approach, device, equipment and computer-readable recording medium
US9740599B2 (en) Directed random sequence generation method and apparatus for testing software
CN110276456A (en) A kind of machine learning model auxiliary construction method, system, equipment and medium
CN107368346A (en) A kind of code generating method and device based on metadata and script engine
CN105204617A (en) Method and system for input method editor integration
CN110968730B (en) Audio mark processing method, device, computer equipment and storage medium
CN107315682A (en) Test browser-safe method, device, storage medium and electronic equipment
CN105204860A (en) Method and device for rapidly generating user-defined static Web page
CN109558317A (en) The processing method and processing device of test case
CN108733644A (en) A kind of text emotion analysis method, computer readable storage medium and terminal device
CN109873813A (en) Text input abnormality monitoring method, device, computer equipment and storage medium
WO2006007588A2 (en) Method and system for test case generation
CN105279600B (en) Mark in Working procedure management system extends adding method
CN106022357A (en) Data input calibration method and terminal
CN107301189A (en) A kind of method for exhibiting data and device
CN110209780A (en) A kind of question template generation method, device, server and storage medium
CN107273254A (en) A kind of system and method that text is screened under windows
CN109977153B (en) Table big data export method
US6260046B1 (en) Product architecture retrieval information system
CN111382051A (en) API automatic test method and test device
CN115238092A (en) Entity relationship extraction method, device, equipment and 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
TA01 Transfer of patent application right

Effective date of registration: 20210209

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 1601, floor 16, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant