Span-ASTE icon indicating copy to clipboard operation
Span-ASTE copied to clipboard

python wrapper.py

Open motuomumu opened this issue 2 years ago • 2 comments

hi ,I'm puzzled when running wrapper.py, the following appears which I can't understand NAME wrapper.py

SYNOPSIS wrapper.py GROUP | COMMAND

GROUPS GROUP is one of the following:

 json
   JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format.

 os
   OS routines for NT or Posix depending on what system we're on.

 shutil
   Utility functions for copying and archiving files and directory trees.

 sys
   This module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter.

 List
   The central part of internal API.

 Tuple
   Tuple type; Tuple[X, Y] is the cross-product type of X and Y.

 Optional
   Internal indicator of special typing constructs. See _doc instance attribute for specific docs.

COMMANDS COMMAND is one of the following:

 Namespace
   Simple object for storing attributes.

 Path
   PurePath subclass that can make system calls.

 train_model
   Trains the model specified in the given [`Params`](../common/params.md#params) object, using the data and training parameters also specified in that object, and saves the results in `serialization_dir`

motuomumu avatar Dec 07 '22 06:12 motuomumu

Hi, can you try the training command here?

python aste/wrapper.py run_train_many \
--save_dir_template "outputs/14lap/seed_{}" \
--random_seeds [0,1,2,3,4] \
--path_train data/triplet_data/14lap/train.txt \
--path_dev data/triplet_data/14lap/dev.txt

chiayewken avatar Dec 07 '22 06:12 chiayewken

嗨,你能在这里试试训练命令吗?

python aste/wrapper.py run_train_many \
--save_dir_template "outputs/14lap/seed_{}" \
--random_seeds [0,1,2,3,4] \
--path_train data/triplet_data/14lap/train.txt \
--path_dev data/triplet_data/14lap/dev.txt

hi,I have executed these training commands and output the results without errors,but,there is a problem when executing the wrapper.py ,I just don't get it.

motuomumu avatar Dec 07 '22 07:12 motuomumu