CN108810299A - A kind of method, medium and the equipment of information parsing - Google Patents

A kind of method, medium and the equipment of information parsing Download PDF

Info

Publication number
CN108810299A
CN108810299A CN201810540879.7A CN201810540879A CN108810299A CN 108810299 A CN108810299 A CN 108810299A CN 201810540879 A CN201810540879 A CN 201810540879A CN 108810299 A CN108810299 A CN 108810299A
Authority
CN
China
Prior art keywords
flow value
state
type
flow
keyword
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
CN201810540879.7A
Other languages
Chinese (zh)
Other versions
CN108810299B (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.)
Shanghai Shangxiang Network Technology Co.,Ltd.
Original Assignee
Lianshang Xinchang Network 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 Lianshang Xinchang Network Technology Co Ltd filed Critical Lianshang Xinchang Network Technology Co Ltd
Priority to CN201810540879.7A priority Critical patent/CN108810299B/en
Publication of CN108810299A publication Critical patent/CN108810299A/en
Application granted granted Critical
Publication of CN108810299B publication Critical patent/CN108810299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/84Types of notifications
    • H04M15/844Message, e.g. SMS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Accounting & Taxation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses method, medium and the equipment of a kind of parsing of information, after getting the short message for carrying flow information, by the message structure (type and state that determine in the short message each flow value for including) in the short message, each flow value for the type for needing to parse is determined later, as flow value to be resolved, and according to the state of each flow value to be resolved, determine the analysis result of short message.

Description

