mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 18:43:07 +02:00
5 lines
24 KiB
Python
5 lines
24 KiB
Python
|
|
sentences = ['[both bulbs] [a and c] [still have] [a closed path]', '[terminal 1] and [the positive terminal] are connected.', '[positive battery] is separated by a gap from [terminal 2]', '[There] [is no difference] [between] [the two terminals].', '[the switch] [has to be contained] [in the same path as] [the bulb] [and] [the battery]', '[For every sentence] [there is a gap] [in terminal 1]', '[The battery] [uses] [the chemical reaction] [to create] [voltage]', '[a batter] [uses] [a chemical reaction] [to create] [voltage]', '[The battery] [alone] [is] [in] [a closed path]', '[Because] [there is] [a gap] [in the circuit].', '[Bulbs A] [and B] [are not within] [the same path] [as bulb C].', '[Because] [there was] [two negative connections]', '[bulb a] [is on] [a closed path] [with] [the battery]', '[The other terminals] [are connected] [to the positive terminal].', '[The bulb] [takes away] [the path].', '[There is no gap] [between the positive terminal] [and] [terminal 4]', '[Bulb a] [created] [a gap]', '[terminal 6] [is connected to] [the positive terminal] [of the battery]', '[the bulb] [is] [in] [a closed circuit]', '[The circuit] [is not closed] [around the battery]', '[the bulb] [is not contained] [in a closed path]', '[There is] [a gap] [in the circuit].', '[Bulb B] [and bulb C] [are] [still on closed paths] [with the battery].', '[Bulb A] [has] [a closed pathway]', '[bulbs a and c] [are not] [in the same closed path as] [bulb b]', '[Only one] [terminal] [is involved] [in the] [circuit].', '[there was] [closed paths] [between] [the battery]', '[chunk 1] the gap separates\n[chunk 2] the positive battery terminal\n[chunk 3] from terminal 2', '[bulb a], [bulb b], and [bulb c] are contained in [different closed paths].', '[If any bulb is out], [it affects the whole system], and [everything is blocked from the battery].', '[It] [is] [not] [in] [the] [same] [path].', '[There will be] [a gap] [in the path]', '[Bulb B] [and C] [are still contained] [in a path] [with the battery]', 'bulbs a and c / are still contained / in a closed path / with the battery.', '[Terminal one] [is not connected to] [the positive battery terminal]', '[bulb A] and [switch Z] are in a [closed path]', '[Terminal 5] [is connected to] [the postitive battery terminal]', '[Terminal 6] [is connected to] [the positive battery terminal]', '[The red x] [means] [that the circuit is not safe.]', '[both bulbs B] [and C] [are in the] [same path] [as bulb A]', '[if the electrical state is non-zero] [you can find] [the gap in the circuit]', '[The battery] [is contained] [in a closed circuit]\n[and] [there is] [nothing] [in its pathway]', '[A terminal] [is not connected] [to the positive battery terminal].', '[There is] [a gap] [in the circuit]', '[Chunk 1] the positive terminal\n[Chunk 2] is not separated\n[Chunk 3] by a gap\n[Chunk 4] from terminal 5', 'You can find [where] [there is] [a gap].', '[Divide] [this sentence] [into chunks] [as in iSTS], [Render] [those chunks] [in a form] [ [chunk 1] [chunk 2] ... ] [for every sentence]: [has to do something] [with a gap]', '[Because] [the positive circuit has] [a voltage of 1.5 volts].', '[There is] [a chemical reaction].', '[When the switch][is][the][in a closed path][with the bulb]', '[bulb b] [and] [c] [are] [in] [a closed path]', '[There] [is] [a difference] [in electrical states].', '[the bulb] [will not light]', '[bulb] [a] [and] [c] [are] [contained] [on] [the] [same] [path] [with] [the] [battery]', '[The path] [does not] [close]', '[The difference between] [the electrical states] [is] [1.5 volts]', '[There is] [still a] [closed path]', '[a gap] [causes] [a lost connection]', '[The positive terminal] [and terminal 6] [are connected]', '[The positive terminal] [is connected] [to terminal 6]', '[Because] [there] [is] [no] [gap] [at] [terminal] [1]', '[terminal 6] [is connected to] [the positive terminal]', '[When] [the switch] [is] [in] [the same path] [as] [the bulb].', '[Bulbs A] [and C] [are] [in separate paths].', '[bulb a] [and bulb b] [are still] [in a closed path] [with the battery].', '[The positive
|
||
|
|
output_path = 'chunks_one.txt'
|
||
|
|
with open(output_path, 'w') as output_file:
|
||
|
|
for sentence in sentences:
|
||
|
|
output_file.write(sentence + '\n')
|