# US 2021/0287175 A1 · Method and system for detecting a pattern in common in a set of text files

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287175 A1
- Document ID: US20210287175A1
- Status: Published application
- Kind: A1
- Application number: 17/203,535
- Filed: 2021-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Orange
- Applicants: Orange
- Inventors: Marwa Elleuch; Oumaima Alaoui Ismaili; Nassim Laga
- Web page: https://patentgrep.com/patent/US20210287175A1

## CPC

- G06F 16/35: Clustering; Classification
- G06F 16/906: Clustering; Classification
- G06F 16/374: {Thesaurus}
- G06Q 10/10: Office automation; Time management
- G06V 30/1985: {Syntactic analysis, e.g. using a grammatical approach (syntactic image representation G06V30/18171)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method of detecting a pattern in common in two text files, each comprising an ordered sequence of words, is disclosed. The method includes generating groups of words having the same syntactic function, comprising at least one word from each text file such that each word in a group is synonymous with another word in the same group, associating each word in a text file belonging to a group of words, with a tag representative of the group, generating, for each text file, at least one dense set of words satisfying a condition of internal proximity in the text file, determining at least one pattern in common in the two text files, a pattern in common including one or more sets of words sharing the same tag and comprising at least one word from a dense set of words in each text file.

## Claims

### Claim 1

A method of detecting a pattern in common in a set of text files, each text file comprising an ordered sequence of words, implemented by computer means and comprising acts of:
generating, for at least one pair of first and second text files in the set of text files, one or more groups of words each comprising at least one word in the first text file and at least one word in the second text file, the words in a same group of words having the same syntactic function, and each word in a group of words belonging to a set of words synonymous for that syntactic function with another word in the group of words,
associating each word in a generated group of words with a tag representative of the group of words,
generating, for each text file among the first and second text files, at least one dense set of words associated with a tag and satisfying a condition of internal proximity in the text file,
determining at least one pattern in common in the first and second text files, a pattern in common including one or more sets of words sharing the same tag and comprising at least one word from a dense set of words in each text file among the first and second text files.

### Claim 2 (depends on 1)

The method of claim 1, further comprising a preprocessing of at least the first and second text files that is implemented before generating the group or groups of words, the preprocessing comprising one or more of the following operations: lemmatization, detection of compound words, deletion of stop words, detection of redundant words, replacement of numeric values by a tag, replacement of proper names by a tag, and detection and deletion of redundant text blocks.

### Claim 3 (depends on 1)

The method of claim 1, wherein the generating of the group or groups of words comprises:
for any given word in the first text file, if there is a word in the second text file such that the given word in the first text file and the word in the second text file have the same syntactic function and such that one among the given word in the first text file and the word in the second text file belongs to a set of words synonymous with the other for the syntactic function, classifying the given word in the first text file and the word in the second text file in a same group of words,
for any given word in the first or second text file, if there is a group of words such that the syntactic function of the given word is the same as the syntactic function of the words in the group of words and such that the given word belongs to the set of words synonymous for the syntactic function with at least one of the words in the group of words, classifying the given word in the group of words, and
if two groups of words are identical, deleting either one of the two groups of words.

### Claim 4 (depends on 1)

The method of claim 1, wherein each word in a given text file among the first and second text files being associated with a numeric value representative of a position of the word within the text file, wherein, for a text file, the generation of at least one dense set of words from the text file is implemented as follows: if the absolute value of the difference of the numeric values respectively associated with two words is less than or equal to a predetermined threshold, classifying the two words in a same dense set of words from the text file, otherwise, classifying the two words into separate dense sets of words from the text file.

### Claim 5 (depends on 4)

The method of claim 4, wherein the numeric value representative of a position of a word within a text file is determined as a function of a rank of the given word in the ordered sequence of words from the text file.

### Claim 6 (depends on 1)

The method of claim 1, further comprising the deletion of patterns in common that include less than two sets of words.

### Claim 7 (depends on 1)

The method of claim 1, wherein the set of synonyms of a word according to its syntactic function is determined by a search in a lexical database.

### Claim 8 (depends on 1)

The method of claim 1, further comprising the updating of a pattern database by comparing each set of words of a pattern in common in a pair from text files to each set of words of a pattern in common in another pair of text files.

### Claim 9 (depends on 8)

The method of claim 8, wherein the updating of the pattern database comprises: if a set of words of a pattern in common in a first pair of text files is comprised in a set of words of a pattern in common in a second pair of text files, supplementing the set of words of the pattern in common in the first pair of text files with one or more missing words coming from the set of words of the pattern in common in the second pair of text files.

### Claim 10 (depends on 1)

The method of claim 1, further comprising filtering of the patterns in common according to a frequency of occurrence of the patterns in common, a pattern in common being deleted if its frequency of occurrence across the set of text files is below a predetermined threshold frequency.

### Claim 11 (depends on 1)

A method of classifying text files, the method comprising:
receiving a set of text files,
detecting, for at least one pair of first and second text files in the set of text files, at least one pattern in common by using the detection method of claim 1,
storing each detected pattern in common, in a pattern database,
generating a label characteristic of a set of patterns stored within the pattern database, and
classifying each text file in a database of text files according to a label associated with a set of patterns comprising at least one pattern detected in the text file.

### Claim 12 (depends on 11)

The method of claim 11, wherein one or more text files in the set of text files are emails and the database of text files is comprised in an electronic mail system.

### Claim 13 (depends on 1)

A non-transitory computer-readable storage medium comprising a computer program stored thereon and comprising instructions for implementing the method of claim 1, when the instructions are executed by at least one processor.

### Claim 14

A system for detecting a pattern in common in a set of text files, each text file comprising an ordered sequence of one or more words, the system comprising:
a tagging module arranged to generate, for at least one pair of first and second text files in the set of text files, one or more groups of words each comprising at least one word in the first text file and at least one word in the second text file, the words in a same group of words having the same syntactic function, and each word in a group of words belonging to a set of words synonymous for this syntactic function with another word in the group of words,
the tagging module further being arranged to associate, with each word in a generated group of words, a tag representative of the group of words,
a grouping module arranged to generate, for each text file among the first and second text files, at least one dense set of words associated with a tag and satisfying a condition of internal proximity in the text file,
a correlation module arranged to determine at least one pattern in common in the first and second text files, a pattern in common including one or more sets of words sharing the same tag and comprising at least one word from a dense set of words in each text file among the first and second text files.

### Claim 15 (depends on 14)

A system for classifying text files, the system comprising:
a communication module arranged to receive a set of text files,
the system for detecting a pattern in common of claim 14, arranged to detect at least one pattern in common for at least one pair of first and second text files in the set of text files,
a pattern database arranged to store each detected pattern in common,
a labeling module arranged to generate a label characteristic of a set of patterns stored within the pattern database,
a database of text files that is arranged to store each text file received by the communication module, the text tile being classified within the database of text files according to a label associated with a set of patterns comprising at least one pattern detected in the text file.

### Claim 16 (depends on 11)

A non-transitory computer-readable storage medium comprising a computer program stored thereon and comprising instructions for implementing the method of claim 11, when the instructions are executed by at least one processor.