A kind of method, medium and the equipment of information parsing
Technical field
This application involves method, medium and equipment that information technology field more particularly to a kind of information parse.
Background technology
Currently, all there is the limitations to data traffic for the mobile data flow package of major telecom operators' offer.Example Such as, flow package provides utilizable flow in one month, when exceeding using flow within the moon, then takes limitation online, limitation The charging amount of network speed or increase specific discharge etc. measure.
In the prior art, flow can be determined according to the flow short message received by user by sending short message enquiry The service condition of set meal avoids exceeding set meal range using flow.Alternatively, can also input flow rate set meal in the application Information, and the service condition of flow package is monitored by application.
The application provides a kind of new information analysis method, is monitored to the service condition of flow package.
Invention content
This specification embodiment provides a kind of method, medium and the equipment of information parsing.
This specification embodiment uses following technical proposals:
A kind of method of information parsing, which is characterized in that including:
Obtain the short message for carrying flow information;
Determine the type and state of each flow value that the short message includes;
Each flow value for belonging to the type for needing to parse is determined, as flow value to be resolved;
According to the state of each flow value to be resolved, the corresponding analysis result of flow information that the short message carries is determined, In, the analysis result includes the total amount, usage amount and surplus of flow value.
A kind of computer-readable medium, is stored thereon with computer-readable instruction, and the computer-readable instruction can be located Device is managed to execute to realize method above-mentioned.
A kind of equipment for information parsing, wherein the equipment includes:One or more processors;And it is stored with The memory of computer-readable instruction, the computer-readable instruction make the processor execute such as preceding method when executed Operation.
Above-mentioned at least one technical solution that this specification embodiment uses can reach following advantageous effect:
Method, medium and the equipment provided by this specification will after getting the short message for carrying flow information Message structure (type and state that determine in the short message each flow value for including) in the short message, later determination need to solve Each flow value of the type of analysis as flow value to be resolved, and according to the state of each flow value to be resolved, determines the parsing of short message As a result.It avoids in the prior art, needs manual identified flow service condition, or need the operation being manually entered, it can be direct Short cease into row information that flow information is carried by acquisition parses, and simplifies operation, improves efficiency.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please do not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of process for information parsing that this specification provides;
Fig. 2 is the signal of each keyword and the correspondence of each preset type and each state that this specification provides Figure;
Fig. 3 is a kind of schematic diagram of equipment for information parsing provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of the device of information parsing provided by the embodiments of the present application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of this specification clearer, it is embodied below in conjunction with this specification Technical scheme is clearly and completely described in example and corresponding attached drawing.Obviously, described embodiment is only this Shen Please a part of the embodiment, instead of all the embodiments.Based on the embodiment in specification, those of ordinary skill in the art are not having There is the every other embodiment obtained under the premise of making creative work, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical solution that each embodiment of the application provides is described in detail.
Fig. 1 is a kind of flow diagram for information parsing that some embodiments of the present application provide, and specifically be may include following Step:
S100:Obtain the short message for carrying flow information.
Currently, one of the method for inquiry mobile data flow package service condition is:It is looked by being sent to telecom operators Short message is ask, so that telecom operators return to the short message for carrying flow information.Wherein, which includes that transmission inquiry is short The mobile data flow package service condition of the cell-phone number of letter.
In some embodiments provided by the present application, which needs what is parsed to carry flow information Short message, to determine mobile data flow package service condition.Specifically, can be by installing client on mobile terminals, by this The short message sending of what mobile terminal received carry flow information executes the information by server and parses to server Journey.Alternatively, can be also parsed into row information the mobile terminal is local, then specifically can by the mobile terminal client or refer to The process of fixed application execution information parsing, the application parse the flow and are not limited by the execution of that equipment specifically, It can be configured as needed.
Wherein, which can be the equipment such as mobile phone, tablet computer, which can be an individual equipment Or can also be the system being made of multiple devices, the application does not limit.The client is in the mobile terminal Application, can pass through in the operating system of the mobile terminal reserve interface (Application Programming Interface, API), determine the short message that the mobile terminal receives.Certainly, how which specifically determines and is taken in the short message With flow information, there are many ripe methods in the prior art, therefore the application no longer limits this.
For the convenience of description, in some subsequent embodiments of the application, which is obtained by client with server The short message of flow information, and execute and illustrate for the information resolving.
S102:Determine the type and state of each flow value that the short message includes.
In some embodiments of the present application, server can carry out structuring processing to the short message, and it is short can be specifically based on this Each flow value in letter, determine several attributes (the namely flow value of structuring) of the flow value, wherein the flow value Attribute can be divided into the type of flow value and the state of flow value.Wherein, the type of flow value may include a variety of different set meals Type, for example, the corresponding type of universal flow set meal is general, the corresponding type of idle flow package is idle, special using a Flow package type be a, etc..And the state of flow value includes:Total amount, usage amount and surplus.
In this application, server can successively be determined according to the sequencing of character in short message according to predetermined keyword library Short message includes the keyword of each flow value.The stream is determined according to the keyword of the flow value for each flow value again later The type and state of magnitude.Wherein, the state of the flow value may include:One kind in total amount, usage amount and surplus or Person is a variety of, and the application does not limit this.
Specifically, the keywords database can be pre-set, keyword wherein included may include for describing flow value Type and state word.Such as:" use ", " with ", " consumption ", " preferential ", " residue ", " also surplus ", " knot It is remaining " etc. for describing the word of flow value use state, may be configured as, for describing the keyword of state, being stored in keyword In library.And the word of " general ", " idle ", " applying a ", " world ", " foreign countries ", " set meal b " etc. for describing set meal type, The keyword for description type is may be configured as, and is stored in keywords database.
Also, it also may include having in the keywords database, the corresponding pass of each keyword and each preset type and each state System, as shown in Figure 3.In figure 3 it can be seen that in keywords database each keyword and type or state correspondence, indicate same Type or state can correspond to a variety of keywords.Wherein, state includes:Total amount, usage amount and surplus, and type is used It in the type of mark flow package, therefore may be present a variety of, which type is the application for specifically having do not limit.
Then, server, can be according to all types of and each keyword pair in the type and state for determining each flow value It should be related to, determine the type of the Keywords matching of the flow value, as the type of the flow value, and according to each state and each pass The correspondence of keyword determines the state of the Keywords matching of the flow value, the state as the flow value.
Specifically, server can according to the sequencing of character in short message, according in short message punctuation mark, flow value with Keyword three determines the corresponding keyword of each flow value successively in the position precedence relationship of short message.Specifically, server can With elder generation according to punctuation mark, short message is divided into several fields, later be directed to each field, using the keyword in the field as with The corresponding keyword of flow value in the field.
For example, it is assumed that short message is that " carry down domestic universal flow 9.81GB.Domestic universal flow residue 18.11GB is local not busy Shi Liuliang residue 0MB give domestic flow residue 7.00GB.Use mobile data flow 3.75GB, flow remaining 25.11GB." then, server can intercept multiple fields " carry down domestic universal flow 9.81GB ", " domestic universal flow residue 18.11GB ", " local idle flow residue 0MB ", " giving domestic flow residue 7.00GB ", " mobile data flow has been used 3.75GB ", " flow residue 25.11GB ".
It is all types of with the correspondence of each keyword and pair of each state and each keyword later according in keywords database It should be related to, determine the type of each flow value.In addition, in the present specification, for each flow value, when can not be according to keyword When library determines the type of the flow value, the type of the flow value can be determined as undetermined.
Then, it may be determined that correspondence as shown in Table 1.
Flow value Type State
9.81GB It is general It carries down
18.11GB It is general It is remaining
0MB Idle It is remaining
7.00GB It gives It is remaining
3.75GB It is undetermined Usage amount
25.11GB It is undetermined It is remaining
Table 1
S104:Each flow value for belonging to the type for needing to parse is determined, as flow value to be resolved.
In this application, after server determines the type and state of each flow value, it can further determine that and belong to needs Each flow value of the type of parsing, as flow value to be resolved.
For example, it is desired to when the type of parsing is general, then it is that general each flow value conduct waits for that server, which can filter out type, Parse flow value.
It, can be by the flow value when server can not specifically determine the affiliated type of the flow value in addition, in the present specification Type be determined as it is undetermined.The type undetermined may be in the keyword for leading to flow value, not have due to omission of sentence etc. There is keyword corresponding with type so that server can not determine the type of the flow value.And due to the flow value of type undetermined, Be likely to be need parse type (due to sentence omit) be also possible to be not, in order to avoid determination flow value to be resolved When omit, server can also by type be each flow value undetermined also as flow value to be resolved.
Further, screened according to the type of flow value, obtain belonging to the flow value for needing to parse type and After the type of type undetermined, server can also be directed to each state, to each flow value for being obtained after being screened according to type into Row further screening.Specifically, server can be directed to each state, judge to belong in each flow value for the type for needing to parse, Belong to the state if so, in each flow value of the determining type for needing to parse with the presence or absence of the flow value for belonging to the state Flow value is flow value to be resolved, if not, it is determined that the flow value for belonging to the type undetermined of the state waits solving as the state Analyse flow value.
For example, it is assumed that needing to parse type to be general, each flow value that server obtains after being screened according to type is respectively " 2GB surpluses undetermined ", " the general surpluses of 1GB ", " the general total amounts of 1GB ", " the general usage amounts of 9GB ", then be surplus for state In each flow value of surplus, there is the flow value " 1GB " for belonging to general, then the flow value " 1GB " is determined as flow to be resolved Value.
Use the example above, it is assumed that each flow value obtained after screening be respectively " 2GB surpluses undetermined ", " 1GB is general total Amount ", " the general usage amounts of 9GB ", then for state in each flow value of surplus, there is no belong to " general " type (to need The type to be parsed) flow value, and exist belong to " surplus " state type undetermined flow value " 2GB ", then service Device can determine that flow value " 2GB " is flow value to be resolved.
Further, may further include the word for describing inclusion relation, for example, residual stream in due to being described in sentence Amount is 10MB, wherein 9MB is the residual flow of set meal 1, and 1MB is general residual flow.It " wherein " is used to describe packet in the sentence Containing relationship.Then, in the application some embodiments, server, can also needle after being screened according to the type of flow value To each state, flow value of the state with the presence or absence of the keyword for describing inclusion relation is judged, if so, this is used for The flow value for describing the keyword of inclusion relation, as flow value to be resolved, if it is not, then making each flow value of the state For flow value to be resolved.Certainly, which the application the word for specifically describing inclusion relation specifically has do not limit, for example, " its In ", "comprising", " including ", " specific " etc., can be arranged as required to.
It should be noted that it is above-mentioned to server after being screened according to the type of flow value, progress it is further Two kinds of operations for screening flow value, can successively execute.Certainly, the sequence the application successively executed does not limit, specifically can root According to needing to be arranged.
S106:According to the state of each flow value to be resolved, the corresponding parsing knot of flow information that the short message carries is determined Fruit.
In this application, server, can be according to each flow value to be resolved after determining each flow value to be resolved State, by same type with the sum of each flow value to be resolved of state, as analysis result.Specifically, determination belongs to residual state Each flow value the sum of numerical value, as the flow value surplus of type for needing to parse, determination belongs to each of usage amount state The sum of numerical value of flow value determines each flow value for belonging to total amount state as the flow value usage amount for the type for needing to parse The sum of numerical value, the flow value total amount as the type for needing to parse.
In addition, in this application, when the flow value to be resolved for each type, when the flow value to be resolved of the type State when there was only remaining, determine and can determine successfully resolved, but when the state of the flow value to be resolved of the type only has total amount Or when usage amount, it may be determined that parsing failure, and when the state of the flow value to be resolved of the type there are two types of when, server can root According to formula total amount=surplus+usage amount, the corresponding numerical value of another state of the flow value to be resolved of the type is calculated.
For example, it is assumed that the flow value to be resolved of universal class, server determine total amount be 10MB, usage amount 1MB, then may be used Determine that the flow value of general surplus is 9MB.
Certainly, it should be noted that since in the application some embodiments, the state of the flow value may include:Total amount, One or more of usage amount and surplus, therefore in the analysis result that finally server is determined, can at least wrap Include at least one of the surplus of the total amount of flow value, the usage amount of flow value and flow value.
Based on the process of the information parsing described in Fig. 1, server can be obtained by client and carry the short of flow information Letter, is handled again by structuring, determines the type and state of each flow value in short message later, determines the class for needing to parse later Each flow value of type determines analysis result as flow value to be resolved.The drawbacks of prior art needs operation is avoided, is improved The efficiency of parsing flow information.
In addition, in some above-mentioned embodiments of the application, be for thering is server to execute the information resolving into Row explanation, but as described in the application step S100, which also can be at the mobile end for receiving the short message End is local to carry out.It then,, should by taking the mobile terminal execution information resolving as an example in some embodiments of the present application It can be previously stored with keywords database in mobile terminal, and when executing step S102, according to the keywords database, determine in the short message The type and state of each flow value, and continue the operation of subsequent step.Certainly, due to the mistake of mobile terminal execution subsequent step Journey is similar with the description in abovementioned steps S102 to step S106, therefore the application is to the mobile terminal execution information resolving It repeats no more, specifically refers to the description in step S102 to step S106.
In addition, in the application some embodiments, server possibly can not determine the state of flow value, for example, it is assumed that short Letter is " universal flow is 10GB in residual flow, and idle flow is 9GB ", then in step s 102, server tears the short message open Two sections of fields have been divided into it, i.e. " universal flow is 10GB in residual flow " and " idle flow is 9GB ", then for flow value For " 9GB ", server can only determine that its type is " idle ", and can not determine its state.Then server can determine the stream The state of magnitude is undetermined.
Further, in the application some embodiments, in step S104, in the flow value to be resolved determined, When lacking a kind of flow value of state in corresponding total amount, surplus or usage amount, server can determine whether the flow of the type In value, if there are the flow values of state undetermined, if so, by the flow value of the state undetermined, the flow value as the type In the flow value of state that lacks, if not, it is determined that the type lacks a kind of flow value of state.For example, it is assumed that server is true The type and state of fixed flow value as shown in table 5.
Flow value Type State
10GB It is general Total amount
2GB Idle Usage amount
1GB It is general Usage amount
9GB It is general It is undetermined
Table 2
It is assumed that it is general to need the type parsed, server can determine that general total amount is 10GB, and general usage amount is 1GB lacks the flow value that universal class and state are surplus.According to the type and state of flow value shown in table 5, service Device can determine that the type of the flow value of presence " 9GB " is general, and state is undetermined, therefore can be using the flow value as general surplus Surplus flow value.That is, determining that general surplus is 9GB.
It should be noted that the executive agent of each step of this specification embodiment institute providing method may each be same and set It is standby, alternatively, this method is also by distinct device as executive agent.For example, the executive agent of step S100 and step S102 can be with Executive agent for equipment 1, step S102 can be equipment 2;Alternatively, the executive agent of step S100 can be equipment 1, step The executive agent of S102 and step S104 can be equipment 2;Etc..It is above-mentioned that this specification specific embodiment is described. Other embodiments are within the scope of the appended claims.In some cases, the action recorded in detail in the claims or step It suddenly can be according to being executed different from the sequence in embodiment and desired result still may be implemented.In addition, in the accompanying drawings The process of description, which not necessarily requires the particular order shown or consecutive order, could realize desired result.In certain embodiment party In formula, multitasking and parallel processing is also possible or it may be advantageous.
Based on same thinking, the embodiment of the present application also provides corresponding equipment and nonvolatile computer storage medias And device.
Fig. 3 is a kind of structural schematic diagram of equipment for information parsing provided by the embodiments of the present application corresponding to Fig. 1, Including:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction makes the processor when executed Execute the process of information parsing shown in FIG. 1.
Each embodiment in the application is described in a progressive manner, identical similar part between each embodiment Just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment and Jie For matter embodiment, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to method reality Apply the part explanation of example.
Based on the method for information shown in FIG. 1 parsing, the embodiment of the present application also provides a kind of device of information parsing, such as schemes Shown in 4.
Fig. 4 is a kind of structural schematic diagram of the device of information parsing provided by the embodiments of the present application, and described device includes:
Acquisition module 200 obtains the short message for carrying flow information;
First determining module 202 determines the type and state of each flow value that the short message includes;
Second determining module 204 determines each flow value for belonging to the type for needing to parse, as flow value to be resolved;
Analysis result determining module 206 determines the flow letter that the short message carries according to the state of each flow value to be resolved Cease corresponding analysis result, wherein the analysis result include one in the total amount, usage amount and surplus of flow value or It is multiple.
First determining module 202, according to the sequencing of character in the short message, according to predetermined keyword library, successively really The keyword for each flow value that the fixed short message includes, for each flow value, according to the keyword of the flow value, determining should The type and state of flow value.
The keywords database further includes:Each preset kind and the correspondence of each keyword and each state and each key The correspondence of word;Wherein, the state includes:One or more of total amount, usage amount and surplus, described first really Cover half block 202 determines the type of the Keywords matching of the flow value according to all types of and each keyword correspondence, as The type of the flow value, and according to the correspondence of each state and each keyword, determine the Keywords matching of the flow value State, the state as the flow value.
First determining module 202, for each flow value, when according to all types of with each keyword correspondence, When determining that correspondence is not present with any kind for the keyword of the flow value, determine the type of the flow value be it is undetermined, with And be directed to each flow value, when the correspondence according to each state and each keyword, determine the keyword of the flow value with it is any When correspondence is not present in state, determine that the state of the flow value is undetermined.
Second determining module 204 filters out from each flow value according to the type of each flow value and belongs to described and need to parse Type flow value, as flow value to be resolved.
Second determining module 204, for each state, when each flow value for belonging to the type for needing to parse In, there is no when the flow value for belonging to the state, the flow value of the type undetermined of the state will be belonged to, wait solving as the state Analyse flow value.
Second determining module 204, for each state, when each flow value for belonging to the type for needing to parse In, when there is the flow value for possessing the keyword for being used to describe inclusion relation, it will possess described for describing inclusion relation The flow value of keyword be determined as flow value to be resolved.
Analysis result determining module 206 determines the sum of the numerical value for each flow value for belonging to residual state, as needing to parse Type flow value surplus, the sum of the numerical value for each flow value for belonging to usage amount state is determined, as the class that parses of needs The flow value usage amount of type determines the sum of the numerical value for each flow value for belonging to total amount state, the stream as the type for needing to parse Magnitude total amount.
Analysis result determining module 206, when there is only total amount, surplus and usage amounts for the state of each flow value to be resolved In two kinds when, according to formula total amount=surplus+usage amount, calculate the numerical value of the flow value of another state.
Specifically, the device of information parsing can be located in mobile terminal or in server, wherein mobile terminal Can be the equipment such as mobile phone, tablet computer, which can be an individual equipment or can also be by multiple devices The system of composition, the application do not limit this, can be arranged as required to.
Equipment provided by the embodiments of the present application and medium are one-to-one with method, and therefore, equipment and medium also have Advantageous effects as corresponding method class, due to having been carried out specifically to the advantageous effects of method above It is bright, therefore, the advantageous effects of equipment which is not described herein again and medium.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
Above is only an example of the present application, it is not intended to limit this application.For those skilled in the art For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (11)

