Extsumm_local_global_context
Extsumm_local_global_context copied to clipboard
About ‘text.py’
Hello, thanks for your help. Does running text.py require a java environment? I get the following error while running text.py, how can I solve it?
Load vocabulary from vocabulary_Pubmed-full.json
Compute pos weight done! There are 4474321 sentences in total, with 203653 sentences as positive
Start loading model.
Start evaluating.
Batch 1, Loss: 1.043701
Rouge-1 recall score: 0.503920, Rouge-1 f-score: 0.446150, Rouge-2 recall score:0.219530, Rouge-2 f-score:0.195170, Rouge-L recall score:0.356910, Rouge-L f-score:0.311760
Traceback (most recent call last):
File "/home/dl/code/cyc/Extsumm_local_global_context-master/test.py", line 147, in
Hi there,
Running the training/testing process does not require java, it is only needed in one evaluation metric, 'METEOR', if you don't want to set up the environments for java, simply comment out all the code related to 'get_meteor' function. Then java is not needed anymore.