Abstract
We propose a novel approach to text segmentation, treating the task as a binary classification problem to identify sentence boundaries as segmentation markers. Boundaries are determined based on sentence similarity and correlation, particularly focusing on the relationships between words within sentences. To capture these relationships, we utilize Word Structure Embedding and In-Context Learning (WSE-ICL), which connects sentence nodes through shared word nodes. Our method uses GCN to embed words’ points and [CLS] point in a sentence, applies template to fuse the sample and residual data to extract features in LLM and attends embedding and feature for In-Context Learning. We evaluated our approach on five Chinese and cross-lingual datasets (Wiki-zh, Stories-zh, News-zh, News-ja, News-ko) under varying data settings (4∼128 shots) and LLM scale (0.5∼7B) settings. The results show an average F1 improvement of 1.00% over the previous best-performing methods under 1.5B and 128 shots with p < 0.05. Component-wise analysis further demonstrates that WSE-ICL effectively refines general word embeddings into features tailored to the specific task, achieving state-of-the-art performance in Chinese document segmentation. The source code of the proposed method is publicly available at https://github.com/na978292231/WSE-ICL/tree/main/WSE-ICL-main.
Funding Information
  • National Natural Science Foundation of China (72071145)

This publication has 20 references indexed in Scilit: