IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i14p2241-d1699129.html
   My bibliography  Save this article

AdaGram in Python: An AI Framework for Multi-Sense Embedding in Text and Scientific Formulas

Author

Listed:
  • Arun Josephraj Arokiaraj

    (Department of Basic Sciences, Ernst-Abbe University of Applied Sciences Jena, Carl-Zeiss-Promenade 2, 07745 Jena, Germany)

  • Samah Ibrahim

    (Department of Computer Science, Gulf University for Science and Technology, Hawally 32093, Kuwait)

  • André Then

    (Department of Mathematics and Computer Science, Friedrich Schiller University Jena, Fürstengraben, 07743 Jena, Germany)

  • Bashar Ibrahim

    (Department of Mathematics and Computer Science, Friedrich Schiller University Jena, Fürstengraben, 07743 Jena, Germany
    Department of Mathematics & Natural Sciences and Centre for Applied Mathematics & Bioinformatics, Gulf University for Science and Technology, Hawally 32093, Kuwait
    European Virus Bioinformatics Center, Leutragraben 1, 07743 Jena, Germany)

  • Stephan Peter

    (Department of Basic Sciences, Ernst-Abbe University of Applied Sciences Jena, Carl-Zeiss-Promenade 2, 07745 Jena, Germany)

Abstract

The Adaptive Skip-gram (AdaGram) algorithm extends traditional word embeddings by learning multiple vector representations per word, enabling the capture of contextual meanings and polysemy. Originally implemented in Julia, AdaGram has seen limited adoption due to ecosystem fragmentation and the comparative scarcity of Julia’s machine learning tooling compared to Python’s mature frameworks. In this work, we present a Python-based reimplementation of AdaGram that facilitates broader integration with modern machine learning tools. Our implementation expands the model’s applicability beyond natural language, enabling the analysis of scientific notation—particularly chemical and physical formulas encoded in LaTeX. We detail the algorithmic foundations, preprocessing pipeline, and hyperparameter configurations needed for interdisciplinary corpora. Evaluations on real-world texts and LaTeX-encoded formulas demonstrate AdaGram’s effectiveness in unsupervised word sense disambiguation. Comparative analyses highlight the importance of corpus design and parameter tuning. This implementation opens new applications in formula-aware literature search engines, ambiguity reduction in automated scientific summarization, and cross-disciplinary concept alignment.

