Skip to content

Commit

Permalink
Merge pull request #45 from jvfe/refact/change-sep-probs
Browse files Browse the repository at this point in the history
refact: Add different probabilities for seps
  • Loading branch information
lubianat authored Jul 24, 2024
2 parents 607a6dd + 777e95b commit c94321b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/python/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def select_random_process(processes):
return genes

def select_random_separator():
separators = [',', '\t', '\n', ';']
separator = random.choice(separators)
separators = [', ', '\t', '\n', '; ']
probs = [0.8, 0.1, 0.3, 0.1]
separator = random.choices(separators, probs)[0]
return separator


Expand Down

0 comments on commit c94321b

Please sign in to comment.