mfajcik commited on
Commit
d4be186
1 Parent(s): c057c58

Update convert_ORTOFON_ORAL13.py

Browse files
Files changed (1) hide show
  1. convert_ORTOFON_ORAL13.py +2 -7
convert_ORTOFON_ORAL13.py CHANGED
@@ -1,4 +1,5 @@
1
- # open .data/ORTOFONv1/ortofon_v1_vert.gz
 
2
  import gzip
3
  import os
4
  import re
@@ -8,12 +9,6 @@ from tqdm import tqdm
8
  FILE_PATH = ".data/ORTOFONv1/ortofon_v1_vert.gz"
9
  with gzip.open(FILE_PATH, "rt") as f:
10
  data = f.read()
11
- """
12
- Problems:
13
- - sometimes lines in oral are empty? e.g. 08A009N // REMOVE THESE LINES
14
- - sometimes lines in ortofon are containing three dots only, such as [mluvčí: Miroslava] ... // REMOVE THESE LINES
15
- - sometimes lines in ortofon contain @ only, e.g., [mluvčí: Radka] @ // REMOVE THESE LINES
16
- """
17
 
18
  def process_vert_format_ortofon(vert_content: str) -> Dict[str, str]:
19
  # Pattern to match document boundaries and extract metadata
 
1
+ #author: Martin Fajčík
2
+
3
  import gzip
4
  import os
5
  import re
 
9
  FILE_PATH = ".data/ORTOFONv1/ortofon_v1_vert.gz"
10
  with gzip.open(FILE_PATH, "rt") as f:
11
  data = f.read()
 
 
 
 
 
 
12
 
13
  def process_vert_format_ortofon(vert_content: str) -> Dict[str, str]:
14
  # Pattern to match document boundaries and extract metadata