riyadhrazzaq's picture
added inference scripts, model and vocab
d541e5a
raw
history blame contribute delete
601 Bytes
import argparse
from src.evaluator import evaluate
def main():
# parser
parser = argparse.ArgumentParser(description='inference with model.')
parser.add_argument('--checkpoint', type=str, help='Path to the checkpoint file')
parser.add_argument("--decompress", action="store_true", help="decompress the input text")
parser.add_argument('--vocab', type=str, help='Path to the vocab file')
parser.add_argument('--text', type=str, help='Text to be tokenized')
args = parser.parse_args()
# load model and vocab
evaluate(args)
if __name__ == "__main__":
main()