chiayewken / Span-ASTE

Code Implementation of "Learning Span-Level Interactions for Aspect Sentiment Triplet Extraction".
MIT License
167 stars 43 forks source link

python wrapper.py #40

Open motuomumu opened 1 year ago

motuomumu commented 1 year ago

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`
chiayewken commented 1 year ago

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
motuomumu commented 1 year ago

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

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.