Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 2.29 KB

README.md

File metadata and controls

49 lines (32 loc) · 2.29 KB

LongWanjuan

This repository contains the code and data for the paper LongWanjuan: Towards Systematic Measurement for Long Text Quality.

Measurement

To systematically assess the quality of long texts, we adhere to linguistic fundamentals and evaluate them through three dimensions: coherence, cohesion, and complexity.

  1. Coherence refers to the consistency and clarity of the text as a whole. A coherent text maintains thematic unity throughout its parts, with logical connections between the different sections.

  2. Cohesion measures the degree of tight connection between two sentences or sections of the text, reflected in the use of connectives, pronouns, synonyms, and hypernyms/hyponyms.

  3. Complexity assesses the level of linguistic sophistication in the use of language in the text. This can be gauged through the richness and diversity of vocabulary, as well as the complexity of sentence structures.

To better elucidate these dimensions, we provide examples in the following table.

Examples

Metric

Inspired by the three dimensions mentioned above, we propose the quantitative metrics to assess the quality of long text, including both statistical and model-based ones, where higher values correlate with more pronounced characteristics of the corresponding dimension. The code for calculating these metric is in coherence, cohesion and complexity.

LongWanjuan

Based on the analysis and metrics discussed previously, we introduce LongWanjuan, a bilingual long-text dataset with over 160B tokens. The pipeline for constructing our dataset is illustrated in the following figure.

Pipeline

An overview of the dataset statistics in the English and Chinese part of LongWanjuan is as follows.

domain

en_stat

cn_stat

Distribution of token and document counts across different lengths is as follows. In LongWanjuan, over 99.9% of the data exceed the truncation length in pre-training.

LongWanjuan is available at https://opendatalab.com/OpenLMLab/LongWanjuan under CC BY 4.0.