-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathargs.py
29 lines (26 loc) · 934 Bytes
/
args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Author: [email protected]
# Version: 1.0 - 2017/12/24
# About: perceptron algorithm applied on sentiment analysis
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-t',
'--text_file',
help='Labled text file, line example:"1 This is a positive sentence" ',
required=True
),
parser.add_argument('-i',
'--number_of_iterations',
help='Number of training iterations',
required=True
)
parser.add_argument('-r',
'--learning_rate',
help='Learning rate',
required=True
)
parser.add_argument('-s',
'--shuffle_factor',
help='Date shuffling factor',
required=True
)
args = parser.parse_args()