IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v10y2022i8p1276-d792080.html
   My bibliography  Save this article

Evaluation of Chinese Natural Language Processing System Based on Metamorphic Testing

Author

Listed:
  • Lingzi Jin

    (School of Information Science and Technology, Zhejiang Sci-Tech University, Hangzhou 310018, China)

  • Zuohua Ding

    (School of Information Science and Technology, Zhejiang Sci-Tech University, Hangzhou 310018, China)

  • Huihui Zhou

    (School of Information Science and Technology, Zhejiang Sci-Tech University, Hangzhou 310018, China)

Abstract

A natural language processing system can realize effective communication between human and computer with natural language. Because its evaluation method relies on a large amount of labeled data and human judgment, the question of how to systematically evaluate its quality is still a challenging task. In this article, we use metamorphic testing technology to evaluate natural language processing systems from the user’s perspective to help users better understand the functionalities of these systems and then select the appropriate natural language processing system according to their specific needs. We have defined three metamorphic relation patterns. These metamorphic relation patterns respectively focus on some characteristics of different aspects of natural language processing. Moreover, on this basis, we defined seven metamorphic relations and chose three tasks (text similarity, text summarization, and text classification) to evaluate the quality of the system. Chinese is used as target language. We extended the defined abstract metamorphic relations to these tasks, and seven specific metamorphic relations were generated for each task. Then, we judged whether the metamorphic relations were satisfied for each task, and used them to evaluate the quality and robustness of the natural language processing system without reference output. We further applied the metamorphic test to three mainstream natural language processing systems (including BaiduCloud API, AliCloud API, and TencentCloud API), and on the PWAS-X datasets, LCSTS datasets, and THUCNews datasets. Experiments were carried out, revealing the advantages and disadvantages of each system. These results further show that the metamorphic test can effectively test the natural language processing system without annotated data.

Suggested Citation

  • Lingzi Jin & Zuohua Ding & Huihui Zhou, 2022. "Evaluation of Chinese Natural Language Processing System Based on Metamorphic Testing," Mathematics, MDPI, vol. 10(8), pages 1-27, April.
  • Handle: RePEc:gam:jmathe:v:10:y:2022:i:8:p:1276-:d:792080
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/10/8/1276/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/10/8/1276/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Kaiyi Tu & Mingyue Jiang & Zuohua Ding, 2021. "A Metamorphic Testing Approach for Assessing Question Answering Systems," Mathematics, MDPI, vol. 9(7), pages 1-15, March.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      Corrections

      All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:10:y:2022:i:8:p:1276-:d:792080. See general information about how to correct material in RePEc.

      If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

      If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

      For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

      Please note that corrections may take a couple of weeks to filter through the various RePEc services.

      IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.