73
Views
0
CrossRef citations to date
0
Altmetric
Articles

Tackling the multilingual and heterogeneous documents with the pre-trained language identifiers

ORCID Icon & ORCID Icon
Pages 391-402 | Received 12 Nov 2022, Accepted 22 May 2023, Published online: 30 May 2023
 

Abstract

The Web has become one of the most important data sources, and the content shared is most often multilingual, as users belong to different cultures and speak different languages. Multilingual content (document) is not suitable for many people who only need content in one language. Furthermore, dividing a multilingual document into monolingual documents helps researchers extract only the text of the desired language to use in different tasks such as training or model testing. Therefore, it is challenging to clean and divide the raw content manually. This paper presents an automatic approach to dividing a multilingual document and reassembling it into monolingual documents by examining three existing state-of-the-art tools for Language Identification (LI). We prepared different corpora with different heterogeneity characteristics for the evaluation and evaluated their code-switching pattern using three different code-switching metrics. The proposed approach reached 99% as the best accuracy result for the long segment (long text) and 90% for the mixed segment. In addition, a good correlation was found between the I-Index and accuracy with Pearson’s r = −0.998.

Disclosure statement

No potential conflict of interest was reported by the author(s).

Notes

3 We used the UDHR corpus in our experiments; we ignored blank lines and lines with less than 3 letters and we also removed numbers and all special characters (e.g., +!, *@#%&$ … etc) from the text

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.