journal article·2021-07-27Open access

Creating Welsh Language Word Embeddings

Padraig Corcoran, Geraint Palmer, Laura Arman, Dawn Knight, Irena Spasić

Applied Sciences· Volume 11· Issue 15

Abstract

Word embeddings are representations of words in a vector space that models semantic relationships between words by means of distance and direction. In this study, we adapted two existing methods, word2vec and fastText, to automatically learn Welsh word embeddings taking into account syntactic and morphological idiosyncrasies of this language. These methods exploit the principles of distributional semantics and, therefore, require a large corpus to be trained on. However, Welsh is a minoritised language, hence significantly less Welsh language data are publicly available in comparison to English. Consequently, assembling a sufficiently large text corpus is not a straightforward endeavour. Nonetheless, we compiled a corpus of 92,963,671 words from 11 sources, which represents the largest corpus of Welsh. The relative complexity of Welsh punctuation made the tokenisation of this corpus relatively challenging as punctuation could not be used for boundary detection. We considered several tokenisation methods including one designed specifically for Welsh. To account for rich inflection, we used a method for learning word embeddings that is based on subwords and, therefore, can more effectively relate different surface forms during the training phase. We conducted both qualitative and quantitative evaluation of the resulting word embeddings, which outperformed previously described word embeddings in Welsh as part of larger study including 157 languages. Our study was the first to focus specifically on Welsh word embeddings.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Natural Language Processing Techniques · Topic Modeling · Authorship Attribution and Profiling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science & Informatics, Cardiff University, Cardiff CF24 3AA, UK

School of Mathematics, Cardiff University, Cardiff CF24 4AG, UK

School of English, Communication & Philosophy, Cardiff University, Cardiff CF10 3EU, UK

References (57)

Show source-provided references
1. Recent trends in deep learning based natural language processing10.1109/MCI.2018.2840738 ↗
2. Grave, E., Bojanowski, P., Gupta, P., Joulin, A., and Mikolov, T. (2018, January 7–12). Learning word vectors for 157 languages. Proceedings of the International Conference on Language Resources and Evaluation, Miyazaki, Japan.
3. (2021, July 26). Corpws Cenedlaethol Cymraeg Cyfoes (Corcencc). Available online: https://github.com/CorCenCC.
4. Harris, Z. (1991). A Theory of Language and Information: A Mathematical Approach, Clarendon Press. [1st ed.].10.1093/oso/9780198242246.001.0001 ↗
5. Neale, S., Donnelly, K., Watkins, G., and Knight, D. (2018, January 7–12). Leveraging lexical resources and constraint grammar for rule-based part-of-speech tagging in welsh. Proceedings of the Eleventh International Conference on Language Resources and Evaluation, Miyazaki, Japan.
6. Piao, S.S., Rayson, P., Knight, D., and Watkins, G. (2018, January 7–12). Towards a Welsh semantic annotation system. Proceedings of the Eleventh International Conference on Language Resources and Evaluation, Miyazaki, Japan.
7. Piao, S.S., Neale, S., Ezeani, I., Rayson, P.E., Knight, D., and Donnelly, K. (2019, January 23–27). Open Welsh language resources for a corpus annotation framework. Proceedings of the 10th International Corpus Linguistics Conference, Wales, UK.
8. (2021, July 26). Welsh Natural Language Toolkit (Wnlt). Available online: https://sourceforge.net/projects/wnlt-project/.
9. Cunningham, H., Maynard, D., and Bontcheva, K. (2011). Text Processing with GATE (Version 6), University of Sheffield.
10. Jones, D.B., Robertson, P., and Prys, G. (2021, July 26). Welsh Language Parts-of-Speech Tagger Api Service. Available online: http://techiaith.cymru/api/parts-of-speech-tagger-api/?lang=en.
11. Jones, D.B., Robertson, P., and Prys, G. (2021, July 26). Welsh Language Lemmatizer Api Service. Available online: http://techiaith.cymru/api/lemmatizer/?lang=en.
12. Spasić, I., Owen, D., Knight, D., and Artemiou, A. (2019, January 19). Unsupervised multi–word term recognition in Welsh. Proceedings of the Celtic Language Technology Workshop, Dublin, Ireland.
13. Flexiterm: A flexible term recognition method10.1186/2041-1480-4-27 ↗
14. Acronyms as an integral part of multi-word term recognition—A token of appreciation10.1109/ACCESS.2018.2807122 ↗
15. Rayson, P., Archer, D., Piao, S., and McEneryb, T. (2004, January 25). The UCREL semantic analysis system. Proceedings of the LREC-04 Workshop, Beyond Named Entity Recognition Semantic Labelling for NLP, Lisbon, Portugal.
16. Welsh National Language Technologies Portal (2021, July 26). Terminology Dictionary Widget. Available online: http://techiaith.cymru/cloud/widgets/terminology-dictionary-widget/?lang=en.
17. Welsh Government (2021, July 26). Termcymru. Available online: https://gov.wales/bydtermcymru.
18. Jones, D., and Eisele, A. (2006, January 24–26). Phrase-based statistical machine translation between English and Welsh. Proceedings of the 5th SALTMIL Workshop on Minority Languages at the 5th International Conference on Language Resources and Evaluation, Genoa, Italy.
19. Welsh National Language Technologies Portal (2021, July 26). Welsh-English Aligner. Available online: http://techiaith.cymru/translation/aligner/?lang=en.
20. A survey of cross-lingual word embedding models10.1613/jair.1.11640 ↗
21. Ezeani, I., Piao, S.S., Neale, S., Rayson, P., and Knight, D. (2019, January 2). Leveraging pre-trained embeddings for Welsh taggers. Proceedings of the 4th Workshop on Representation Learning for NLP, Florence, Italy.10.18653/v1/W19-4332 ↗
22. Donnelly, K. (2021, July 26). Kynulliad3: A Corpus of 350,000 Aligned Welsh-English Sentences from the Third Assembly (2007–2011) of the National Assembly for Wales. Available online: http://cymraeg.org.uk/kynulliad3.
23. Ellis, N.C., O’Dochartaigh, C., Hicks, W., Morgan, M., and Laporte, N. (2021, July 26). Cronfa Electroneg o Gymraeg (ceg): A 1 Million Word Lexical Database and Frequency Count for Welsh. Available online: https://www.bangor.ac.uk/canolfanbedwyr/ceg.php.en.
24. Scannell, K.P. (2007, January 15–16). The crúbadán project: Corpus building for under-resourced languages. Proceedings of the 3rd Web as Corpus Workshop, Louvain-la-Neuve, Belgium.
25. (2021, July 26). Tystion Jehofa. Available online: https://www.jw.org/cy/.
26. Prys, D., Jones, D., and Roberts, M. (2014, January 23). Deche and the Welsh national corpus portal. Proceedings of the First Celtic Language Technology Workshop, Dublin, Ireland.10.3115/v1/W14-4611 ↗
27. (2021, July 26). Available online: https://github.com/google/corpuscrawler.
28. (2021, July 26). Available online: https://golwg360.cymru.
29. (2021, July 26). Available online: https://pedwargwynt.cymru.
30. (2021, July 26). Pobl Caerdydd. Available online: https://poblcaerdydd.com/.
31. (2021, July 26). Available online: https://barn.cymru/.
32. Introduction to information retrieval
33. Howard, J. Lesson 12. Practical Deep Learning for Coders, Available online: https://course.fast.ai/.
34. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv.
35. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global vectors for word representation. Proceedings of the Conference on Empirical Methods in Natural Language Processing), Doha, Qatar.10.3115/v1/D14-1162 ↗
36. Enriching word vectors with subword information10.1162/tacl_a_00051 ↗
37. Peters, M.E., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., and Zettlemoyer, L. (2018, January 21–23). Deep contextualized word representations. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, New Orleans, LA, USA.10.18653/v1/N18-1202 ↗
38. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017, January 4–9). Attention is all you need. Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA.
39. Sentiment embeddings with applications to sentiment analysis10.1109/TKDE.2015.2489653 ↗
40. Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013, January 5–10). Distributed representations of words and phrases and their compositionality. Proceedings of the Advances in Neural Information Processing Systems, Lake Tahoe, NV, USA.
41. King, G. (2015). Modern Welsh: A Comprehensive Grammar, Routledge.10.4324/9781315739410 ↗
42. (2021, July 26). Available online: https://fasttext.cc/docs/en/crawl-vectors.html.
43. Schnabel, T., Labutov, I., Mimno, D., and Joachims, T. (2015, January 17–21). Evaluation methods for unsupervised word embeddings. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, Lisbon, Portugal.10.18653/v1/D15-1036 ↗
44. Bakarov, A. (2018). A survey of word embeddings evaluation methods. arXiv.
45. Placing search in context: The concept revisited10.1145/503104.503110 ↗
46. (2021, July 26). Available online: http://www.cs.technion.ac.il/~gabr/resources/data/wordsim353/.
47. Simlex-999: Evaluating semantic models with (genuine) similarity estimation10.1162/COLI_a_00237 ↗
48. (2021, July 26). Available online: https://fh295.github.io/simlex.html.
49. The university of south florida free association, rhyme, and word fragment norms10.3758/BF03195588 ↗
50. Faruqui, M., Tsvetkov, Y., Rastogi, P., and Dyer, C. (2016). Problems with evaluation of word embeddings using word similarity tasks. arXiv.10.18653/v1/W16-2506 ↗
51. Baroni, M., Dinu, G., and Kruszewski, G. (2014, January 22–27). Don’t count, predict! a systematic comparison of context-counting vs. context-predicting semantic vectors. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Baltimore, MD, USA.10.3115/v1/P14-1023 ↗
52. Almuhareb, A., and Poesio, M. (2004, January 25–26). Attribute-based and value-based clustering: An evaluation. Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, Barcelona, Spain.
53. Almuhareb, A., and Poesio, M. (2005, January 21–23). Concept learning and categorization from the web. Proceedings of the Annual Meeting of the Cognitive Science Society, Stresa, Italy.
54. Turney, P.D. (2001). Mining the web for synonyms: Pmi-ir versus lsa on toefl. European Conference on Machine Learning, Springer.10.1007/3-540-44795-4_42 ↗
55. A solution to plato’s problem: The latent semantic analysis theory of acquisition, induction, and representation of knowledge10.1037/0033-295X.104.2.211 ↗
56. Espinosa-Anke, L., Palmer, G., Corcoran, P., Filimonov, M., Spasić, I., and Knight, D. (2021). English-Welsh cross-lingual embeddings. Appl. Sci., in press.10.3390/app11146541 ↗
57. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019, January 2–9). BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the Annual Conference of the North American Chapter of the Association for Computational Linguistics, Minneapolis, MN, USA.