Suggested Citation

  • Arun Josephraj Arokiaraj & Samah Ibrahim & André Then & Bashar Ibrahim & Stephan Peter, 2025. "AdaGram in Python: An AI Framework for Multi-Sense Embedding in Text and Scientific Formulas," Mathematics, MDPI, vol. 13(14), pages 1-27, July.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:14:p:2241-:d:1699129
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/14/2241/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/14/2241/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Xu Yuan & Jiaxi Chen & Yingbo Wang & Anni Chen & Yiou Huang & Wenhong Zhao & Shuo Yu, 2024. "Semantic-Enhanced Knowledge Graph Completion," Mathematics, MDPI, vol. 12(3), pages 1-16, January.
    2. Vahe Tshitoyan & John Dagdelen & Leigh Weston & Alexander Dunn & Ziqin Rong & Olga Kononova & Kristin A. Persson & Gerbrand Ceder & Anubhav Jain, 2019. "Unsupervised word embeddings capture latent knowledge from materials science literature," Nature, Nature, vol. 571(7763), pages 95-98, July.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ananthan Nambiar & Tobias Rubel & James McCaull & Jon deVries & Mark Bedau, 2021. "Dropping diversity of products of large US firms: Models and measures," Papers 2110.08367, arXiv.org.
    2. Jason Youn & Navneet Rai & Ilias Tagkopoulos, 2022. "Knowledge integration and decision support for accelerated discovery of antibiotic resistance genes," Nature Communications, Nature, vol. 13(1), pages 1-11, December.
    3. Zongrui Pei & Junqi Yin & Peter K. Liaw & Dierk Raabe, 2023. "Toward the design of ultrahigh-entropy alloys via mining six million texts," Nature Communications, Nature, vol. 14(1), pages 1-8, December.
    4. Shaoshuo Li & Baixing Chen & Hao Chen & Zhen Hua & Yang Shao & Heng Yin & Jianwei Wang, 2021. "Analysis of potential genetic biomarkers and molecular mechanism of smoking-related postmenopausal osteoporosis using weighted gene co-expression network analysis and machine learning," PLOS ONE, Public Library of Science, vol. 16(9), pages 1-18, September.
    5. Rachael Ruizhu Xiong & Charles Zhechao Liu & Kim-Kwang Raymond Choo, 2025. "Synthesizing Knowledge through A Data Analytics-Based Systematic Literature Review Protocol," Information Systems Frontiers, Springer, vol. 27(1), pages 235-258, February.
    6. John Dagdelen & Alexander Dunn & Sanghoon Lee & Nicholas Walker & Andrew S. Rosen & Gerbrand Ceder & Kristin A. Persson & Anubhav Jain, 2024. "Structured information extraction from scientific text with large language models," Nature Communications, Nature, vol. 15(1), pages 1-14, December.
    7. Jianhong Luo & Minjuan Chai & Xuwei Pan, 2021. "Identification of Research Priorities during the COVID-19 Pandemic: Implications for Its Management," IJERPH, MDPI, vol. 18(24), pages 1-15, December.
    8. Ningzi Li & Shiyang Lai & James Evans, 2025. "Big Data and the Computational Social Science of Entrepreneurship and Innovation," Papers 2505.08706, arXiv.org.
    9. Aman Kumar & Binil Starly, 2022. "“FabNER”: information extraction from manufacturing process science domain literature using named entity recognition," Journal of Intelligent Manufacturing, Springer, vol. 33(8), pages 2393-2407, December.
    10. Hyunsoo Park & Anthony Onwuli & Aron Walsh, 2025. "Exploration of crystal chemical space using text-guided generative artificial intelligence," Nature Communications, Nature, vol. 16(1), pages 1-14, December.
    11. Sadamori Kojaku & Filippo Radicchi & Yong-Yeol Ahn & Santo Fortunato, 2024. "Network community detection via neural embeddings," Nature Communications, Nature, vol. 15(1), pages 1-10, December.
    12. Sotaro Shibayama & Deyun Yin & Kuniko Matsumoto, 2021. "Measuring novelty in science with word embedding," PLOS ONE, Public Library of Science, vol. 16(7), pages 1-16, July.
    13. Pessa, Arthur A.B. & Zola, Rafael S. & Perc, Matjaž & Ribeiro, Haroldo V., 2022. "Determining liquid crystal properties with ordinal networks and machine learning," Chaos, Solitons & Fractals, Elsevier, vol. 154(C).
    14. Yonghe Lu & Jiayi Luo & Ying Xiao & Hou Zhu, 2021. "Text representation model of scientific papers based on fusing multi-viewpoint information and its quality assessment," Scientometrics, Springer;Akadémiai Kiadó, vol. 126(8), pages 6937-6963, August.
    15. Jiang, Zhuoren & Lin, Tianqianjin & Huang, Cui, 2023. "Deep representation learning of scientific paper reveals its potential scholarly impact," Journal of Informetrics, Elsevier, vol. 17(1).
    16. Lu Liu & Benjamin F. Jones & Brian Uzzi & Dashun Wang, 2023. "Data, measurement and empirical methods in the science of science," Nature Human Behaviour, Nature, vol. 7(7), pages 1046-1058, July.
    17. Shufeng Kong & Francesco Ricci & Dan Guevarra & Jeffrey B. Neaton & Carla P. Gomes & John M. Gregoire, 2022. "Density of states prediction for materials discovery via contrastive learning from probabilistic embeddings," Nature Communications, Nature, vol. 13(1), pages 1-12, December.
    18. Yujie Zhang & Rujiang Bai & Ling Kong & Xiaoyue Wang, 2024. "2SCE-4SL: a 2-stage causality extraction framework for scientific literature," Scientometrics, Springer;Akadémiai Kiadó, vol. 129(11), pages 7175-7195, November.
    19. Jia-Min Lu & Hui-Feng Wang & Qi-Hang Guo & Jian-Wei Wang & Tong-Tong Li & Ke-Xin Chen & Meng-Ting Zhang & Jian-Bo Chen & Qian-Nuan Shi & Yi Huang & Shao-Wen Shi & Guang-Yong Chen & Jian-Zhang Pan & Zh, 2024. "Roboticized AI-assisted microfluidic photocatalytic synthesis and screening up to 10,000 reactions per day," Nature Communications, Nature, vol. 15(1), pages 1-13, December.
    20. Ruilin Bai & Yu Yao & Qiaosong Lin & Lize Wu & Zhen Li & Huijuan Wang & Mingze Ma & Di Mu & Lingxiang Hu & Hai Yang & Weihan Li & Shaolong Zhu & Xiaojun Wu & Xianhong Rui & Yan Yu, 2025. "Preferable single-atom catalysts enabled by natural language processing for high energy density Na-S batteries," Nature Communications, Nature, vol. 16(1), pages 1-15, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:14:p:2241-:d:1699129. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.