<s> from argparse import ArgumentParser <EOL> import numpy as np <EOL> from vsm . corpus import * <EOL> parser = ArgumentParser ( ) <EOL> parser . add_argument ( "<STR_LIT>" , help = "<STR_LIT>" ) <EOL> args = parser . parse_args ( ) <EOL> c = Corpus . load ( args . corpus_path ) <EOL> pagenos = [ int ( md [ '<STR_LIT:file>' ] . split ( '<STR_LIT:/>' ) [ - <NUM_LIT:1> ] . split ( '<STR_LIT:_>' ) [ <NUM_LIT:0> ] ) <EOL> for md in c . view_metadata ( '<STR_LIT>' ) ] <EOL> pagenos = np . array ( pagenos ) <EOL> c = add_metadata ( c , '<STR_LIT>' , '<STR_LIT>' , pagenos ) <EOL> c . save ( args . corpus_path ) </s>
