Bert-as-service: May I need to add <CLS> and <SEP> to my input?

Created on 20 Dec 2018  路  2Comments  路  Source: hanxiao/bert-as-service

hi,
When I input data to model, may I need to add and to text line? Or your code had already done so?
thx

All 2 comments

absolute no need.

in fact, you can get embedding on the [CLS] [SEP] token if you like, see: https://github.com/hanxiao/bert-as-service#q-what-are-the-available-pooling-strategies

what if I want to specific [sep] by myself for special tasks.

For example, I would like to make a QA pair become a sentence like [CLS] question [sep] answer [sep]. Is this possible?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

applenob picture applenob  路  7Comments

shashi-netra picture shashi-netra  路  3Comments

k-oul picture k-oul  路  7Comments

KODGV picture KODGV  路  6Comments

babai3693 picture babai3693  路  3Comments