Skip to content

Commit

Permalink
fix seq labeling test
Browse files Browse the repository at this point in the history
  • Loading branch information
undertherain committed Jan 16, 2019
1 parent 9d840c5 commit 6ef67a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/benchmarks/test_analogy.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ def test_cli(self):

# TODO: suppress concatenating timestamp or aggregate multiple runs
from matplotlib import pyplot as plt
visualize.plot_accuracy("/tmp/vecto/benchmarks/analogical_reasoning")
visualize.plot_accuracy("/tmp/vecto/benchmarks/word_analogy")
plt.savefig("/tmp/vecto/benchmarks/analogy.pdf", bbox_inches="tight")
2 changes: 1 addition & 1 deletion tests/benchmarks/test_sequence_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ def test_cli(self):

from matplotlib import pyplot as plt
# here the visualization only for the ner sub task.
visualize.plot_accuracy("/tmp/vecto/benchmarks/ner", key_secondary="experiment_setup.dataset")
visualize.plot_accuracy("/tmp/vecto/benchmarks/sequence_labeling/ner", key_secondary="experiment_setup.dataset")
plt.savefig("/tmp/vecto/benchmarks/sequence_labeling.pdf", bbox_inches="tight")
2 changes: 2 additions & 0 deletions vecto/benchmarks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def run_with_args(self, args):
if os.path.isdir(args.path_out) or args.path_out.endswith("/"):
dataset = os.path.basename(os.path.normpath(args.dataset))
timestamp = get_time_str()
task = results[0]["experiment_setup"]["task"]
name_file_out = os.path.join(args.path_out,
task,
dataset,
timestamp,
"results.json")
Expand Down

0 comments on commit 6ef67a7

Please sign in to comment.