Skip to main content

Span-Based Pair-Wise Aspect and Opinion Term Joint Extraction with Contrastive Learning

  • Conference paper
  • First Online:
Natural Language Processing and Chinese Computing (NLPCC 2023)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 14303))

  • 800 Accesses

Abstract

Pair-wise aspect and opinion term extraction (PAOTE) is a subtask of aspect-based sentiment analysis (ABSA), aiming at extracting aspect terms (AT) and corresponding opinion terms (OT) in the review sentences in the form of aspect-opinion pairs (AO), which provides global profiles about products and services for users. Existing methods cannot identify the boundary information of AT and OT precisely. In addition, pairing errors are easily caused if there are multiple AT and OT in a sentence. In our work, to address above limitations, we design a span-based joint extraction framework with contrastive learning (SJCL) to enhance both term extraction and pairing in PAOTE. For term extraction, we utilize span-based convolutional neural network (CNN) to merge contextual syntactic and semantic features to identify the boundaries of aspect and opinion terms precisely and combine contrastive learning (CL) to enhance the distinctiveness of different types of terms. For term pairing, we prune the original dependency trees according to part-of-speech (POS) information to remove insignificant noise information and leverage graph convolutional network (GCN) to learn pairing features, then negative sampling and contrastive learning are used to avoid mismatched aspect-opinion pairs. Experimental results on four public datasets certify the state-of-the-art performance of our model.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://stanfordnlp.github.io/CoreNLP/.

  2. 2.

    https://huggingface.co/bert-base-uncased.

References

  1. Chen, S., Liu, J., Wang, Y., Zhang, W., Chi, Z.: Synchronous double-channel recurrent network for aspect-opinion pair extraction. In: ACL, pp. 6515–6524 (2020)

    Google Scholar 

  2. Eberts, M., Ulges, A.: Span-based joint entity and relation extraction with transformer pre-training. In: European Conference on Artificial Intelligence (ECAI), pp. 2006–2013 (2020)

    Google Scholar 

  3. Fan, Z., Wu, Z., Dai, X., Huang, S., Chen, J.: Target-oriented opinion words extraction with target-fused neural sequence labeling. In: NAACL, pp. 2509–2518 (2019)

    Google Scholar 

  4. Li, X., Lam, W.: Deep multi-task learning for aspect term extraction with memory interaction. In: EMNLP, pp. 2886–2892 (2017)

    Google Scholar 

  5. Li, Z., Zou, Y., Zhang, C., Zhang, Q., Wei, Z.: Learning implicit sentiment in aspect-based sentiment analysis with supervised contrastive pre-training. In: EMNLP, pp. 246–256 (2021)

    Google Scholar 

  6. Liang, B., et al.: Enhancing aspect-based sentiment analysis with supervised contrastive learning. In: ACM, pp. 3242–3247 (2021)

    Google Scholar 

  7. Liu, Y., Li, F., Fei, H., Ji, D.: Pair-wise aspect and opinion terms extraction as graph parsing via a novel mutually-aware interaction mechanism. Neurocomputing 493, 268–280 (2022)

    Article  Google Scholar 

  8. Van der Maaten, L., Hinton, G.: Visualizing data using t-SNE. J. Mach. Learn. Res. 9(11), 2579–2605 (2008)

    MATH  Google Scholar 

  9. Manandhar, S.: SemEval-2014 Task 4: aspect based sentiment analysis. In: SemEval 2014, pp. 27–35 (2014)

    Google Scholar 

  10. Pereg, O., Korat, D., Wasserblat, M.: Syntactically aware cross-domain aspect and opinion terms extraction. In: COLING, pp. 1772–1777 (2020)

    Google Scholar 

  11. Pontiki, M., Galanis, D., Papageorgiou, H., Manandhar, S., Androutsopoulos, I.: SemEval-2015 Task 12: aspect based sentiment analysis. In: SemEval 2015, pp. 486–495 (2015)

    Google Scholar 

  12. Pontiki, M., et al.: SemEval-2016 Task 5: aspect based sentiment analysis. In: SemEval-2016, pp. 19–30. Association for Computational Linguistics (2016)

    Google Scholar 

  13. Wan, Q., Wei, L., Zhao, S., Liu, J.: A span-based multi-modal attention network for joint entity-relation extraction. Knowl. Based Syst. 262, 110228 (2023)

    Article  Google Scholar 

  14. Wang, W., Pan, S.J.: Recursive neural structural correspondence network for cross-domain aspect and opinion co-extraction. In: ACL, pp. 2171–2181 (2018)

    Google Scholar 

  15. Wu, S., Fei, H., Ren, Y., Li, B., Li, F., Ji, D.: High-order pair-wise aspect and opinion terms extraction with edge-enhanced syntactic graph convolution. IEEE/ACM Trans. Audio Speech Lang. Process. 29, 2396–2406 (2021)

    Article  Google Scholar 

  16. Wu, Z., Ying, C., Zhao, F., Fan, Z., Dai, X., Xia, R.: Grid tagging scheme for end-to-end fine-grained opinion extraction. In: Findings of the Association for Computational Linguistics: EMNLP, pp. 2576–2585 (2020)

    Google Scholar 

  17. Wu, Z., Zhao, F., Dai, X.Y., Huang, S., Chen, J.: Latent opinions transfer network for target-oriented opinion words extraction. In: AAAI, vol. 34, pp. 9298–9305 (2020)

    Google Scholar 

  18. Yang, J., Dai, A., Xue, Y., Zeng, B., Liu, X.: Syntactically enhanced dependency-POS weighted graph convolutional network for aspect-based sentiment analysis. Mathematics 10(18), 3353 (2022)

    Article  Google Scholar 

  19. Yang, Y., Li, K., Quan, X., Shen, W., Su, Q.: Constituency lattice encoding for aspect term extraction. In: COLING, pp. 844–855 (2020)

    Google Scholar 

  20. Yu, J., Jiang, J., Xia, R.: Global inference for aspect and opinion terms co-extraction based on multi-task neural networks. IEEE/ACM Trans. Audio Speech Lang. Process. 27(1), 168–177 (2018)

    Article  Google Scholar 

  21. Zhao, H., Huang, L., Zhang, R., Lu, Q., Xue, H.: SpanMlt: a span-based multi-task learning framework for pair-wise aspect and opinion terms extraction. In: ACL, pp. 3239–3248 (2020)

    Google Scholar 

Download references

Acknowledgements

This work is supported by the Guangdong Basic and Applied Basic Research Foundation (No. 2023A1515011370), the Characteristic Innovation Projects of Guangdong Colleges and Universities (No. 2018KTSCX049), the Natural Science Foundation of Guangdong Province (No. 2021A1515012290), the Guangdong Provincial Key Laboratory of Cyber-Physical Systems (No. 2020B1212060069) and the National & Local Joint Engineering Research Center of Intelligent Manufacturing Cyber-Physical Systems.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Feipeng Dai or Fenghuan Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Yang, J., Dai, F., Li, F., Xue, Y. (2023). Span-Based Pair-Wise Aspect and Opinion Term Joint Extraction with Contrastive Learning. In: Liu, F., Duan, N., Xu, Q., Hong, Y. (eds) Natural Language Processing and Chinese Computing. NLPCC 2023. Lecture Notes in Computer Science(), vol 14303. Springer, Cham. https://doi.org/10.1007/978-3-031-44696-2_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-44696-2_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-44695-5

  • Online ISBN: 978-3-031-44696-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics