welfare-state-analytics / riksdagen-corpus

Swedish parliamentary proceedings - Riksdagens protokoll 1867-today
Other
26 stars 5 forks source link

Delimit "table of contents" with a div #405

Closed BobBorges closed 9 months ago

BobBorges commented 10 months ago

The tables of contents in unicameral protocols cause a lot of trouble ("empty speeches", duplicated section headings). Delimit them with divs type="commentSection", subtype="tableOfContents", so we can automate ignoring these sections in other calculations.

MansMeg commented 10 months ago

I think this is a really good thing to do. @Lottabrorsson does this sound reasonable also to you? To identify registers and Table of Contents in the records?

BobBorges commented 10 months ago

I can take a crack at doing it programmatically.

Lottabrorsson commented 10 months ago

I think this is a really good thing to do. @Lottabrorsson does this sound reasonable also to you? To identify registers and Table of Contents in the records?

@MansMeg @BobBorges Yes, I think that´s a good idea!

BobBorges commented 9 months ago

Taking some notes here:

1971--198889

strategy

issues

198990

strategy

issues

199091 -- 199394

strategy

199495 -- 200203

200304 -- 201314

201415 -- 202122

BobBorges commented 9 months ago

@Lottabrorsson Do you have any insight as to why protocols in some periods sporadically have Tables of Contents or not?

@MansMeg The 201415 -- now period is both the most problematic (for identifying sections, and where "empty" speeches originate) and probably the easiest to fix. Is it reasonable, according to you, open a PR with TOC sectioning only in this period, and then work backwards in subsequent work?

MansMeg commented 9 months ago

That is definitely a smart way forward to solve this issue, so I think it is a great way forward. This TOCs are the most urgent issue to fix.

I think we need to think about how to communicate this in a good way to users. We will have the same problem with interpellation debates and < div > that will be missing during the bicameral period.

Lottabrorsson commented 9 months ago

@Lottabrorsson Do you have any insight as to why protocols in some periods sporadically have Tables of Contents or not?

@MansMeg The 201415 -- now period is both the most problematic (for identifying sections, and where "empty" speeches originate) and probably the easiest to fix. Is it reasonable, according to you, open a PR with TOC sectioning only in this period, and then work backwards in subsequent work?

@BobBorges I have looked at some examples for the years you notified as missing TOC. Each protocol seems to have a seperate TOC in the end. I will have a meeting next week with Lars Brink and can ask him if he knows anything more about this.

BobBorges commented 9 months ago

Ok! Perhaps the TOC sections were not scanned systematically (especially that some apply to multiple protocols) and/or not included in the JSON files in the post1998 data.

BobBorges commented 9 months ago

Sampled changes

corpus/protocols/201415/prot-201415--001.xml

Diff starting from line 4732

@@ -4742,21 +4732,15 @@
           <note xml:id="i-JNDck7TtGsgsGRwjJoFvhH" type="speaker">
             Anf. 3 ANNA KINBERG BATRA (M)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-EhY7bSMkByZitMgxnBA1vr">
           <note xml:id="i-9gzZN2JYWRSRYNesASLtsQ">
             § 7 Anmälan om ersättare för talmannen
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-3qySy8C47xBukL7LNqbfpx">
           <note xml:id="i-UqJCDGSTaePUYmRb9Cf81f">
             § 8 Val av förste vice talman
           </note>
           <note xml:id="i-KbePRCp7FswT3PHFeTaZAQ" type="speaker">
             Anf. 4 ANNA KINBERG BATRA (M)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-R4whx6s3YTsYgkZWh2D8BG">
           <note xml:id="i-X2RQ5o9FRJAA1eF9hWAGeE">
             § 9 Val av andre vice talman
           </note>

corpus/protocols/201415/prot-201415--019.xml

Diff starting from line 14318

@@ -14320,43 +14318,27 @@
           <note xml:id="i-PPAuhSk1nxLnqYsy4WUSqx">
             (forts. prot. 20)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Xr1UHrHR9QUGckAyhFt8Fk">
           <note xml:id="i-7AJPcoqjsM8NWsqh6LdTtr">
             § 2 Justering av protokoll
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-5sgZUdLQwT54dSSr4WtjXZ">
           <note xml:id="i-jCbQzAgbsyHFLMuFtBk1w">
             § 3 Anmälan om subsidiaritetsprövningar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-7WQxwcTnszoXohfyUBDocj">
           <note xml:id="i-Twykxvsez4dKDRxV1oftXv">
             § 4 Anmälan om fördröjt svar på interpellation
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-7zJjosWLQNoMDwjuJuhkr4">
           <note xml:id="i-5NAxQ4jq4Z8bFQuw3sXgzM">
             § 5 Anmälan om faktapromemoria
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-9RuRrX5Sx6L1L7GZinjMo4">
           <note xml:id="i-PqS1PzykkL7N9zjoxLs6GM">
             § 6 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-SXFxh4TxHsQG6WGpqqRAVC">
           <note xml:id="i-KWrz295vhBbWcsnnX87BKs">
             § 7 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-G9aEZRDEH4s2SLGadQvnZu">
           <note xml:id="i-QmU1TFVdjVRugPfbkfD3qw">
             § 8 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-MEyE1diZw7ua8Wa7tBkJ6c">
           <note xml:id="i-Nxhi5v8hK2qqrYT7mSWGA7">
             § 9 Kammaren åtskildes kl. 22.45.
           </note>

corpus/protocols/201415/prot-201415--021.xml

Diff starting from line 8403

