forked from Ch4osMy7h/FramenetParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.py
More file actions
31 lines (23 loc) · 662 Bytes
/
Copy pathdebug.py
File metadata and controls
31 lines (23 loc) · 662 Bytes
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
30
import logging
import os
import sys
if os.environ.get("ALLENNLP_DEBUG"):
LEVEL = logging.DEBUG
else:
LEVEL = logging.INFO
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir))))
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
level=LEVEL)
from allennlp.commands import main
experiment_name="debug"
config_file="./training_config/debug.jsonnet"
cuda_device=5
sys.argv = [
"allennlp",
"train",
config_file,
"--serialization-dir", "./experiments/training/{}".format(experiment_name),
"--include-package", 'framenet_parser',
"-f"
]
main()