Techniques for context-based word embedding for programming artifacts are described herein. An aspect includes determining a plurality of keywords based on a corpus of programming artifacts, the corpus of programming artifacts including source code corresponding to a software project. Another aspect includes determining a plurality of context/keyword pair sets based on the plurality of keywords and the corpus of programming artifacts, wherein each context/keyword pair set of the plurality of context/keyword pair sets includes a first keyword, a second keyword, and a context type corresponding to a co-occurrence of the first keyword and the second keyword in the corpus of programming artifacts. Another aspect includes constructing a word embedding matrix based on the plurality of context/keyword pair sets.
|
1. A computer-implemented method comprising:
determining, by a processor, a plurality of keywords based on a corpus of programming artifacts, the corpus of programming artifacts comprising source code corresponding to a software project;
determining a plurality of context/keyword pair sets based on the plurality of keywords and the corpus of programming artifacts, wherein each context/keyword pair set of the plurality of context/keyword pair sets comprises a first keyword, a second keyword, and a context type corresponding to a co-occurrence of the first keyword and the second keyword in the corpus of programming artifacts; and
constructing a word embedding matrix based on the plurality of context/keyword pair sets,
wherein constructing the word embedding matrix based on the plurality of context/keyword pair sets comprises:
training a latent embedding matrix based on the plurality of context/keyword pair sets;
creating a manifest feature vector based on the plurality of context/keyword pair sets and the corpus of programming artifacts; and
combining the latent embedding matrix with the manifest feature vector corresponding to the corpus of programming artifacts to construct the word embedding matrix, wherein the combining includes ranking the plurality of context/keyword pair sets based on the manifest feature vector; and
wherein the word embedding matrix is used to train a recurrent neural network (RNN) to process source code.
13. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
determining a plurality of keywords based on a corpus of programming artifacts, the corpus of programming artifacts comprising source code corresponding to a software project;
determining a plurality of context/keyword pair sets based on the plurality of keywords and the corpus of programming artifacts, wherein each context/keyword pair set of the plurality of context/keyword pair sets comprises a first keyword, a second keyword, and a context type corresponding to a co-occurrence of the first keyword and the second keyword in the corpus of programming artifacts; and
constructing a word embedding matrix based on the plurality of context/keyword pair sets,
wherein constructing the word embedding matrix based on the plurality of context/keyword pair sets comprises:
training a latent embedding matrix based on the plurality of context/keyword pair sets; and
creating a manifest feature vector based on the plurality of context/keyword pair sets and the corpus of programming artifacts; and
combining the latent embedding matrix with the manifest feature vector corresponding to the corpus of programming artifacts to construct the word embedding matrix, wherein the combining includes ranking the plurality of context/keyword pair sets based on the manifest feature vector; and
wherein the word embedding matrix is used to train a recurrent neural network (RNN) to process source code.
7. A system comprising:
a memory having computer readable instructions; and
one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
determining a plurality of keywords based on a corpus of programming artifacts, the corpus of programming artifacts comprising source code corresponding to a software project;
determining a plurality of context/keyword pair sets based on the plurality of keywords and the corpus of programming artifacts, wherein each context/keyword pair set of the plurality of context/keyword pair sets comprises a first keyword, a second keyword, and a context type corresponding to a co-occurrence of the first keyword and the second keyword in the corpus of programming artifacts; and
constructing a word embedding matrix based on the plurality of context/keyword pair sets,
wherein constructing the word embedding matrix based on the plurality of context/keyword pair sets comprises:
training a latent embedding matrix based on the plurality of context/keyword pair sets; and
creating a manifest feature vector based on the plurality of context/keyword pair sets and the corpus of programming artifacts; and
combining the latent embedding matrix with the manifest feature vector corresponding to the corpus of programming artifacts to construct the word embedding matrix, wherein the combining includes ranking the plurality of context/keyword pair sets based on the manifest feature vector; and
wherein the word embedding matrix is used to train a recurrent neural network (RNN) to process source code.
2. The method of
determining a naming convention of the corpus of programming artifacts;
determining a plurality of tokens based on the determined naming convention;
constructing a manifest feature vector based on the plurality of tokens and the corpus of programming artifacts;
ranking the plurality of tokens based on the manifest feature vector; and
selecting a subset of the plurality of tokens as keywords based on the manifest feature vector.
3. The method of
4. The method of
5. The method of
6. The method of
8. The system of
determining a naming convention of the corpus of programming artifacts;
determining a plurality of tokens based on the determined naming convention;
constructing a manifest feature vector based on the plurality of tokens and the corpus of programming artifacts;
ranking the plurality of tokens based on the manifest feature vector; and
selecting a subset of the plurality of tokens as keywords based on the manifest feature vector.
9. The system of
10. The system of
11. The system of
12. The system of
14. The computer program product of
determining a naming convention of the corpus of programming artifacts;
determining a plurality of tokens based on the determined naming convention;
constructing a manifest feature vector based on the plurality of tokens and the corpus of programming artifacts;
ranking the plurality of tokens based on the manifest feature vector; and
selecting a subset of the plurality of tokens as keywords based on the manifest feature vector.
15. The computer program product of
16. The computer program product of
17. The computer program product of
18. The computer program product of
|
The present invention generally relates to neural networks, and more specifically, to context-based word embedding for programming artifacts for use in conjunction with a neural network.
Natural language processing (NLP) is a field of computer science, artificial intelligence, and linguistics that, amongst other things, is concerned with using computers to derive meaning from natural language text. NLP systems may perform many different tasks, including, but not limited to, determining the similarity between certain words and/or phrases in natural language documents. One known way to determine the similarity between words and/or phrases is to compare their respective word embeddings. Generally speaking, a word embedding is a mapping of natural language text to a vector of real numbers in a low dimensional space (and is also sometimes referred to as a “vector representation”).
Word embedding is the collective name for a set of feature representations in natural language processing where words or phrases from the vocabulary are mapped to vectors of real numbers in a low-dimensional space relative to the vocabulary size. Methods to generate this mapping include neural networks, dimensionality reduction on the word co-occurrence matrix, and explicit representation in terms of the context in which words appear. Word and phrase embeddings, when used as the underlying input representation, have been shown to boost the performance in natural language processing tasks such as syntactic parsing and sentiment analysis. Word embedding may be used for effective representations of vocabulary in natural language documents.
Embodiments of the present invention are directed to context-based word embedding for programming artifacts. A non-limiting example computer-implemented method includes determining a plurality of keywords based on a corpus of programming artifacts, the corpus of programming artifacts including source code corresponding to a software project. The method also includes determining a plurality of context/keyword pair sets based on the plurality of keywords and the corpus of programming artifacts, wherein each context/keyword pair set of the plurality of context/keyword pair sets includes a first keyword, a second keyword, and a context type corresponding to a co-occurrence of the first keyword and the second keyword in the corpus of programming artifacts. The method also includes constructing a word embedding matrix based on the plurality of context/keyword pair sets.
Other embodiments of the present invention implement features of the above-described method in computer systems and computer program products.
Additional technical features and benefits are realized through the techniques of the present invention. Embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, refer to the detailed description and to the drawings.
The specifics of the exclusive rights described herein are particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features and advantages of the embodiments of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
One or more embodiments of the present invention provide context-based word embedding for programming artifacts. Relatively large open source software projects in open repositories, such as GitHub™ and SourceForge™, provide opportunities for creating new software development and analysis tools based on machine learning or deep learning. Research tasks such as code summarization, code semantic search, and application programming interface (API) discovery may be performed using such code repositories. The data in a software project may be mostly textual. There may be various textual data artifacts, i.e., programming artifacts, in a software project, such as source code files, header files, copybook documents, and technical and requirement documents. Deep learning techniques, such as recurrent neural networks (RNN) used for NLP, may be adapted to model and analyze programming artifacts.
Programming artifacts, such as source code, have specific structure, contexts, syntax, naming conventions, and semantics. Performing word embedding based on programming artifacts may require different techniques as opposed to word embedding that is performed based on natural language documents. Context based word embedding for programming artifacts may leverage relevant program static analysis data, such as naming convention analysis, keyword discovery, variable usage analysis, and business rule discovery in order to improve the performance of learning tasks that are based on word embedding. Various contextual data, such as statement and business rule usages of keywords, may be captured from programming artifacts. Based on the learned word embedding matrix, the semantic and syntactic similarity of keywords, and relationships with other keywords, may be calculated to improve the performance of subsequent learning tasks such as learning of programming language models.
Static code analysis is used for computer program debugging, and includes examining and analyzing source code without executing the programs. Static code analysis may provide an understanding of source code structure and ensure that the source code adheres to industrial quality standards. Static code analysis may be applied to programming artifacts to analyze and determine specific naming conventions, syntax, structures, and contexts. The results of the static code analysis may be used as a foundation to build a word embedding pipeline for tokens in programming artifacts.
Embodiments of context-based word embedding may include a naming convention dependent tokenizer. Naming conventions, which may be applied to names in the source code, such as variables, method names, and function names, make programs more understandable by making them easier to read. A determined naming convention may be utilized to perform specific tokenization for source code, in order to reduce an overall word embedding vocabulary size and improve efficiency. The tokens may be scored and ranked based on a manifest feature vector. A specific keyword discovery algorithm may be used to reduce the word embedding sample size, e.g., word embedding may be performed on a subset higher-ranked tokens (i.e., keywords) to improve embedding efficiency. The manifest feature vector that is used to rank the tokens may also be used in the subsequent word embedding process. A programming artifacts context generator may be applied to the determined keywords. Keywords in programming artifacts may have different specific contexts, such as two keywords occurring in a same type of statement (conditional statement, computational statement, etc.), being used together to implement a same business rule, or having a common prefix or suffix in the programming artifacts. The context generator generates context/keyword pair sets, and a multinomial contexts classifier use the generated context/keyword pair sets as training data for a neural network that determines the word embedding matrix for the programming artifacts. The word embedding matrix that is determined using context-based word embedding may be used to train an RNN that processes programming language artifacts.
Turning now to
In block 201 of method 200, tokenizer module 101 receives a corpus of programming artifacts 110, and determines a set of tokens 113 based on the programming artifacts 110. Determination of the tokens 113 in block 201 may include static code analysis of the programming artifacts 110. The tokenizer module 101 includes a naming convention dependent tokenizer. Tokenizer module 101 processes the programming artifacts 110 via separators analyzer 111 and regular expressions 112 to determine the set of tokens 113. Words in the software project (such as names, terms, phrases, identifiers, and variables) may follow particular naming conventions (such as “getPatientCost”), and may be relatively long and unique, which may lead to relatively large vocabulary sizes and low frequencies of usage for individual words. In order to reduce the vocabulary size, the words in the source code may be broken up into smaller subwords for inclusion in tokens 113 by separators analyzer 111 and regular expressions 112 in tokenizer module 101. The separators analyzer 111 may determine a naming convention that is used in programming artifacts 110. Because source code is developed, read, and shared by multiple people within a team or organization, naming conventions may be used in software development to increase readability of source code. Naming conventions may apply to variables, functions, classes and files in a software project. Adherence to a naming convention may facilitate communications among developers, reviewers and project managers with respect to what the source code does. Different naming conventions may be used in conjunction with particular programming languages or organizations.
The separators analyzer 111 analyzes the typographical conventions in programming artifacts 110, including the use of letter cases (upper case characters versus lower case characters) and symbol characters including but not limited to underscore, dot, and hyphen, to determine a naming convention of the programming artifacts 110. The naming convention may be selected from a predetermined set of naming conventions in some embodiments, including but not limited to camel case, kebab case, and snake case, by separators analyzer 111. The separators analyzer 111 may identify a separator that is used within words according to the naming convention of the programming artifacts 110. For example, a camel case naming convention may be identified based on upper case characters being used as separators within words, e.g., “getPatientName”. A kebab case naming convention may be identified based on dashes being used as separators within words, e.g., “get-patient-name”. A snake case naming convention may be identified based on underscores being used as separators within words, e.g., “patient name”. Any appropriate character(s) may be identified as separators by separators analyzer 111 in various embodiments. In some embodiments, different files in programming artifacts 110 may follow different naming conventions; separators analyzer 111 may detect multiple naming conventions for the programming artifacts 110 in such embodiments.
Regular expressions 112 are generated by separators analyzer 111 based on the identified separator(s) corresponding to a naming convention of programming artifacts 110. For example, for embodiments in which programming artifacts 110 conform to a kebab case naming convention, regular expressions 112 may include “[{circumflex over ( )}\\w\\−|_|&]+|−−+”. Regular expressions 112 are applied to programming artifacts 110 to break up words in programming artifacts 110 into constituent subwords for inclusion in tokens 113. For example, the word “getPatientName” may be broken up into subwords “get”, “patient”, and “name”. Each subword may be present in multiple words, such that the vocabulary size represented by tokens 113 may be reduced and the frequencies of individual tokens that are included in tokens 113 may be relatively high.
In some embodiments, individual tokens of tokens 113 may each include a single subword. In some embodiments, n-gram phrases (e.g., multiple words) may also be identified by regular expressions 112 and included in tokens 113. N-gram phrases (e.g., “Patient Name”) having a relatively high word frequency (e.g., higher than a threshold) or term frequency-inverse document frequency (TFxIDF) values in programming artifacts 110 may be identified by tokenizer module 101 and included in tokens 113.
In block 202 of method 200 of
Programming language-independent features and programming language dependent features may be identified by embodiments of feature extractor 120. The programming language independent features may include token characteristics such as term length, term frequency, document frequency, first appearance, and TFxIDF. The programming language dependent features may be determined based on the syntax, styles, and conventions of the particular programming language of programming artifacts 110. Identification of usage of a token in specific statement types (e.g., conditional, file input/output (I/O), database I/O, computational, and structured query language) may increase a token's importance based on programming language dependent features. The programming language dependent features may also include token characteristics such as similarity to database table names or column names, similarity to user interface labels, and similarity to confirmed business terms. The manifest feature vector is extracted from programming artifacts 110 by feature extractor 120 based on tokens 113, and may be populated with programming language dependent features and programming language independent features that are identified by feature extractor 120 for each of the tokens 113 based on programming artifacts 110.
Manifest feature vector 121 is received by scoring and ranking module 122, which analyzes the data in manifest feature vector 121 to rank the tokens 113, and determines a subset of tokens 113 that are highest ranked tokens to be included in keywords 130. In some embodiments, scoring and ranking module 122 may include a trained classifier comprising a logistic regression model. The output of the logistic regression model may be the likelihood of an input (e.g., a token) being a binary target variable, e.g., being “Keyword” or “Not keyword”. In some embodiments, the scoring and ranking module 122 may rank all of tokens 113 based on their keyword likelihood as determined based on manifest feature vector 121, and may determine a highest ranked subset of tokens 113 for inclusion in keywords 130. Any appropriate number of tokens 113 may be selected for inclusion in keywords 130 by scoring and ranking module 122 in various embodiments.
In block 203 of method 200 of
The statement parser 131 may identify any keywords of keywords 130 that occur in the same statement context in programming artifacts 110 based on the syntax and structure of the programming language(s) that are used in programming artifacts 110. For example, conditional statements, computational statements, file I/O statements, database I/O statements, structured query language statements, method/function scope, and file/package scope may be identified by statement parser 131. For an example COBOL statement “MOVE PATIENT-ID IN INPATIENT-DAILY-REC TO PATIENT-KEY, it may be determined by statement parser 131 that variables “PATIENT-ID”, “INPATIENT-DAILY-REC”, and “PATIENT-KEY” are in the same MOVE context. For another example COBOL statement “ADD MEDICATION-COST TO WS-MEDICATION-CHARGES”, it may be determined by statement parser 131 that variables “MEDICATION-COST” and “WS-MEDICATION-CHARGES” are in the same ADD context. For another example COBOL statement “IF MEDICATION COST IN INPATIENT-TREATMENT-REC NOT NUMERIC”, it may be determined by statement parser 131 that variables “MEDICATION-COST” and “INPATIENT-TREATMENT-REC” are in the same IF context.
Business rule discovery 132 may determine whether any of keywords 130 are used together to implement a single business rule. Business rules and implementation names corresponding to the programming artifacts 110 may be received from any appropriate business rule discovery engine. Business rule discovery 132 identifies sequences of code snippets that are executed together to implement a business rule, and the keywords that occur in those code snippets may be considered as within the same business rule context. A business rule may include a business decision that evaluates one or more business term values and executes a sequence of actions with a result, for example, “Extended Credit limit on Credit card for certain customer profiles: When a customer is above age 45 and his Annual salary is above 50K and his Credit score is above 78, then allow extended Credit limit up to 20% of his annual salary”. Based on this example business rule, keywords such as “Customer-Age”, “Annual-Salary”, and “Credit-Score”, may be determined by business rule discovery 132 to be in the same business rule context.
Prefix/suffix analyzer 133 may determine whether any two keywords of keywords 130 are used with the same prefixes and/or suffixes in programming artifacts 110. Prefixes and suffixes may be used to identify the usage scope or type of variables. For example, a set of variables such as “DB2-Patient-Id”, “DB2-Patient-Cost”, “DB2-Medication-Cost” may indicate that the three variables are each related to database columns, such that keywords such as “patient Id”, “patient cost”, and “medication cost” may be considered to be within the same database I/O context.
The context generator 134 determines any contextual information, including one or more context types, for each pair of keywords 130 in programming artifacts 110 based on statement parser 131, business rule discovery 132, and prefix/suffix analyzer 133, and outputs context/keyword pair sets 135. Context/keyword pair sets 135 may include a relatively large list of paired keywords labeled with their co-occurred context type(s) (as identified by any of statement parser 131, business rule discovery 132, and prefix/suffix analyzer 133). The context types may include, but are not limited to, a type of statement in which the keyword pair co-occurs in programming artifacts 110; that the keyword pair co-occurs in a business rule corresponding to programming artifacts 110, and the keyword pair shares a common prefix or suffix in programming artifacts 110. For example, for each pair of keywords of keywords 130, an input to context generator 134 may be “(Keyword1, Keyword2)” and an output may be “ContextType”. The training data that comprises context/keyword pair sets 135 is provided to classification module 104 as training data for constructing of word embedding matrix 150.
In block 204 of method 200 of
In some embodiments, stack module 144 may combine the converged latent embedding matrix 140 with the manifest feature vector 121 to determine the word embedding matrix 150 that is output by system 100. The values in the manifest feature vector 121 are fixed based on the corpus of programming artifacts 110, and are not updated by backpropagation and update module 143. In block 205 of method 200 of
It is to be understood that the block diagram of
The process flow diagram of
Turning now to
As shown in
The computer system 300 comprises an input/output (I/O) adapter 306 and a communications adapter 307 coupled to the system bus 302. The I/O adapter 306 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 308 and/or any other similar component. The I/O adapter 306 and the hard disk 308 are collectively referred to herein as a mass storage 310.
Software 311 for execution on the computer system 300 may be stored in the mass storage 310. The mass storage 310 is an example of a tangible storage medium readable by the processors 301, where the software 311 is stored as instructions for execution by the processors 301 to cause the computer system 300 to operate, such as is described herein below with respect to the various Figures. Examples of computer program product and the execution of such instruction is discussed herein in more detail. The communications adapter 307 interconnects the system bus 302 with a network 312, which may be an outside network, enabling the computer system 300 to communicate with other such systems. In one embodiment, a portion of the system memory 303 and the mass storage 310 collectively store an operating system, which may be any appropriate operating system, such as the z/OS or AIX operating system from International Business Machines Corporation, to coordinate the functions of the various components shown in
Additional input/output devices are shown as connected to the system bus 302 via a display adapter 315 and an interface adapter 316 and. In one embodiment, the adapters 306, 307, 315, and 316 may be connected to one or more I/O buses that are connected to the system bus 302 via an intermediate bus bridge (not shown). A display 319 (e.g., a screen or a display monitor) is connected to the system bus 302 by a display adapter 315, which may include a graphics controller to improve the performance of graphics intensive applications and a video controller. A keyboard 321, a mouse 322, a speaker 323, etc. can be interconnected to the system bus 302 via the interface adapter 316, which may include, for example, a Super I/O chip integrating multiple device adapters into a single integrated circuit. Suitable I/O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols, such as the Peripheral Component Interconnect (PCI). Thus, as configured in
In some embodiments, the communications adapter 307 can transmit data using any suitable interface or protocol, such as the internet small computer system interface, among others. The network 312 may be a cellular network, a radio network, a wide area network (WAN), a local area network (LAN), or the Internet, among others. An external computing device may connect to the computer system 300 through the network 312. In some examples, an external computing device may be an external webserver or a cloud computing node.
It is to be understood that the block diagram of
Various embodiments of the invention are described herein with reference to the related drawings. Alternative embodiments of the invention can be devised without departing from the scope of this invention. Various connections and positional relationships (e.g., over, below, adjacent, etc.) are set forth between elements in the following description and in the drawings. These connections and/or positional relationships, unless specified otherwise, can be direct or indirect, and the present invention is not intended to be limiting in this respect. Accordingly, a coupling of entities can refer to either a direct or an indirect coupling, and a positional relationship between entities can be a direct or indirect positional relationship. Moreover, the various tasks and process steps described herein can be incorporated into a more comprehensive procedure or process having additional steps or functionality not described in detail herein.
One or more of the methods described herein can be implemented with any or a combination of the following technologies, which are each well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
For the sake of brevity, conventional techniques related to making and using aspects of the invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs to implement the various technical features described herein are well known. Accordingly, in the interest of brevity, many conventional implementation details are only mentioned briefly herein or are omitted entirely without providing the well-known system and/or process details.
In some embodiments, various functions or acts can take place at a given location and/or in connection with the operation of one or more apparatuses or systems. In some embodiments, a portion of a given function or act can be performed at a first device or location, and the remainder of the function or act can be performed at one or more additional devices or locations.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The embodiments were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.
The diagrams depicted herein are illustrative. There can be many variations to the diagram or the steps (or operations) described therein without departing from the spirit of the disclosure. For instance, the actions can be performed in a differing order or actions can be added, deleted or modified. Also, the term “coupled” describes having a signal path between two elements and does not imply a direct connection between the elements with no intervening elements/connections therebetween. All of these variations are considered a part of the present disclosure.
The following definitions and abbreviations are to be used for the interpretation of the claims and the specification. As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” “contains” or “containing,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, a mixture, process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to such composition, mixture, process, method, article, or apparatus.
Additionally, the term “exemplary” is used herein to mean “serving as an example, instance or illustration.” Any embodiment or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms “at least one” and “one or more” are understood to include any integer number greater than or equal to one, i.e. one, two, three, four, etc. The terms “a plurality” are understood to include any integer number greater than or equal to two, i.e. two, three, four, five, etc. The term “connection” can include both an indirect “connection” and a direct “connection.”
The terms “about,” “substantially,” “approximately,” and variations thereof, are intended to include the degree of error associated with measurement of the particular quantity based upon the equipment available at the time of filing the application. For example, “about” can include a range of ±8% or 5%, or 2% of a given value.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instruction by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments described herein.
Xu, Yan, Luo, Yan, Shao, Liujia, Fan, Sibin
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10162613, | Jul 18 2017 | SAP Portals Israel Ltd. | Re-usable rule parser for different runtime engines |
10515400, | Sep 08 2016 | Adobe Inc | Learning vector-space representations of items for recommendations using word embedding models |
10901708, | Nov 23 2018 | Amazon Technologies, Inc | Techniques for unsupervised learning embeddings on source code tokens from non-local contexts |
6715141, | Jun 15 2000 | Multiphase single pass interpreter | |
7127704, | Jun 02 2000 | Oracle America, Inc | Interactive software engineering tool with support for embedded lexical contexts |
9037464, | Jan 15 2013 | GOOGLE LLC | Computing numeric representations of words in a high-dimensional space |
9454522, | Jun 06 2008 | Apple Inc. | Detection of data in a sequence of characters |
20070016862, | |||
20130268916, | |||
20140282373, | |||
20170270100, | |||
20180189265, | |||
20190065164, | |||
20190370273, | |||
20200104313, | |||
20200134442, | |||
20210034707, | |||
20210256036, | |||
CN107562919, | |||
CN108417210, | |||
JP6467893, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Feb 20 2020 | LUO, YAN | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 051933 | /0572 | |
Feb 20 2020 | SHAO, LIUJIA | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 051933 | /0572 | |
Feb 20 2020 | XU, YAN | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 051933 | /0572 | |
Feb 20 2020 | FAN, SIBIN | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 051933 | /0572 | |
Feb 26 2020 | International Business Machines Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Feb 26 2020 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Date | Maintenance Schedule |
Aug 23 2025 | 4 years fee payment window open |
Feb 23 2026 | 6 months grace period start (w surcharge) |
Aug 23 2026 | patent expiry (for year 4) |
Aug 23 2028 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 23 2029 | 8 years fee payment window open |
Feb 23 2030 | 6 months grace period start (w surcharge) |
Aug 23 2030 | patent expiry (for year 8) |
Aug 23 2032 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 23 2033 | 12 years fee payment window open |
Feb 23 2034 | 6 months grace period start (w surcharge) |
Aug 23 2034 | patent expiry (for year 12) |
Aug 23 2036 | 2 years to revive unintentionally abandoned end. (for year 12) |