IP Library Granted Patent US 12,333,236
Granted Patent B2
US 12,333,236 · App. 17/873,932 · Granted Jun 17, 2025

System and method for automatically tagging documents

Inventors: Eleftherios Panagiotis Loukas (Agia Paraskevi, GR); Eirini Spyropoulou (Agia Paraskevi, GR); Prodromos Malakasiotis (Agia Paraskevi, GR); Emmanouil Fergadiotis (Agia Paraskevi, GR); Ilias Chalkidis (Agia Paraskevi, GR); Ioannis Androutsopoulos (Agia Paraskevi, GR); Georgios Paliouras (Agia Paraskevi, GR)
Assignee: National Centre for Scientific Research “Demokritos”
G06F40/117G06F40/143G06F40/151G06F40/166G06F40/284
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,333,236
App. No.
17/873,932
Granted
Jun 17, 2025
Kind
B2
Abstract

System and methods ( 100 ) for automatically tagging electronic documents are disclosed. An input module receives ( 102 ) an electronic document to be tagged. A preprocessing module then preprocesses ( 104 ) the electronic document to be tagged. The preprocessing of the electronic document comprises extracting a text from the electronic document to be tagged, replacing a number or a date in the extracted text with a predetermined symbol, and tokenizing the extracted text with the predetermined symbol into a plurality of tokens. After the preprocessing ( 104 ), a deep learning module determines ( 106 ) a tag for at least one of the plurality of tokens. The determined tag for the at least one token is then output ( 108 ) by an output module.

Claims (48)

1. A computer-implemented method for tagging electronic documents, the computer-implemented method comprising:

receiving, by an input module, an electronic document to be tagged;

preprocessing, by a preprocessing module, the electronic document to be tagged, the preprocessing comprising:

extracting a text from the electronic document to be tagged;

replacing at least one of a numerical amount or a date in the extracted text with a predetermined symbol, wherein the predetermined symbol is not used in the extracted text before replacing at least one of the numerical amount or the date in the extracted text, wherein the predetermined symbol includes a special character that is non-numeric and non-alphabetic; and

tokenizing the extracted text with the predetermined symbol into a plurality of tokens without fragmenting the predetermined symbol, wherein keeping the predetermined symbol unfragmented avoids inaccurate tagging associated with the predetermined symbol;

determining, by a deep learning module, a tag for at least one of the plurality of tokens; and

outputting, by an output module, the determined tag for the at least one of the plurality of tokens.

2. The computer-implemented method of claim 1 , wherein tokenizing the extracted text into the plurality of tokens transfers the predetermined symbol into a single token.

3. The computer-implemented method of claim 1 , wherein the extracted text includes at least one additional element to be replaced, wherein the at least one additional element includes at least one of an additional numerical amount or an additional date, and wherein the preprocessing comprises replacing the at least one additional element with the predetermined symbol.

4. The computer-implemented method of claim 1 , wherein the predetermined symbol represents a characteristic of the numerical amount or of the date, wherein the characteristic includes at least one of a shape, a format or a magnitude.

5. The computer-implemented method of claim 1 , wherein the deep learning module comprises an artificial neural network.

6. The computer-implemented method of claim 1 , wherein the deep learning module comprises a transformer-based deep learning model, and wherein the transformer-based deep learning model is based on a Bidirectional Encoder Representations from Transformers (BERT) model.

7. The computer-implemented method of claim 1 , wherein determining a tag for at least one of the plurality of tokens comprises:

transforming, by a neural network encoder, the plurality of tokens into a plurality of numerical vectors in a latent space; and

mapping, by a decoder, the plurality of numerical vectors into tags, the decoder comprising a dense neural network layer with a softmax activation function.

8. The computer-implemented method of claim 1 , wherein the tag is for a token representing the predetermined symbol associated with the numerical amount or the date in the electronic document to be tagged.

9. The computer-implemented method of claim 1 , wherein the electronic document to be tagged is at least one of a document including financial information or a document from a financial domain; and wherein the tag is associated with an eXtensive Business Reporting Language (XBRL).

10. The computer-implemented method of claim 1 , wherein the deep learning module is trained for determining the tag by:

receiving, by the input module, a plurality of electronic documents as a training dataset, the plurality of electronic documents comprising tags associated with text elements in the plurality of electronic documents;

preprocessing, by the preprocessing module, the plurality of electronic documents, wherein each of the plurality of electronic documents is preprocessed by:

extracting a corresponding text from each of the plurality of electronic documents;

replacing an element in the extracted corresponding text with the predetermined symbol; and

tokenizing the extracted corresponding text with the predetermined symbol into a second plurality of tokens, wherein at least some of the second plurality of tokens are associated with one or more tags; and

training, by a training module, the deep learning module with the second plurality of tokens along with the one or more tags.

11. A computer-implemented method for training a deep learning module, the computer-implemented method comprising:

receiving, by an input module, a plurality of electronic documents as training dataset, the plurality of electronic documents comprising tags associated with text elements in the plurality of electronic documents;

preprocessing, by a preprocessing module, the plurality of electronic documents, wherein each of the plurality of electronic documents is preprocessed by:

extracting a text from each of the plurality of electronic documents;

