Code Monkey home page Code Monkey logo

Comments (14)

nlpyang avatar nlpyang commented on June 27, 2024

I cannot help you with the information you provided. please always patse your commsnds.

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

problem1:
the commend for train classifier is:
python train.py -mode train -encoder classifier -dropout 0.1 -bert_data_path /home/test/WangHN/BertSum-master/bert_data/cnndm -model_path /home/test/WangHN/BertSum-master/models/bert_classifier -lr 2e-3 -visible_gpus 0,1,2 -gpu_ranks 0,1,2 -world_size 3 -report_every 50 -save_checkpoint_steps 1000 -batch_size 3000 -decay_method noam -train_steps 50000 -accum_count 2 -log_file /home/test/WangHN/BertSum-master/logs/bert_classifier -use_interval true -warmup_steps 10000
for test classifier is:
python train.py -mode validate -bert_data_path /home/test/WangHN/BertSum-master/bert_data/cnndm -model_path /home/test/WangHN/BertSum-master/models/bert_classifier -visible_gpus 1 -gpu_ranks 0 -batch_size 30000 -log_file /home/test/WangHN/BertSum-master/logs/Evaluation/bert_classifier -result_path /home/test/WangHN/BertSum-master/results/classifier/cnndm -test_all -block_trigram true

the log file's results are what I provide above , the rouge score is low, this is also true in another (rnn and transformer)

problem2:
for the summary results, how can I find the original article ,for example ref.83.txt and can.83.txt's original article?

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

could you run -mode lead to see if the data is correct

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

how to do this

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

python train.py -mode lead -bert_data_path ../../../bertabs/bert_data/cnndm -visible_gpus -1 -batch_size 30000 -log_file cnndm_lead -result_path ../results/cnndm_lead -block_trigram false

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

`(LX8}JT~U X8NY)Z7(S7$8
dont have the mode lead.
I also think the problem may be model training, need I retraining the model?

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

please checkout to dev branch and run lead

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

sorry,where is dev branch

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

please google for "check out branches on github"

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

L`HVM$D0_(NN$7}V)H$}D2L
I run mode -lead ,got this results, .

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

apparently the data is wrong. how do you process the data?

from bertsum.

Wanghn95 avatar Wanghn95 commented on June 27, 2024

I process the data by the commend you provide,
Put the CNN story file and the daily mail story file under one file,using the Stanford CoreNLP version:3.7.0
then got the sentence splitting and token, just follow the step 3,4,5 , then got the bert_data file.

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

please past some parts of the json file in got from format_to_lines

from bertsum.

nlpyang avatar nlpyang commented on June 27, 2024

or could you rerun the preprocessing process and calculate lead

from bertsum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.