@@ -8427,8 +8403,6 @@
           <note xml:id="i-QdkqNLJ1ADh1j6mgzdt5sh" type="speaker">
             Anf. 126 Närings- och innovationsminister MIKAEL DAMBERG (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-TJgJxCgL7Cvc8oaqNwe8D7">
           <note xml:id="i-JPE9bfhjC7cAv4PTGkoAa6">
             § 14 Svar på interpellation 2014/15:89 om arbetslöshetsstatistik
           </note>

corpus/protocols/201415/prot-201415--023.xml

Diff starting from line 9907

@@ -9915,8 +9907,6 @@
           <note xml:id="i-9ihjk94DP4K92yfSinbo2t" type="speaker">
             Anf. 13 Finansminister MAGDALENA ANDERSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-47xicjJyg77iT3UDmSpSvu">
           <note xml:id="i-28dFZy6XpahKE2mtoTC73R">
             § 6 Svar på interpellation 2014/15:46 om högre marginalskatters
             effekter på den svenska ekonomins konkurrenskraft

Diff starting from line 10145

@@ -10165,8 +10145,6 @@
           <note xml:id="i-4RWad69T1sjv4BPuWn1Nw1" type="speaker">
             Anf. 81 Finansminister MAGDALENA ANDERSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-SriVNzWKorVE7JnpXp9TrH">
           <note xml:id="i-HQHfTPvJdhLG1Fo9Cizpxu">
             § 11 Svar på interpellation 2014/15:94 om flygskatt
           </note>

corpus/protocols/201415/prot-201415--052.xml

Diff starting from line 1610

@@ -1628,8 +1610,6 @@
           <note xml:id="i-3VmsPWwa7Yh9HCxpccwcPY">
             Återupptagna förhandlingar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-SSeFEFoKsHUD7jN7BqiRgq">
           <note xml:id="i-5SweC2Lts9ZcfTtYTPqGMe">
             § 11 Beslut om ärenden som slutdebatterats vid dagens sammanträde
           </note>

corpus/protocols/201516/prot-201516--082.xml

Diff starting from line 9061

@@ -9061,22 +9061,18 @@
           <note xml:id="i-J8diprKaW9nmre7BfDPNn7">
             /Olof Pilo
           </note>
+        </div>
+        <div xml:id="i-6wnsbemeXbQALT4VSVEe9M" type="commentSection" subtype="tableOfContents">
           <pb facs="http://data.riksdagen.se/fil/E6A6D209-7BA2-494B-9995-CB0AEEC58246#page=93"/>
           <note xml:id="i-KBV7xPQ5hnHzJR1aofp8a8">
             Innehållsförteckning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-US2BQ3NbzkqvHGNc6fKESK">
           <note xml:id="i-NKBPg33k9cjciSXbRom93G">
             § 1 Anmälan om fördröjda svar på interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-WQnnWHw24AFQxhgZj2DZ9x">
           <note xml:id="i-66d7PdNEtxS6FgaQCMQoBC">
             § 2 Ärenden för hänvisning till utskott
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-NASfoLj1bUKEvEHos3KDNC">
           <note xml:id="i-KpyfW6A9pGZe6vw8nBQXMY">
             § 3 Socialtjänstfrågor
           </note>

corpus/protocols/201516/prot-201516--084.xml

Diff starting from line 8941

@@ -8971,8 +8941,6 @@
           <note xml:id="i-M5AwhY7biG2vFwuEaD88fG" type="speaker">
             Anf. 96 Finansminister MAGDALENA ANDERSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-fqpY6Fd8kJbrX9vhXRuYA">
           <note xml:id="i-XF9W5ZBFkvH332h4GgioqM">
             § 16 Svar på interpellation 2015/16:471 om Backaundantaget
           </note>

corpus/protocols/201516/prot-201516--099.xml

Diff starting from line 8550

@@ -8584,23 +8550,15 @@
           <note xml:id="i-GJXVpu72WsS5nE54ZJiG8L">
             SoU7 Hälso- och sjukvårdsfrågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Qo6JJcqsCZ8iU12jZn7ycf">
           <note xml:id="i-PBU8XFdigrtpbx2MPThBi7">
             § 19 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-7Pq8RKCy9Wp9dLW78FgJEg">
           <note xml:id="i-5zMiWmp7E66Z64ZhqWHYz1">
             § 20 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-A1fBtxRnK6JB51HZZHHGzy">
           <note xml:id="i-JxuUP8uYvkTGRApAfFLscw">
             § 21 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-S1Vb8AK9Q5NCf6xVGzuSu2">
           <note xml:id="i-EN7jVLoPZd5kLsSrVoeT6G">
             § 22 Kammaren åtskildes kl. 16.24.
           </note>

corpus/protocols/201516/prot-201516--127.xml

Diff starting from line 7161

@@ -7199,13 +7161,9 @@
           <note xml:id="i-7T83cMf3tkkFshsfB4CppK" type="speaker">
             Anf. 96 Miljöminister KAROLINA SKOG (MP)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-5KWPzBvDmvNPUk2k4PC8q1">
           <note xml:id="i-GGGbCmQy394MJ4Uxsf3oxR">
             § 21 Bordläggning och beslut om förlängd motionstid
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-DR15FRKNeZLfTxqsE9eVXQ">
           <note xml:id="i-EuLeWuS7RNaEUUBzZ7JbkQ">
             § 22 Kammaren åtskildes kl. 13.27.
           </note>

corpus/protocols/201516/prot-201516--128.xml

Diff starting from line 2748

@@ -2748,92 +2748,60 @@
           <note xml:id="i-szcVF3Y7Epw8EFS4kpPH3">
             / Olof Pilo
           </note>
+        </div>
+        <div xml:id="i-2GorurY4Yq8oixkYtmAtxE" type="commentSection" subtype="tableOfContents">
           <pb facs="http://data.riksdagen.se/fil/04963753-CCF6-42DE-B54D-0E9823595E89#page=30"/>
           <note xml:id="i-JCPxsBxjS15mUgSqyhd1w8">
             Innehållsförteckning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-7ffA2XMJ8tHgGzkpuCWcYL">
           <note xml:id="i-Y9sf3ytNvKqATkMGYLH6uM">
             § 1 Avsägelser
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-8k8371webHtqzpD4scSjGm">
           <note xml:id="i-NnN5izHuvLSxDsYncv6b1W">
             § 2 Val
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-TA13y1wR2VBcSMGEuZzV8h">
           <note xml:id="i-JJjEBAQKfTfRzzGUTCGZpe">
             § 3 Justering av protokoll
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-E6poX2kA9mdNxFvPjzz2yX">
           <note xml:id="i-RempJRSBCf5ARyXnhwZ8S4">
             § 4 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-QJL1cxvrsZ4PVw8EC6N869">
           <note xml:id="i-7qxQpzJ8RJjzYmsWg7FEmq">
             § 5 Anmälan om skriftliga frågor och svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-EnmJV1xJPWYQTiVJmJ3CLk">
           <note xml:id="i-U3iZc3NbEemiWDMMoVeJ6q">
             § 6 Anmälan om förändring i regeringens sammansättning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-PVLPZhRgt9zR5L5QukheWx">
           <note xml:id="i-BQfazR4sU1DtKz3oJooARE">
             § 7 Anmälan om återtagande av plats i riksdagen
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-PiQKKYmgZYG49SSGPLJWnA">
           <note xml:id="i-35dXymaX3o8v3biVkhUstj">
             § 8 Anmälan om ersättare
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-CzZA3wsLvQsUmSr3SGCbx9">
           <note xml:id="i-5jYqWSZxe5gp8bNmD21QLB">
             § 9 Anmälan om kompletteringsval
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-CRQc6byspAyWuLpa9GZbY7">
           <note xml:id="i-DcLHFr2CbnoTf1rYigQ2ff">
             § 10 Meddelande om namnändring
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Uj8Yd4pAoX4hnVnmK9z8Nw">
           <note xml:id="i-MMdjbFZLhLmtGeD8hq9Mp2">
             § 11 Anmälan om ordförande i EU-nämnden
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-S4VZGHLuEazBifJWctmo2M">
           <note xml:id="i-LSVYn9rq2bUVHszzSZDFKB">
             § 12 Anmälan om subsidiaritetsprövning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Ve61YN2uorzkoKfPGWa5pw">
           <note xml:id="i-kkLU34opbQVC4Tzep9K4q">
             § 13 Anmälan om fördröjda svar på interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-4egEZQVikKfffWA4KxLWiS">
           <note xml:id="i-RQhD7mWdfU9mbRz5sdMJkK">
             § 14 Anmälan om faktapromemorior
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-4gSbQmxPBBoVNJCnTuScvt">
           <note xml:id="i-TC7hfCNii8Sy6w9ZTS8y9i">
             § 15 Anmälan om granskningsrapporter
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-RJQssTf5csXRpqCPhuuTc4">
           <note xml:id="i-CJLK4Kt2NQYVq942FAcNCB">
             § 16 Ärenden för hänvisning till utskott
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-PFN8zkHd985NJSKVS2e4r4">
           <note xml:id="i-7YGGAZ56uYYdxhYbZj8hoK">
             § 17 Svar på interpellation 2015/16:738 om transportinfrastrukturen
             i Norrland

corpus/protocols/201516/prot-201516--129.xml

Diff starting from line 7658

@@ -7680,8 +7658,6 @@
             Anf. 43 Försvarsminister PETER HULTQVIST (S)
           </note>
           <pb facs="http://data.riksdagen.se/fil/EFD86183-2905-4BF4-B62C-387FBF3A9E98#page=38"/>
-        </div>
-        <div type="debateSection" xml:id="i-SNDGgt6PmT4DTpjRVTcKoP">
           <note xml:id="i-VQK1ZVfPGFB9rwhgARAaJ7">
             § 13 Svar på interpellation 2015/16:658 om utsatta EU-medborgare
           </note>

corpus/protocols/201617/prot-201617--029.xml

Diff starting from line 6968

@@ -6968,47 +6968,33 @@
           <note xml:id="i-4zwMPvcqP27X7G1HAg5q5J">
             / Olof Pilo
           </note>
+        </div>
+        <div xml:id="i-WhtGetPSM68WFt53wkJ4EA" type="commentSection" subtype="tableOfContents">
           <pb facs="http://data.riksdagen.se/fil/44FE8541-BE16-4569-AA44-5C39B0147D17#page=73"/>
           <note xml:id="i-HyLxpaerN65gpxyNxrihWW">
             Innehållsförteckning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-QYR4odJWP7VL24Qhkjit6N">
           <note xml:id="i-21FMCSBA9sQKkQqn2wXsb3">
             § 1 Justering av protokoll
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-LNXeV5P5jzsKSwHh2k1USz">
           <note xml:id="i-FktXVW7Rg8TwTpoRANqnwM">
             § 2 Anmälan om sammansatt utrikes- och försvarsutskott
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-DZ4Nys66sqPupLBpVwhLzu">
           <note xml:id="i-SmLi77yvTN2rMGwcAU89A5">
             § 3 Utökning av antalet suppleanter
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-9JkZ4uHJZhSPmCWtaepvUM">
           <note xml:id="i-DT6Ec2cr6bWjEEcZj18M2M">
             § 4 Val av extra suppleant
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-4qwvT8vRk2rKjLZHdVyzxt">
           <note xml:id="i-XP7iWhPPrhiFo6tpkTo5Np">
             § 5 Anmälan om subsidiaritetsprövning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-8VDoyFiS8uWtxzeL6YfEKy">
           <note xml:id="i-3NZGo1nJd9gwp7ck7rmtzJ">
             § 6 Anmälan om fördröjt svar på interpellation
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-RHTUqcFmyYQNozRFUZE6GC">
           <note xml:id="i-Nq5QHJd7gAJNiK1yKuwa3V">
             § 7 Ärenden för hänvisning till utskott
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-Ftg7jfGoEzLPm6JJPoQ4jY">
           <note xml:id="i-FGa2xyxozB8DbDMgZeGUTS">
             § 8 Översyn av Riksrevisionen
           </note>

corpus/protocols/201617/prot-201617--030.xml

Diff starting from line 3527

@@ -3537,28 +3527,18 @@
           <note xml:id="i-FSynLdC25HEjRT1YYfeBhK" type="speaker">
             Anf. 68 TALMANNEN
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-9Lq9bsueC6JTfRLgGzssqD">
           <note xml:id="i-Fqnn93bRPLjZN1TTGz6d9M">
             § 7 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-KWsA6NMnnmRbdvFoQPMHye">
           <note xml:id="i-HoBAL5cm1GWaxsDmgXowp9">
             § 8 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-SWbYmbU19iXrvmvd6Yogdc">
           <note xml:id="i-CnDjEqkGD32GCpwyoQ9iqg">
             § 9 Anmälan om fråga för skriftligt svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-RKKa9G2dmmPyYhzptxGFCW">
           <note xml:id="i-Fs5W8MkaPHZginPHYfbdTF">
             § 10 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Ay1r4hu8dBKK5yQrbpsHNQ">
           <note xml:id="i-9omr4NDH1X6vSmz1gevFpn">
             § 11 Kammaren åtskildes kl. 15.04.
           </note>

corpus/protocols/201617/prot-201617--038.xml

Diff starting from line 10640

@@ -10654,8 +10640,6 @@
           <note xml:id="i-Uors4fb7zjPTmaAxBLmDdT">
             Återupptaget sammanträde
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-5MAWXjEAeg8HtdhBoppZes">
           <note xml:id="i-JVNam5AbbUdjRaBNDg8DrX">
             § 9 Beslut om ärenden som slutdebatterats den 30 november
           </note>

corpus/protocols/201617/prot-201617--048.xml

Diff starting from line 10793

@@ -10819,8 +10793,6 @@
           <note xml:id="i-RFXCBxvii6PD92bpzJVsTP" type="speaker">
             Anf. 45 Justitie- och migrationsminister MORGAN JOHANSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-XiwDwBjDyrEG1xGJLeQdaV">
           <note xml:id="i-871Wpq3hPTRKeaqGwUy4gs">
             § 15 Svar på interpellation 2016/17:155 om asylsökande som saknar
             skyddsskäl

corpus/protocols/201617/prot-201617--057.xml

Diff starting from line 3157

@@ -3157,43 +3157,27 @@
           <note xml:id="i-ScTGuEncSRhLVCaBY1fHmK" type="speaker">
             Anf. 88 TALMANNEN
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-6zTnWBJSfjPAissxbvhz8W">
           <note xml:id="i-CWecZ67HuY5Hhar2SwRRV">
             § 2 Anmälan om subsidiaritetsprövning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-HverFkrDZWudd1Nwjp81gM">
           <note xml:id="i-Egkd5UBsvCU6pVf1wz8sPP">
             § 3 Anmälan om faktapromemoria
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-17mX7Rk3v5bnTaRR3baKSk">
           <note xml:id="i-MGsbP1ySXiSXHbqgqBEAz">
             § 4 Ärenden för hänvisning till utskott
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-6UeaWNbjWYdZhjR5D63Aim">
           <note xml:id="i-XbSwCi71SNXZBYLuJetAhx">
             § 5 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-TnQqEoX4JPv34Xr4P4xHeP">
           <note xml:id="i-Nbs7ZMnvqLYPqmMJRkdLvr">
             § 6 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-89NWt9sBPLEPTtYaAiSQPx">
           <note xml:id="i-H99Wy6miynuaSs3Hff67Y1">
             § 7 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-P8ih4AHioTT9A1hkN8tuW8">
           <note xml:id="i-AwVSBRVXj8UzMmZznVazdb">
             § 8 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-KCTBQuo6Vz7ZFA5Ab7jcqD">
           <note xml:id="i-JZ6eDC6s8EmApVCEwQEWqQ">
             § 9 Kammaren åtskildes kl. 15.12.
           </note>

corpus/protocols/201617/prot-201617--066.xml

Diff starting from line 1286

@@ -1298,8 +1286,6 @@
           <note xml:id="i-53WWNpuwKcAPnZukZ7ubbn" type="speaker">
             Anf. 7 Statsrådet ANDERS YGEMAN (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-GBPim8ZdzWaPq8sx4G1287">
           <note xml:id="i-NyPAtxTfnodrFAiDtsWzaV">
             § 8 Svar på interpellation 2016/17:227 om otryggheten i Malmö
             och Skåne

corpus/protocols/201617/prot-201617--067.xml

Diff starting from line 9550

@@ -9586,8 +9550,6 @@
           <note xml:id="i-Ui9YF8ZUXNVNjbheXCpo3d" type="speaker">
             Anf. 107 Socialförsäkringsminister ANNIKA STRANDHÄLL (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-Xh1baSkLs1HKWLNua1TVMS">
           <note xml:id="i-BERtJ2ZpJQ486pLF24rVuZ">
             § 20 Svar på interpellation 2016/17:256 om hästnäringen och strandskyddsreglerna
           </note>

corpus/protocols/201617/prot-201617--079.xml

Diff starting from line 8625

@@ -8645,8 +8625,6 @@
           <note xml:id="i-BP8WYX9xqCqHkNpxGYmMKM" type="speaker">
             Anf. 44 Finansminister MAGDALENA ANDERSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-Fp1i5ojsDy8ZCVyxLr2kdX">
           <note xml:id="i-WGLWko1sok9wwZr12WeQaa">
             § 12 Svar på interpellation 2016/17:332 om åtgärder för att få
             fram fler lärare

corpus/protocols/201617/prot-201617--097.xml

Diff starting from line 9488

@@ -9502,8 +9488,6 @@
           <note xml:id="i-TK1tmpRBZngsudapTPwe5s">
             (Beslut fattades under § 11.)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-2fjGtch2qCBW1anXFkgK9f">
           <note xml:id="i-FAsqS3JnqhDTz5eDrwMvXX">
             § 9 Samhällets krisberedskap
           </note>

corpus/protocols/201617/prot-201617--111.xml

Diff starting from line 3039

@@ -3059,8 +3039,6 @@
           <note xml:id="i-W9hBBAEQwccE1sDWRm1ASr">
             (Beslut skulle fattas den 17 maj.)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-XDXsigdBdbyi5bsewaYGaJ">
           <note xml:id="i-8YGuhwC7xUqAMNpvet3ECX">
             § 12 Kroppsbesiktning i syfte att utreda ålder i brottmålsprocessen
           </note>

corpus/protocols/201617/prot-201617--119.xml

Diff starting from line 4850

@@ -4862,8 +4850,6 @@
           <note xml:id="i-KLfiNc887YuZbeR6mhnq9i" type="speaker">
             Anf. 28 Justitie- och migrationsminister MORGAN JOHANSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-8bNSFYDd65kBYnUpV1nvVG">
           <note xml:id="i-VvhWoNFw9aBrydQBWvChHh">
             § 8 Svar på interpellation 2016/17:524 om våld och hot mot blåljuspersonal
           </note>

corpus/protocols/201617/prot-201617--128.xml

Diff starting from line 13442

@@ -13454,8 +13442,6 @@
           <note xml:id="i-NB9xfFVfRWBxB7iAeYVNzR">
             (Beslut skulle fattas den 20 juni.)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-VtyScvWLvNQSMrMSyF7FNs">
           <note xml:id="i-L5GkBjtPa9Zfp5JupuGtbf">
             § 8 En livsmedelsstrategi för Sverige
           </note>

corpus/protocols/201718/prot-201718--043.xml

Diff starting from line 10415

@@ -10441,8 +10415,6 @@
           <note xml:id="i-LEqJ9N4dAknZfKU9XDA65U" type="speaker">
             Anf. 86 Kultur- och demokratiminister ALICE BAH KUHNKE (MP)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-NjJ9Kw43KnXve8ATGKkfoF">
           <note xml:id="i-4x9jBhPk1Qw1rXvEFoYj5T">
             § 14 Svar på interpellation 2017/18:154 om förutsättningarna
             för dataspelsnäringen

corpus/protocols/201718/prot-201718--052.xml

Diff starting from line 6290

@@ -6308,23 +6290,15 @@
           <note xml:id="i-XYEJAzSUcDcnX6C6SNkMq9" type="speaker">
             Anf. 71 Statsrådet TOMAS ENEROTH (S)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-DAtwGYNed7NmEo736w7JvL">
           <note xml:id="i-JqrCwfSprgFS9eVLvjBkfP">
             § 11 Bordläggning och beslut om förlängd motionstid
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-997H5CJG15hiTx5rnHpD8R">
           <note xml:id="i-5iEEuwzzQwKx4H7ALBkDRe">
             § 12 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-HrCRmNLuiTqbsXKjRpixU6">
           <note xml:id="i-CLVvt1VwJpBHRTLC6ZPBs4">
             § 13 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-LSx5FcLzu33TmZNsF5iXYr">
           <note xml:id="i-LYMH6rrc8cZmZgfhAMDZ96">
             § 14 Kammaren åtskildes kl. 13.11.
           </note>

corpus/protocols/201718/prot-201718--081.xml

Diff starting from line 9574

@@ -9574,27 +9574,21 @@
           <note xml:id="i-X4DTkxK8gwgfMgVQFVUjac">
             /Olof Pilo
           </note>
+        </div>
+        <div xml:id="i-CSuJZxcV18WxSzLAqU66sL" type="commentSection" subtype="tableOfContents">
           <pb facs="http://data.riksdagen.se/fil/FD026C54-BB5F-4291-A44F-3BD6E0163047#page=94"/>
           <note xml:id="i-VFvd8M19DTiuJC7ub9xvBS">
             Innehållsförteckning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Kcaxw47wKX8SE1CeqYGtJk">
           <note xml:id="i-KTm7vEkUHbcknzMZiwRV9P">
             § 1 Justering av protokoll
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-3EJ5XpiyCLQTep87o6ReFy">
           <note xml:id="i-VwQvrBX4txu968Dhby3BCi">
             § 2 Anmälan om kompletteringsval
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-NL31cM4xJ9pLFb3F8jpFgQ">
           <note xml:id="i-W2edkEZVU7Fxnpop8AHvLz">
             § 3 Ärende för hänvisning till utskott
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-X5d7Endgb8S61oPqYTZUub">
           <note xml:id="i-BLVSY9hc4SLwey3RmEoWGk">
             § 4 Hyresrätt
           </note>

corpus/protocols/201718/prot-201718--091.xml

Diff starting from line 4947

@@ -4955,8 +4947,6 @@
           <note xml:id="i-YJsG3vH9ZnMXzcizDsWVPd" type="speaker">
             Anf. 14 Finansminister MAGDALENA ANDERSSON (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-W3cnBwkEHE2RFnA5bRxwGs">
           <note xml:id="i-GYbJGKGfYDPCbVsmTYRhFL">
             § 6 Svar på interpellation 2017/18:388 om satellituppskjutning
             och rymdstrategi

corpus/protocols/201718/prot-201718--120.xml

Diff starting from line 4428

@@ -4444,8 +4428,6 @@
           <note xml:id="i-CFeebGwoqn5hiKPDsZ3BVu" type="speaker">
             Anf. 38 Kultur- och demokratiminister ALICE BAH KUHNKE (MP)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-C7RLmKphvgRgAXQS6vcfbS">
           <note xml:id="i-4pMW7myeaQyM7bfMnWNP9v">
             § 10 Svar på interpellation 2017/18:538 om amorteringskrav och
             fallande nyproduktion på bostadsmarknaden

corpus/protocols/201819/prot-201819--091.xml

Diff starting from line 4575

@@ -4589,8 +4575,6 @@
           <note xml:id="i-NFdKLuoPwmH76yWegNqVNS" type="speaker">
             Anf. 64 Infrastrukturminister TOMAS ENEROTH (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-P3Bih1hYgqD7fMBQytgR1X">
           <note xml:id="i-UdvBXcKhhA4pkn9iWUXPJo">
             § 9 Svar på interpellation 2018/19:222 om dubbelspårig järnväg
             mellan Göteborg och Oslo

corpus/protocols/201920/prot-201920--017.xml

Diff starting from line 4782

@@ -4798,28 +4782,18 @@
           <note xml:id="i-8orU4YtoLMf6e5oZBz16oM" type="speaker">
             Anf. 102 Statsrådet MIKAEL DAMBERG (S)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-N8m5tYLyUX4euwSAzXRBjE">
           <note xml:id="i-FSTryE4vGTSwq9KYYL46ox">
             § 10 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-PZnUrBTJYwXDLFkNFaHZ13">
           <note xml:id="i-S9UJ5GhctjE8A3NBof78M7">
             § 11 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-JvwSwrrjZcaQdU33knHhCz">
           <note xml:id="i-NLvbT5LKd2FQ4QcH4cphi8">
             § 12 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-66WVxKkSH1dYxBwmib4KgB">
           <note xml:id="i-XbPTMNmoum5teh9VR6d1E">
             § 13 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-BYBxWuA82HARMmngtH4iCH">
           <note xml:id="i-LsyCvAeyWpFDfp2B91h5Kj">
             § 14 Kammaren åtskildes kl. 15.12.
           </note>

corpus/protocols/201920/prot-201920--022.xml

Diff starting from line 897

@@ -897,37 +897,27 @@
           <note xml:id="i-36PEMWm6ZAhMGo6PQNuGSP">
             /Olof Pilo
           </note>
+        </div>
+        <div xml:id="i-5pU78omXi8LVczWBNTDgsY" type="commentSection" subtype="tableOfContents">
           <pb facs="http://data.riksdagen.se/fil/F6CBD89F-BBF6-452B-9BD3-B526D13677A6#page=10"/>
           <note xml:id="i-VyopnqFuUq29pP3BhHZSDS">
             Innehållsförteckning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-BY4QVoHttcbnZhxEBsPEMj">
           <note xml:id="i-DzMdNbdXMcfqz9MhpkCNDb">
             § 1 Anmälan om ny riksdagsledamot
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Dn6gVs6cJi7DCJSdxa2CDD">
           <note xml:id="i-5HWBoVZFrZ7KctESq4ZJm8">
             § 2 Anmälan om ersättare
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-C2XH9sgEdQUWc5B5Jo2yNT">
           <note xml:id="i-Fg3GotmPkmfJbcWKje4Zxc">
             § 3 Anmälan om kompletteringsval
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-X3FMy5Gfbsesje1TPTKj1J">
           <note xml:id="i-Qk6nXm7c31NTqwyd7WWyvt">
             § 4 Meddelande om EU-politisk partiledardebatt
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-PTjRoEHBq92bwHALVWXNoH">
           <note xml:id="i-KLrzReBwwrirrVqHDVgqWV">
             § 5 Ärenden för hänvisning till utskott
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-QHhvry8ur67LeQjj2NuAJb">
           <note xml:id="i-VBt82vkSpvSXKUWYascKRh">
             § 6 Svar på interpellation 2019/20:28 om Exportkreditnämndens
             regelverk

corpus/protocols/201920/prot-201920--028.xml

Diff starting from line 8239

@@ -8271,28 +8239,18 @@
           <note xml:id="i-7bj34VBsKfqg83x7JjMArz" type="speaker">
             Anf. 150 Statsrådet ANDERS YGEMAN (S)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-WTPvWFraN76Tnj75UrtkLk">
           <note xml:id="i-Rtz8rqnLSBXnyCmPfkn9W4">
             § 18 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-CjGFZLNMm6PTtM4mUHBzFf">
           <note xml:id="i-6p97NbLDaUxBF4fsCNdRAo">
             § 19 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-GhBhsLZoT1gkX3pJbVim3a">
           <note xml:id="i-PEbSiSAu8pF24nd2f9V6Hz">
             § 20 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-YRZE8aYUCGBMCi71TZa9nd">
           <note xml:id="i-MjnkY9qnR7ZtsgaJfQcPSg">
             § 21 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-F7EScQcNVvF51TU9oSnPRP">
           <note xml:id="i-KT8dDA9TTtaQYRAXU89wU8">
             § 22 Kammaren åtskildes kl. 16.25.
           </note>

corpus/protocols/201920/prot-201920--069.xml

Diff starting from line 6939

@@ -6963,23 +6939,15 @@
           <note xml:id="i-5vo2X1QZ2enRkDHmVNbQby">
             UbU7 Grundsärskolans kunskapsuppdrag
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-CTUWcu3tWpzFVpM4rkGuzm">
           <note xml:id="i-4ZYrHJhyURNnghW9Nox1t5">
             § 14 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-HJhKP3T5NzuwKKkTKsWEx4">
           <note xml:id="i-2xznmzWRYXaXi3XjaDiQY5">
             § 15 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-ATsuPQirrSRDcaqMjs3og8">
           <note xml:id="i-8h47nB7WZ11g21oaXeVUf7">
             § 16 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-NfoC1Cgd3Su4bQMNkMbEQQ">
           <note xml:id="i-UNyMSBdyX8pEPApKkkfCBy">
             § 17 Kammaren åtskildes kl. 16.08.
           </note>

corpus/protocols/201920/prot-201920--087.xml

Diff starting from line 5160

@@ -5182,8 +5160,6 @@
           <note xml:id="i-C1tE4uGkKVFtUobk3GZ5af" type="speaker">
             Anf. 42 Infrastrukturminister TOMAS ENEROTH (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-8a7bDKsE9XQ6nvuR7wVeUS">
           <note xml:id="i-MeGUvpxsEtP2ACS7Cqr6sF">
             § 13 Svar på interpellation 2019/20:369 om kameraövervakning
             av svenska fiskefartyg

corpus/protocols/202021/prot-202021--084.xml

Diff starting from line 16563

@@ -16573,8 +16563,6 @@
             (Beslut fattades under § 11.)
           </note>
           <pb facs="http://data.riksdagen.se/fil/558D1404-94D2-4B4F-A69B-D40119A340A5#page=21"/>
-        </div>
-        <div type="debateSection" xml:id="i-Tq9Ay8dfvgnrBbcU9v67L9">
           <note xml:id="i-P6oSEAdXbsUcuGAg2MLVs1">
             § 7 Förstärkt och förenklad miljöstyrning i bonus–malus-systemet
           </note>

corpus/protocols/202021/prot-202021--087.xml

Diff starting from line 18337

@@ -18367,8 +18337,6 @@
           <note xml:id="i-LCNRbTMxvnk16vfuys6n8m">
             Återupptaget sammanträde
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-LXToYWctX6HcRkeuEJbG1B">
           <note xml:id="i-GhD9ZQFxF1vnUg9u7SFNrA">
             § 17 Beslut om ärenden som slutdebatterats den 25 februari
           </note>

corpus/protocols/202021/prot-202021--097.xml

Diff starting from line 8837

@@ -8873,8 +8837,6 @@
           <note xml:id="i-GLwY5envkRtNWrFopZM2ZS" type="speaker">
             Anf. 95 Arbetsmarknadsminister EVA NORDMARK (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-Jd4jzTKgbYT7nLdzoMkbBH">
           <note xml:id="i-YN5xSyz52N5EeBWm51hXwG">
             § 20 Svar på interpellation 2020/21:456 om EU-direktiv om minimilöner
           </note>

corpus/protocols/202021/prot-202021--123.xml

Diff starting from line 12547

@@ -12585,8 +12547,6 @@
             SfU19 Ytterligare förstärkt nedsättning av arbetsgivaravgifter
             för personer som arbetar med forskning eller utveckling
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-Peiu3wMsR2RLxYraVTx8ud">
           <note xml:id="i-JbyyL5H8TkFo41VskspvqK">
             § 21 (forts. från § 18) Tillfällig nedsättning av arbetsgivaravgifter
             för upp till två anställda (forts. SfU22)

corpus/protocols/202021/prot-202021--129.xml

Diff starting from line 10062

@@ -10094,8 +10062,6 @@
           <note xml:id="i-5GqL26wMTphhxkhxqsfqP2" type="speaker">
             Anf. 146 Näringsminister IBRAHIM BAYLAN (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-MPG75LP3zLxaLBfSy2oEB6">
           <note xml:id="i-MGvvXwvwbMoPdUCZBLmY2S">
             § 18 Svar på interpellation 2020/21:690 om Raoul Wallenbergs
             öde och Sveriges behov av exportkrediter

corpus/protocols/202021/prot-202021--153.xml

Diff starting from line 303

@@ -313,8 +303,6 @@
           <note xml:id="i-VLWKw5cfPGAJNvwZecD8wn" type="speaker">
             Anf. 2 TALMANNEN
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-6i1FWTbaCcs2qnKUDFgv9L">
           <note xml:id="i-EnLpgPtXC6xAddUwKuqkwp">
             § 7 Kammaren åtskildes kl. 11.03.
           </note>

corpus/protocols/202021/prot-202021--157.xml

Diff starting from line 11840

@@ -11854,8 +11840,6 @@
           <note xml:id="i-KBHdfMtKkprPd4LCxfTpqa" type="speaker">
             Anf. 21 Näringsminister IBRAHIM BAYLAN (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-E7zm7AvsD6Yiy8Mdu4kEPe">
           <note xml:id="i-6athuTDgicBcbGU2q12Yny">
             § 9 Svar på interpellation 2020/21:877 om regeringens klimatkrav
             vid coronastöd till flyget

corpus/protocols/202122/prot-202122--032.xml

Diff starting from line 1914

@@ -1922,18 +1914,12 @@
           <note xml:id="i-2U6oAjMDMx1x1ZM6gWafQv">
             (Beslut skulle fattas den 24 november.)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-DTdnKwWtrBt4foby5KKLrM">
           <note xml:id="i-8MaqguEEM8DVAPu9LbkL9n">
             § 6 Bordläggning
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-NzahMbxkNbFCcsb78EXder">
           <note xml:id="i-3sB2h5xJ2iv6aFSGf8reNH">
             § 7 Anmälan om uteblivet svar på skriftlig fråga
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-P5rqufKoKg6X3nLqa6kh93">
           <note xml:id="i-BWJwMkGetubKy8ef7rcJqK">
             § 8 Kammaren åtskildes kl. 14.10.
           </note>

corpus/protocols/202122/prot-202122--034.xml

Diff starting from line 5673

@@ -5695,16 +5673,12 @@
             SoU4 Redovisning av fördelning av medel från Allmänna arvsfonden
             under budgetåret 2020
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-RP5qhct1Cw9s4kPAzSPZBv">
           <note xml:id="i-PamgGS8huY3i79kiH5A9S5">
             § 13 Bordläggning av förslag till statsminister
           </note>
           <note xml:id="i-BN74xEx6ULHSuqdRZMeZx1" type="speaker">
             Anf. 41 TALMANNEN
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-9BwgFurjNBy58dNLhQjjmS">
           <note xml:id="i-YHEmcQToV1XYNjsPh6SViJ">
             § 14 (forts. från § 11) Vård av unga vid Statens institutionsstyrelses
             särskilda ungdomshem (forts. SoU6)

corpus/protocols/202122/prot-202122--046.xml

Diff starting from line 13461

@@ -13489,23 +13461,15 @@
           <note xml:id="i-VQ5tYLWdfMk8N7jqLaxax6">
             (Beslut skulle fattas den 16 december.)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-XHXwjMcBWBGHMoU3UbNGvT">
           <note xml:id="i-4aTmDHEV8ZF7KeYzKPMvjM">
             § 16 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-W6MKnL9gtC7Gz7PADWDv3h">
           <note xml:id="i-ATbWxom8QMaoEpT152Xrvp">
             § 17 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-QeFUP94FnHJA5EJa1hUBD7">
           <note xml:id="i-PAXTmDuM56dSxwGtUdqpf">
             § 18 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-Fz1UcS1RBT49QTGDXAYyHV">
           <note xml:id="i-LZQEWqYB3V1gbPXVNMwLLt">
             § 19 Kammaren åtskildes kl. 17.41.
           </note>

corpus/protocols/202122/prot-202122--098.xml

Diff starting from line 11579

@@ -11603,8 +11579,6 @@
           <note xml:id="i-3vos6q18DJyzkj4KbmdmZD" type="speaker">
             Anf. 142 Klimat- och miljöminister ANNIKA STRANDHÄLL (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-RWVFEJhneXxaLA2KqGsYJS">
           <note xml:id="i-LdxxSMWsutzRxkn84D6Xd3">
             § 14 Svar på interpellation 2021/22:413 om risken för brist på
             Adblue

corpus/protocols/202122/prot-202122--116.xml

Diff starting from line 18094

@@ -18142,8 +18094,6 @@
           <note xml:id="i-TAEWYo4u371aQyMbv3xcij">
             (Beslut skulle fattas den 19 maj.)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-JERJgra91iaH5PhPxR4U7M">
           <pb facs="http://data.riksdagen.se/fil/AA9ACBEF-60C3-48AF-8BDF-F26DC0F0A22B#page=1"/>
           <note xml:id="i-JpU7anJHY6HPtFGszzN4kx">
             § 26 E-hälsa m.m.

corpus/protocols/202122/prot-202122--117.xml

Diff starting from line 7723

@@ -7755,26 +7723,18 @@
           <note xml:id="i-HPy4ZbFzij2ruG4HtziMWF">
             (Beslut skulle fattas den 31 maj.)
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-56xYLUmW3W6rU5Yz4GD8Z6">
           <pb facs="http://data.riksdagen.se/fil/8B420D59-175B-47E3-B5A9-72A8390DB0F3#page=1"/>
           <note xml:id="i-Q1b3oYoypYBB1gSXgdgVYZ">
             § 18 Anmälan om interpellationer
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-L8wSHQMbdGSwv9yfGPRuah">
           <pb facs="http://data.riksdagen.se/fil/8B420D59-175B-47E3-B5A9-72A8390DB0F3#page=1"/>
           <note xml:id="i-DtthjRVDi2F3TpDy5ibW8V">
             § 19 Anmälan om frågor för skriftliga svar
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-7kGzPBHqM2B97RAPNqVo1q">
           <pb facs="http://data.riksdagen.se/fil/8B420D59-175B-47E3-B5A9-72A8390DB0F3#page=1"/>
           <note xml:id="i-Hk6W48pKwAxkQ6B4SWeBDG">
             § 20 Anmälan om skriftliga svar på frågor
           </note>
-        </div>
-        <div type="commentSection" xml:id="i-5PAzqki6S1bnqR1g741QfB">
           <pb facs="http://data.riksdagen.se/fil/8B420D59-175B-47E3-B5A9-72A8390DB0F3#page=1"/>
           <note xml:id="i-QFjXqLQLyS6juS5Jka3BWK">
             § 21 Kammaren åtskildes kl. 16.12.

corpus/protocols/202122/prot-202122--136.xml

Diff starting from line 16987

@@ -17005,8 +16987,6 @@
           <note xml:id="i-Js6UHLfeEMY38kHQVphcpH">
             (Beslut fattades under § 16.)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-AvADQY9CoyaR24LjRkdc5h">
           <pb facs="http://data.riksdagen.se/fil/8E9D89FD-1D9C-40CA-AE39-5687C4A9F56B#page=1"/>
           <note xml:id="i-BZ7fyQxZS4vAzvVk2fppWS">
             § 11 Subsidiaritetsprövning av Europaparlamentets förslag till

Diff starting from line 17375

@@ -17425,8 +17375,6 @@
           <note xml:id="i-BoiFGRtfZz2Yqo1TrrUu4U" type="speaker">
             Anf. 115 Statsrådet MATILDA ERNKRANS (S)
           </note>
-        </div>
-        <div type="debateSection" xml:id="i-QjXptUrCaVZc1gru85XMcT">
           <pb facs="http://data.riksdagen.se/fil/8E9D89FD-1D9C-40CA-AE39-5687C4A9F56B#page=1"/>
           <note xml:id="i-Vn112ZLrP4Yzy4GJg2FAtG">
             § 27 Svar på interpellation 2021/22:490 om initiativ för att
MansMeg commented 9 months ago

Is it possible to add the page for each diff, since that what I will compare against. Now I put a lot of effort just trying to find the right page.

BobBorges commented 9 months ago

It's not something I can do quickly (this is generated with V's sample-git-diffs module), but if you click the diff starting from LINE link, you open the diff at the line where it starts and can then scroll up to the first \ elem. E.g., below diff starting at the highlighted line: image

BobBorges commented 9 months ago

@MansMeg n.b. -- the page numbers in the facs attrib are not always correct, as in the above example.

MansMeg commented 9 months ago

No, I saw that there are missing ones. I will file that as an issue. Ok, I will also file an issue that we should automatically give the page in the diffs for quality control since we should be able to check against the original source easily.

MansMeg commented 9 months ago

Alright, all random diffs were correct and all tests pass. I just merge this. Great work @BobBorges

MansMeg commented 9 months ago

Oh. I think you need to add all others as well..