judith0 commited on
Commit
d4df7a7
·
1 Parent(s): 86b8dc1

agregando ids nuevas

Browse files
.idea/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
.idea/id_reversoNuevo.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
5
+ <option name="ignoredPackages">
6
+ <value>
7
+ <list size="3">
8
+ <item index="0" class="java.lang.String" itemvalue="huggingface-hub" />
9
+ <item index="1" class="java.lang.String" itemvalue="PyYAML" />
10
+ <item index="2" class="java.lang.String" itemvalue="typing_extensions" />
11
+ </list>
12
+ </value>
13
+ </option>
14
+ </inspection_tool>
15
+ <inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
16
+ <option name="ignoredErrors">
17
+ <list>
18
+ <option value="W605" />
19
+ </list>
20
+ </option>
21
+ </inspection_tool>
22
+ </profile>
23
+ </component>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
4
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/id_reversoNuevo.iml" filepath="$PROJECT_DIR$/.idea/id_reversoNuevo.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
crear.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+
4
+ # Ruta de la carpeta donde se guardarán los archivos JSON
5
+ folder_path = "./data/key"
6
+
7
+ # Verificar si la carpeta existe, de lo contrario, crearla
8
+ if not os.path.exists(folder_path):
9
+ os.makedirs(folder_path)
10
+
11
+ for i in range(1,20 ):
12
+ data = {
13
+
14
+ "documentNumber": "",
15
+ "bar1": "",
16
+ "bar2": "",
17
+ "bar3": ""
18
+ }
19
+
20
+ file_name = f"{i}.json"
21
+ file_path = os.path.join(folder_path, file_name)
22
+
23
+ with open(file_path, 'w') as f:
24
+ json.dump(data, f, indent=4)
25
+
26
+ print(f"Archivo {file_name} creado en {folder_path}.")
27
+
28
+ print("Creación de archivos JSON completada.")
data/img/000.jpg ADDED

Git LFS Details

  • SHA256: 92ca091ae68e1dda814e1825e4594e15314537cd9c0bbaf3418cb68008c072a8
  • Pointer size: 131 Bytes
  • Size of remote file: 340 kB
data/img/001.jpg ADDED

Git LFS Details

  • SHA256: a1312ac553af7f56c8c8230644b94905b01d0e516a99b15efd659d64a2b79aa1
  • Pointer size: 130 Bytes
  • Size of remote file: 84.1 kB
data/img/002.jpg ADDED

Git LFS Details

  • SHA256: 709a08c16181480f51fd4319cbedfcea0be85e9df80eac69b1becf5f2ef2a5d6
  • Pointer size: 131 Bytes
  • Size of remote file: 199 kB
data/img/003.jpg ADDED

Git LFS Details

  • SHA256: f96346367477552773a8baa22fe4f894db8f0c67415dc0b549150eea66ee325c
  • Pointer size: 131 Bytes
  • Size of remote file: 193 kB
data/img/004.jpg ADDED

Git LFS Details

  • SHA256: 24017aa748dc5b3239aa7b61a2e51e170aacfea638dccc5f0524d2f2255fcc7b
  • Pointer size: 131 Bytes
  • Size of remote file: 985 kB
data/img/005.jpg ADDED

Git LFS Details

  • SHA256: 7b22d1b47c4ae1948a26de85c9a5e7244894c2e569d2b7f99f16154608841964
  • Pointer size: 130 Bytes
  • Size of remote file: 79.9 kB
data/img/006.jpg ADDED

Git LFS Details

  • SHA256: 36e386e39c2429099f3604d7b9faedf3e97b3bb7edb651324020ab21e1c5d4ec
  • Pointer size: 130 Bytes
  • Size of remote file: 83.4 kB
data/img/007.jpg ADDED

Git LFS Details

  • SHA256: d775d0c71050c0532d487f229c6a1efb9d4ac1cde855c7d4b1cd0d7ac67cf217
  • Pointer size: 131 Bytes
  • Size of remote file: 132 kB
data/img/008.jpg ADDED

Git LFS Details

  • SHA256: 8dbf5290e8215bea0db683ef28f27dcbce5c2c4634c8c4c317ee816f215d1e2a
  • Pointer size: 131 Bytes
  • Size of remote file: 151 kB
data/img/009.jpg ADDED

Git LFS Details

  • SHA256: d22aeb333dca0d8abeb910ae5a5e831cdf51ec173ae4f8271e9953d4a3c4d1fb
  • Pointer size: 131 Bytes
  • Size of remote file: 313 kB
data/img/010.jpg ADDED

Git LFS Details

  • SHA256: bac1dc2efd8a6d93c1da705b357fe94686bbf14b05aedd118d02b1584ea1a0b6
  • Pointer size: 131 Bytes
  • Size of remote file: 443 kB
