BERT-E2E-ABSA icon indicating copy to clipboard operation
BERT-E2E-ABSA copied to clipboard

How to prepare the dataset?

Open savvyyy opened this issue 4 years ago • 5 comments

Hi @lixin4ever I appreciate your work. Thank you for that. I had a query, like you have provided dataset for laptop and rest_total. Similarly I want to prepare dataset for twitter. Can you help me how to proceed with preparing the dataset with appropriate label like defined in get_labels function in glue_utils.py. Means how can i label them? Do I need cached data also ? If yes, how I can Prepare that ?

savvyyy avatar Apr 16 '20 15:04 savvyyy

Please refer to Quick Start section in README.

NO NEED to change the functions in glue_utils.py. Cached data is not needed, either.

lixin4ever avatar Apr 16 '20 15:04 lixin4ever

Hi @lixin4ever But how do I tag my datasets as it is provided in laptop14 or rest_total ? which method you have used to tag your datasets ? How to perform BIEOS tagging scheme on my dataset ? What is the meaning of B in B-NEG, B-POS, T in T-NEG, T-POS, I in I-NEG, I-POS Please help.

savvyyy avatar Apr 17 '20 06:04 savvyyy

I suggest you to read the following materials:

  1. The definition of some commonly used tagging schema: Inside–outside–beginning (tagging) and Representing Text Chunks. Specifically, OT tagging schema is also called IO.
  2. The paper associated with this repo.

As with preparing your own dataset, you only need to organize the data files following the OT tagging schema.

If the code is useful for you project, hope you can star this repo.

lixin4ever avatar Apr 17 '20 07:04 lixin4ever

@savvyyy Hi, have you solved the problem of data labeling?

youyouyou404 avatar Nov 18 '20 02:11 youyouyou404

@savvyyy Hi, have you solved the problem of data labeling?

the same question plz

tahnk u

yassmine-lam avatar Aug 31 '21 17:08 yassmine-lam