Abstract

In this paper, we inspect the theoretical problem of counting the number of analogies between sentences contained in a text. Based on this, we measure the analogical density of the text. We focus on analogy at the sentence level, based on the level of form rather than on the level of semantics. Experiments are carried on two different corpora in six European languages known to have various levels of morphological richness. Corpora are tokenised using several tokenisation schemes: character, sub-word and word. For the sub-word tokenisation scheme, we employ two popular sub-word models: unigram language model and byte-pair-encoding. The results show that the corpus with a higher Type-Token Ratio tends to have higher analogical density. We also observe that masking the tokens based on their frequency helps to increase the analogical density. As for the tokenisation scheme, the results show that analogical density decreases from the character to word. However, this is not true when tokens are masked based on their frequencies. We find that tokenising the sentences using sub-word models and masking the least frequent tokens increase analogical density.

Highlights

  • Analogy is a relationship between four objects that states the following: A is to B as C is to D

  • The present paper examines in more details the number of formal analogies that can be found between sentences in various corpora in various languages

  • We introduce a precise notion of analogical density and measure the analogical density of various corpora; We characterise texts that are more likely to have a higher analogical density; We investigate the effect of using different tokenisation schemes and the effect of masking tokens by their frequency on the analogical density of various corpora; We investigate the impact of the average length of sentences on their analogical density of corpora; and

Read more

Summary

Introduction

Analogy is a relationship between four objects that states the following: A is to B as C is to D. When the objects are pieces of a text, analogies can be of different sorts: . Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. World-knowledge or pragmatic sort, as in Indonesia : Jakarta :: Brazil : Brasilia (state/capital); Semantic sort, as in glove : hand :: envelope : letter (container/content); Grammatical sort, as in child : children :: man : men (singular/plural); and Formal sort, or level of form, as in he : her :: dance : dancer (suffixing with r)

Objectives
Results
Conclusion

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.