Commit b0b59fc4 authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

fixed bug, changed sample rules.txt

parent 55fbdf08
5 10 16
5 0.6 0.2 0.2
10 0.6 0.2 0.2
16 0.2 0.2 0.6
5 10 16
5 1 0 0
10 0 1 0
16 0 0 1
15 21 26
15 1 0 0
21 0 1 0
26 0 0 1
7 18
7 0 1
18 1 0
11 17
11 0 1
17 1 0
13 24
13 0 1
24 1 0
14 20
14 0 1
20 1 0
......@@ -34,7 +34,7 @@ def extract_words(line):
def validate_prob(word, line):
try:
num=float(word)
if num>=0 and num<1:
if num>=0 and num<=1:
return
except ValueError:
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment