Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubts while implementing Extract aspect terms and classify sentiments #366

Open
nsvradhamadhavi opened this issue Nov 30, 2023 · 0 comments

Comments

@nsvradhamadhavi
Copy link

I followed the following Steps:

  1. Take a csv file with the reviews without header.
  2. Use make_ABSA_dataset() and Auto-annoate your datasets via PyABSA - IT is giving the outputs/resuts :
    The results of aspect term extraction have been saved in /home/radhamadhavi/Aspect Term Extraction and Polarity Classification.FAST_LCF_ATEPC.result.json
    and APC and ATEPC Datasets built for the csv file loaded in step 1
  3. and also asking for : need to add ID for your dataset,
    and move the generated datasets to integrated_dataset/apc_datasets and integrated_dataset/atepc_datasets, respectively
  4. I moved these two datasets to the folders apc_datasets and atepc_datasets in integrated_datasets folder,
    after creating a folder with some id number for example 3011.mydataset in each folder apc_datasets and atepc_datasets
    integrated_datasets--> apc_datasets-->3011.mydataset-->mydata.train.dat.apc &
    integrated_datasets--> atepc_datasets-->3011.mydataset-->mydata.train.dat.atepc
  5. Now my question is: how to get the .inference file for these apc/atepc datasets?
  6. How to predict aspect and sentiment for my data which is converted to apc/atepc format,
    using the pyabsa trained model. It is a bit confusing at the line before batch_predict:
    inference_source = ATEPC.ATEPCDatasetList.Restaurant16 . How to give my data here?

I would like to implement the following:

  1. Using pretrained models of pyabsa, I would like to predict the aspects and sentiments for my reviews;
  2. Using pyabsa package, I would like to train the model using my reviews and predict aspects and sentiments on the train and valid/test datasets.
    Please help in this implementation.
    Please guide me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant