We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839b3ef commit ccb163bCopy full SHA for ccb163b
1 file changed
experiments/text-fix.py
@@ -0,0 +1,24 @@
1
+import ftfy
2
+
3
4
+def main():
5
+ print(ftfy.fix_encoding('주문하다 - to intent for?'))
6
7
+ runs = 0
8
9
+ start = 1
10
+ stop = 6
11
+ step = 1
12
13
+ # not totally accurate - at least one iteration when stop > start
14
+ iterations = (stop - start) // step
15
16
+ for i in range(start, stop, step):
17
+ runs += 1
18
19
+ print(runs)
20
+ print(iterations)
21
22
23
+if __name__ == '__main__':
24
+ main()
0 commit comments