Giter Site home page Giter Site logo

Comments (6)

astariul avatar astariul commented on August 22, 2024 1

If document is :

Sentence1. Sentence2. Sentence3.

Then it will be separated with [CLS] token and [SEP] token, like this :

[CLS] Sentence1. [SEP] [CLS] Sentence2. [SEP] [CLS] Sentence3. [SEP]

from presumm.

astariul avatar astariul commented on August 22, 2024 1

No. Sorry my answer was not clear.

In the dataset, there is a sentence every line. So the StanFord tokenizer use the newline as a sentence separator :

command = ['java', 'edu.stanford.nlp.pipeline.StanfordCoreNLP', '-annotators', 'tokenize,ssplit',
'-ssplit.newlineIsSentenceBreak', 'always', '-filelist', 'mapping_for_corenlp.txt', '-outputFormat',
'json', '-outputDirectory', tokenized_stories_dir]

And then, when the dataset is processed, the author put [CLS] token and [SEP] token as separator between sentences.

from presumm.

tahmedge avatar tahmedge commented on August 22, 2024

Thanks for your reply. So it means it is separated by ' . ' token?

from presumm.

tahmedge avatar tahmedge commented on August 22, 2024

Thanks.
Btw, I am also confused regarding the decoding phase. What I understand is that at the end of the encoding phase, we will have [CLS] [S1, T1][S1 T,2].... [SEP] [CLS] [S2 ,T1] [S2 T,2].... [SEP] [CLS] [S3 ,T1] [S3 .T2].... [SEP] .....
Here, S1, S2, S3 are the sentences whereas T1 , T2 .... are the tokens of the sentences.
So during decoding phase, is not the decoder focusing on all the tokens including [CLS] [Si, Tj] [SEP] etc. ? Or is it just focusing on [CLS] token of each sentence? I did not find detailed explanation regarding decoding phase in the paper.

from presumm.

astariul avatar astariul commented on August 22, 2024

I'm not sure what you mean by encoding and decoding phase...

But anyway only tokens of the sentences are kept for the model.
For Extractive summarization, only [CLS] tokens are used, while for Abstractive summarization, all tokens representations are used.

from presumm.

tahmedge avatar tahmedge commented on August 22, 2024

Does the newline in the summary separated by token?

from presumm.

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.