1. a kind of method of information parsing, which is characterized in that including:
Obtain the short message for carrying flow information;
Determine the type and state of each flow value that the short message includes;
Each flow value for belonging to the type for needing to parse is determined, as flow value to be resolved;
According to the state of each flow value to be resolved, the corresponding analysis result of flow information that the short message carries is determined, wherein institute It includes one or more of total amount, usage amount and surplus of flow value to state analysis result.
2. the method as described in claim 1, which is characterized in that determine the type and shape of the flow value that the short message includes State specifically includes:
According to the sequencing of character in the short message, according to predetermined keyword library, determine that the short message each of includes successively The keyword of flow value;
The type and state of the flow value are determined according to the keyword of the flow value for each flow value.
3. method as claimed in claim 2, which is characterized in that the keywords database further includes:Each preset kind and each key The correspondence of the correspondence of word and each state and each keyword;Wherein, the state includes:Total amount, usage amount and One or more of surplus;
According to the keyword of the flow value, determines the type and state of the flow value, specifically include:
According to all types of and each keyword correspondence, the type of the Keywords matching of the flow value is determined, as the flow The type of value;And
According to the correspondence of each state and each keyword, the state of the Keywords matching of the flow value is determined, as the flow The state of value.
4. method as claimed in claim 3, which is characterized in that the method further includes:
For each flow value, when with each keyword correspondence, determining the keyword of the flow value according to all types of and appoint When correspondence is not present in one type, determine that the type of the flow value is undetermined;And
It determines the keyword of the flow value when the correspondence according to each state and each keyword for each flow value and appoints When correspondence is not present in one state, determine that the state of the flow value is undetermined.
5. method as claimed in claim 4, which is characterized in that determine each flow value for belonging to the type for needing to parse, specifically Including:
According to the type of each flow value, the flow value for belonging to the type for needing to parse is filtered out from each flow value, as Flow value to be resolved.
6. method as claimed in claim 5, which is characterized in that the method further includes:
For each state, in each flow value for belonging to the type for needing to parse, there is no the flows for belonging to the state When value, the flow value of the type undetermined of the state will be belonged to, the flow value to be resolved as the state.
7. method as claimed in claim 5, which is characterized in that further include for describing inclusion relation in the keywords database Keyword, the method further include:
For each state, in each flow value for belonging to the type for needing to parse, exist described in possessing for describing packet When the flow value of the keyword containing relationship, the flow value for possessing the keyword for describing inclusion relation is determined as waiting solving Analyse flow value.
8. method as claimed in claim 3, which is characterized in that according to the state of each flow value to be resolved, determine the short message The corresponding analysis result of flow information of carrying, specifically includes:
The sum of the numerical value for determining each flow value for belonging to residual state, as the flow value surplus for the type for needing to parse, really Surely the sum of the numerical value for belonging to each flow value of usage amount state determines and belongs to as the flow value usage amount for the type for needing to parse In the sum of the numerical value of each flow value of total amount state, the flow value total amount as the type for needing to parse.
9. method as claimed in claim 8, which is characterized in that the method further includes:
When the state of each flow value to be resolved is there is only when two kinds in total amount, surplus and usage amount, according to formula total amount =surplus+usage amount calculates the numerical value of the flow value of another state.
10. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be handled Device is executed to realize method as claimed in any one of claims 1-9 wherein.
11. a kind of equipment for information parsing, wherein the equipment includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction when executed executes the processor Such as the operation of any one of claim 1 to 9 the method.
CN201810540879.7A 2018-05-30 2018-05-30 Information analysis method, medium and equipment Active CN108810299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810540879.7A CN108810299B (en) 2018-05-30 2018-05-30 Information analysis method, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810540879.7A CN108810299B (en) 2018-05-30 2018-05-30 Information analysis method, medium and equipment