data/img/011.jpg ADDED

Git LFS Details

  • SHA256: 0fc5715ad2eccb2a67b38aff338f036e2b4f1e3578170ba461abb853bda32e0b
  • Pointer size: 131 Bytes
  • Size of remote file: 190 kB
data/img/012.jpg ADDED

Git LFS Details

  • SHA256: d7ca509bdf937ee92a8bfbac0d232fc8c082660980fae76a0154043ba769d26a
  • Pointer size: 131 Bytes
  • Size of remote file: 306 kB
data/img/013.jpg ADDED

Git LFS Details

  • SHA256: d4351d73770d8394cce0c8918e11250222d223ad8ce39556c94d92205fddb25d
  • Pointer size: 131 Bytes
  • Size of remote file: 456 kB
data/img/014.jpg ADDED

Git LFS Details

  • SHA256: aa523a52713b22d8caaf391415efb5a6d4537dec4553762c4e2211ec43e63ff2
  • Pointer size: 131 Bytes
  • Size of remote file: 824 kB
data/img/015.jpg ADDED

Git LFS Details

  • SHA256: f305f49c49481848e48e7d8c2a6c243c83a40f0df884a50bde8d5f514eaea3e7
  • Pointer size: 131 Bytes
  • Size of remote file: 198 kB
data/img/016.jpg ADDED

Git LFS Details

  • SHA256: b196b6f39b53396bd06d5aa0d4b30828b15134ae733545b5556ed6b5b5294e34
  • Pointer size: 130 Bytes
  • Size of remote file: 55.7 kB
data/img/017.jpg ADDED

Git LFS Details

  • SHA256: b44358bfcdb44e59b7922c88c5790f87e06f110790ba8d1844b305cf2abce4d4
  • Pointer size: 131 Bytes
  • Size of remote file: 137 kB