replacing at least one of a numerical amount or a date in the extracted text with a predetermined symbol, wherein the predetermined symbol is not used in the extracted text before replacing at least one of the numerical amount or the date in the extracted text, wherein the predetermined symbol includes a special character that is non-numeric and non-alphabetic; and

tokenizing the extracted text with the predetermined symbol into a plurality of tokens without fragmenting the predetermined symbol, wherein at least some of the plurality of tokens are associated with the tags, and wherein keeping the predetermined symbol unfragmented avoids inaccurate tagging associated with the predetermined symbol; and

training, by the training module, the deep learning module with the plurality of tokens along with the tags.

12. The computer-implemented method of claim 11 , wherein tokenizing the extracted text into the plurality of tokens transfers the predetermined symbol into a single token.

13. The computer-implemented method of claim 11 , wherein the extracted text includes at least one additional element to be replaced, wherein the at least one additional element includes at least one of an additional numerical amount or an additional date, and wherein the preprocessing comprises replacing the at least one additional element with the predetermined symbol.

14. The computer-implemented method of claim 11 , wherein the predetermined symbol represents a characteristic of the numerical amount or of the date, wherein the characteristic includes at least one of a shape, a format or a magnitude.

15. The computer-implemented method of claim 11 , wherein the deep learning module comprises an artificial neural network.

16. The computer-implemented method of claim 11 , wherein the deep learning module comprises a transformer-based deep learning model, and wherein the transformer-based deep learning model is based on a Bidirectional Encoder Representations from Transformers (BERT) model.

17. The computer-implemented method of claim 11 , wherein the plurality of electronic documents includes at least one of a document including financial information or a document from a financial domain; and wherein the tags associated with text elements in the plurality of electronic documents are tags associated with an eXtensive Business Reporting Language (XBRL).

18. A data processing apparatus, comprising:

at least one processor; and

memory storing computer-readable instructions that, when executed by the at least one processor, cause the data processing apparatus to:

receive, by an input module of the data processing apparatus, an electronic document to be tagged;

preprocess, by a preprocessing module of the data processing apparatus, the electronic document to be tagged, the preprocessing comprising:

extracting a text from the electronic document to be tagged;

replacing at least one of a numerical amount or a date in the extracted text with a predetermined symbol, wherein the predetermined symbol is not used in the extracted text before replacing at least one of the numerical amount or the date in the extracted text, wherein the predetermined symbol includes a special character that is non-numeric and non-alphabetic; and

tokenizing the extracted text with the predetermined symbol into a plurality of tokens without fragmenting the predetermined symbol, wherein keeping the predetermined symbol unfragmented avoids inaccurate tagging associated with the predetermined symbol;

determine, by a deep learning module of the data processing apparatus, a tag for at least one of the plurality of tokens; and

output, by an output module of the data processing apparatus, the determined tag for the at least one of the plurality of tokens.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 29, 2022
From: LOUKAS, ELEFTHERIOS PANAGIOTIS; SPYROPOULOU, EIRINI; MALAKASIOTIS, PRODROMOS; FERGADIOTIS, EMMANOUIL; CHALKIDIS, ILIAS; ANDROUTSOPOULOS, IOANNIS; PALIOURAS, GEORGIOS
To: NATIONAL CENTRE FOR SCIENTIFIC RESEARCH "DEMOKRITOS"
Reel/Frame 060671/0993 →
Priority Claims (1)
EP 21386048 · Jul 26, 2021 · regional
Continuity (1)
Related Publication 20230028664A1 · Jan 26, 2023
References Cited (19)
US 10817619B1 · Kolli · 2020 [cited by examiner]
US 10997369B1 · Frazier · 2021 [cited by examiner]
US 12026280B2 · Dash · 2024 [cited by examiner]
US 20080118150A1 · Balakrishnan · 2008 [cited by examiner]
US 20170098093A1 · Koo · 2017 [cited by examiner]
US 20210192126A1 · Gehrmann · 2021 [cited by examiner]
US 20210217408A1 · Hakkani-Tur · 2021 [cited by examiner]
US 20210390080A1 · Tripathi · 2021 [cited by examiner]
US 20220035990A1 · Kaza · 2022 [cited by examiner]
US 20230022845A1 · Meng · 2023 [cited by examiner]
CN 112257442 · 2021 [cited by applicant]
EP 4124988 · 2023 [cited by applicant]
WO WO2023006773 · 2023 [cited by applicant]
Chalkidis Ilias et al.: “An Empirical Study on Large-Scale Multi-Label Text Classification Including Few and Zero-Shot Labels” Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, Nov.… [cited by applicant]
PCT Application No. PCT/EP2022/070985 International Search Report and Written Opinion dated Nov. 29, 2022. [cited by applicant]
Baviskar et al., “Efficient Automated Processin of the Unstructured Documents Using Artificial Intelligence: A Systematic Literature Review and Future Directions” Digital Object Identifier, IEEE Access, vol. 9, pp. 7289… [cited by applicant]
PCT Application No. PCT/EP2022/070985, International Preliminary Report on Patentability dated Feb. 8, 2024. [cited by applicant]
European Application No. EP21386048.9, Extended European Search Report dated Jan. 7, 2022. [cited by applicant]
European Application No. EP21386048.9, First Examination Report dated Aug. 2, 2024. [cited by applicant]