Publications (2)

Publication Number Publication Date
CN108810299A true CN108810299A (en) 2018-11-13
CN108810299B CN108810299B (en) 2020-06-09

Family

ID=64089360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810540879.7A Active CN108810299B (en) 2018-05-30 2018-05-30 Information analysis method, medium and equipment

Country Status (1)

Country Link
CN (1) CN108810299B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356097A (en) * 2020-05-24 2020-06-30 深圳市卡牛科技有限公司 Short message analysis method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server
CN103327473A (en) * 2013-06-26 2013-09-25 广州中国科学院软件应用技术研究所 Data acquisition method and device
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN105916127A (en) * 2016-06-27 2016-08-31 北京奇虎科技有限公司 Method, device and server for obtaining user traffic information
CN106162576A (en) * 2015-03-30 2016-11-23 腾讯科技(深圳)有限公司 A kind of mobile terminal network flow indication method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server
CN103327473A (en) * 2013-06-26 2013-09-25 广州中国科学院软件应用技术研究所 Data acquisition method and device
CN106162576A (en) * 2015-03-30 2016-11-23 腾讯科技(深圳)有限公司 A kind of mobile terminal network flow indication method and device
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN105916127A (en) * 2016-06-27 2016-08-31 北京奇虎科技有限公司 Method, device and server for obtaining user traffic information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356097A (en) * 2020-05-24 2020-06-30 深圳市卡牛科技有限公司 Short message analysis method and device and readable storage medium
CN111356097B (en) * 2020-05-24 2020-09-04 深圳市卡牛科技有限公司 Short message analysis method and device and readable storage medium