data/key/000.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "000528753",
3
+ "bar1": "ICCOL000528753603001",
4
+ "bar2": "8708069M3106291COL1129536199 4",
5
+ "bar3": "ORTEGA GONZALEZ DAVID EDUARDO"
6
+ }
data/key/001.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "004760687",
3
+ "bar1": "ICCOL004760687415055",
4
+ "bar2": "0409164F3209273COL1032510777 7",
5
+ "bar3": "RUJANO PAEZ ANA ESTHER"
6
+ }
data/key/002.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "004578024",
3
+ "bar1": "ICCOL004578024888815",
4
+ "bar2": "8901136F3209136COL1127617250 4",
5
+ "bar3": "GONZALEZ ROMERO ROSA EUCARIS"
6
+ }
data/key/003.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "006580597",
3
+ "bar1": "ICCOL006580597427019",
4
+ "bar2": "5911147M3210260COL13890260 4",
5
+ "bar3": "BENJUMEA MAX CARLOS ALBERTO"
6
+ }
data/key/004.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "002202561",
3
+ "bar1": "ICCOL002202561224001",
4
+ "bar2": "9801211M3204212COL1088346963 7",
5
+ "bar3": "ROJAS GIRALDO MIGUEL ANGEL"
6
+ }
data/key/005.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "001526600",
3
+ "bar1": "ICCOL001326460026001",
4
+ "bar2": "8204273M3111264COL4375662 8",
5
+ "bar3": "ESCOBAR CARVAJAL JOHN ANDERSO"
6
+ }
data/key/006.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "002586942",
3
+ "bar1": "ICCOL002586942413001",
4
+ "bar2": "9404162M33206216COL1067928443 1",
5
+ "bar3": "PALENCIA JARAMILLO VICTOR HUG"
6
+ }
data/key/007.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "004912428",
3
+ "bar1": "ICCOL004912426201088",
4
+ "bar2": "9705180F3209192COL100731844 7",
5
+ "bar3": "AGUIRRE CUADRADO DIANA LUCIA"
6
+ }
data/key/008.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "002667436",
3
+ "bar1": "ICCOL002667436203001",
4
+ "bar2": "6803074M3207051COL8532982 3",
5
+ "bar3": "CORREA MENDOZA JAIRO GUIDO"
6
+ }
data/key/009.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "000000012",
3
+ "bar1": "ICCOL000000012",
4
+ "bar2": "8808213F3101300COL1234567890 9",
5
+ "bar3": "WALTEROS LAURA"
6
+ }
data/key/010.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "000000012",
3
+ "bar1": "ICCOL000000012",
4
+ "bar2": "8808213F3101300COL1234567890 9",
5
+ "bar3": "MARTINEZ GARCIA MARIA DANIELA"
6
+ }
data/key/011.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "004919",
3
+ "bar1": "ICCOL004919478615001",
4
+ "bar2": "7206258M3209158COL79575935 5",
5
+ "bar3": "CRUZ RAMOS EDUAR"
6
+ }
data/key/012.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "005666108",
3
+ "bar1": "ICCOL005666108615241",
4
+ "bar2": "7801169M3210031COL3171235 7",
5
+ "bar3": "GONZALEZ LOPEZ DIEGO ALEXANDE"
6
+ }
data/key/013.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "003873061",
3
+ "bar1": "ICCOL003873061203001",
4
+ "bar2": "9305018F3209206COL1045715241 2",
5
+ "bar3": "ZAPATA SARMIENTO ANA GABRIELA"
6
+ }
data/key/014.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "00899730",
3
+ "bar1": "ICCOL000899730009001",
4
+ "bar2": "8212177F3109018COL30232407 5",
5
+ "bar3": "RAMIREZ HIGINIO VIVIANA DEL P"
6
+ }
data/key/015.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "005631353",
3
+ "bar1": "ICCOL005631353627001",
4
+ "bar2": "0409278M3210031COL1098629794 1",
5
+ "bar3": "HERRERA JUAN DAVID"
6
+ }
data/key/016.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "001878268",
3
+ "bar1": "ICCOL001878268627082",
4
+ "bar2": "9205277M3202104COL1095812467 0",
5
+ "bar3": "DUARTE UMANA SERGIO ANDRES"
6
+ }
data/key/017.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "002105237",
3
+ "bar1": "ICCOL002105237415001",
4
+ "bar2": "8105314M3204049COL80032938 2",
5
+ "bar3": "NAVARRO VALLEJO JUAN PABLO"
6
+ }
data/key/018.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "",
3
+ "bar1": "",
4
+ "bar2": "",
5
+ "bar3": ""
6
+ }
data/key/019.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "",
3
+ "bar1": "",
4
+ "bar2": "",
5
+ "bar3": ""
6
+ }
data/key/020.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "documentNumber": "006580597",
3
+ "bar1": "ICCOL006580597427019",
4
+ "bar2": "5911147M3210260COL13890260 4",
5
+ "bar3": "BENJUMEA MAX CARLOS ALBERTO"
6
+ }
requirements.txt ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ asttokens==2.2.1
2
+ backcall==0.2.0
3
+ colorama==0.4.6
4
+ comm==0.1.2
5
+ debugpy==1.6.6
6
+ decorator==5.1.1
7
+ executing==1.2.0
8
+ huggingface-hub==0.12.0
9
+ ipykernel==6.21.1
10
+ ipython==8.9.0
11
+ ipywidgets==8.0.4
12
+ jedi==0.18.2
13
+ jupyter_client==8.0.2
14
+ jupyter_core==5.2.0
15
+ jupyterlab-widgets==3.0.5
16
+ matplotlib-inline==0.1.6
17
+ nest-asyncio==1.5.6
18
+ packaging==23.0
19
+ parso==0.8.3
20
+ pickleshare==0.7.5
21
+ platformdirs==3.0.0
22
+ prompt-toolkit==3.0.36
23
+ psutil==5.9.4
24
+ pure-eval==0.2.2
25
+ Pygments==2.14.0
26
+ python-dateutil==2.8.2
27
+ pywin32==305
28
+ PyYAML==6.0
29
+ pyzmq==25.0.0
30
+ six==1.16.0
31
+ stack-data==0.6.2
32
+ tornado==6.2
33
+ tqdm==4.64.1
34
+ traitlets==5.9.0
35
+ typing_extensions==4.4.0
36
+ urllib3==1.26.14
37
+ wcwidth==0.2.6
38
+ widgetsnbextension==4.0.5
tranform.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import json
3
+ import shutil
4
+ from tqdm.notebook import tqdm
5
+ lines = []
6
+ images = []
7
+ i = 1
8
+ for ann in tqdm(os.listdir("./data/key")[9:20]):
9
+ i += 1
10
+ if ann != ".ipynb_checkpoints":
11
+ with open("./data/key/" + ann) as f:
12
+ data = json.load(f)
13
+ images.append(ann[:-4] + "jpg")
14
+ line = {"gt_parse": data}
15
+ lines.append(line)
16
+ with open("./idInverso-donut/train/metadata.jsonll", 'w') as f:
17
+ for i, gt_parse in enumerate(lines):
18
+ line = {"file_name": images[i], "ground_truth": json.dumps(gt_parse)}
19
+ f.write(json.dumps(line) + "\n")
20
+ shutil.copyfile("./data/img/" + images[i], "./idInverso-donut/train/" + images[i])