HUBEI AGRICULTURAL SCIENCES ›› 2022, Vol. 61 ›› Issue (13): 151-155.doi: 10.14088/j.cnki.issn0439-8114.2022.13.028

• Information Engineering • Previous Articles     Next Articles

Research on short text classification in agricultural field based on few-shot learning

MA Zhi-run1,2, FEI Fan1, LI Fen1, DONG Hui-jie1, PENG Lin1   

  1. 1. College of Big Data, Yunnan Agricultural University, Kunming 650000, China;
    2. Green Agricultural Products Big Data Intelligent Information Processing Engineering Research Center, Kunming 650000, China
  • Received:2021-06-03 Online:2022-07-10 Published:2022-08-10

Abstract: In order to conveniently, accurately and efficiently identify the categories of the problems described in the massive information, and to address the problems of data sparsity and high dependence on context in agricultural short text classification, this paper crawled more than 10,000 short texts in the field of agricultural Q&A and formed a 5-classified short text dataset after cleaning, filtering and annotation processes. Then an agricultural short text classification algorithm based on BERT and ERNIE pre-training models was constructed, and compared with the agricultural short text classification algorithm based on the decision tree model. The results indicated that with the reduction of data set samples, the accuracy, precision and recall of the three models all showed a downward trend. The accuracy and F1 value of the ERNIE pre-training model were at a high level, which was much higher than those of the decision tree model with the same data, showing that the constructed agricultural short text classification algorithm could still achieve a high classification effect in the case of insufficient data.

Key words: pre-training model, text classification, BERT, ERNIE

CLC Number: