Mazenbs commited on
Commit
39285a6
·
verified ·
1 Parent(s): fa02b5f

Update parser/assembler.py

Browse files
Files changed (1) hide show
  1. parser/assembler.py +1 -2
parser/assembler.py CHANGED
@@ -60,8 +60,7 @@ def extract_sections(blocks: List[Dict[str, str]]) -> List[Dict]:
60
 
61
  return sections
62
 
63
- def parse_law_from_texts(text_blocks: List[Dict[str, str]]) -> Dict:
64
- # استخراج العنوان + المقدمة + باقي النص
65
  title, preamble, remaining_blocks = extract_title_and_preamble(text_blocks)
66
  sections_raw = extract_sections(remaining_blocks)
67
 
 
60
 
61
  return sections
62
 
63
+ def parse_law_from_texts(text_blocks: List[Dict[str, str]], url: str = None) -> Dict:
 
64
  title, preamble, remaining_blocks = extract_title_and_preamble(text_blocks)
65
  sections_raw = extract_sections(remaining_blocks)
66