Also Published As

Publication number Publication date
CN108810299B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN102999586B (en) A kind of method and apparatus of recommendation of websites
US20180341574A1 (en) Intelligent device selection for mobile application testing
CN106209506A (en) A kind of virtualization deep-packet detection flow analysis method and system
CN105005582A (en) Recommendation method and device for multimedia information
CN108270662A (en) A kind of message distributing method, device and equipment
CN104750760A (en) Application software recommending method and device
CN102137029A (en) Method and device for managing instant messaging contact information
CN105786868A (en) Information sorting method and device
CN109756528A (en) Control method for frequency and device, equipment, storage medium, server
CN102904824A (en) Service providing entity selection method and device
CN104468330A (en) Data processing method and device of distributed information queue
KR20220107053A (en) Provision of custom integrated flow templates
CN105989457A (en) Information query method and apparatus thereof
CN106055706A (en) Cache resource storage method and device
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
CN108810299A (en) A kind of method, medium and the equipment of information parsing
CN103634470A (en) Human-computer interaction prediction method based on terminal mobile data access network Qos
CN108566429A (en) A kind of high in the clouds sharing files method and apparatus
CN109068286A (en) A kind of method, medium and the equipment of information parsing
CN110580212B (en) Data export method and device of application program, electronic equipment and storage medium
CN104462116A (en) Data selecting method and device
CN109582829A (en) A kind of processing method, device, equipment and readable storage medium storing program for executing
CN106204125A (en) A kind of pricing method and device
CN105653533A (en) Method and device for updating classified associated word set
CN104954496A (en) Cloud resource allocation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210331

Address after: 200131 Zone E, 9th floor, No.1 Lane 666, zhangheng Road, China (Shanghai) pilot Free Trade Zone

Patentee after: Shanghai Shangxiang Network Technology Co.,Ltd.

Address before: 312599 Affiliated Building B-2, 3rd Floor, Jiayi Plaza, 127 Renmin East Road, Nanming Street, Xinchang County, Shaoxing City, Zhejiang Province

Patentee before: LIANSHANG (XINCHANG) NETWORK TECHNOLOGY Co.,Ltd.