lixin4ever/BERT-E2E-ABSA

How to prepare the dataset?

savvyyy opened this issue · 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 ?

Please refer to Quick Start section in README.

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

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.

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.

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

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

the same question plz

tahnk u