<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>October</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Multilingual Question-Driven Approach and Software System to Obtaining Information from Texts</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Olena Chebanyuk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Aviation University</institution>
          ,
          <addr-line>Kyiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Text Processing on Different Languages, Ontology, Semantic Analysis, Software System for Text Analysis</institution>
          ,
          <addr-line>Software Architecture</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>V.N. Glushkov Institute of Cybernetics of the NAS of Ukraine</institution>
          ,
          <addr-line>Kyiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>1</volume>
      <fpage>1</fpage>
      <lpage>12</lpage>
      <abstract>
        <p>An approach, allowing obtaining information from a text that is relevant to users' question, is proposed in this paper. The advantage of the proposed approach is using the same algorithms for analysis of texts from different groups of languages, namely for Latin and Cyrillic alphabets. The most relevant sentences from the text that match to concrete types of questions are found by means of matching questions and attributes of answers in texts. Such attributes are specific for the concrete type of the question. An ontology aimed to consider key information about questions and attributes of answers also is proposed. This ontology allows adding new languages, types of questions, and attributes of answers. Architectural solution of the software system for operations of ontology processing and searching of answers, is represented in the paper. A case study illustrates the process of text processing. As an example of the text, a Bulgarian legend was chosen, because the style of preparing fairytales is one of the informal styles of text representation.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Nowadays values of information in digital world are increased. In order to perform effective
search user must proceed a large amount of data. In order to take this process more effective different
software systems for searching and processing of information are used. Existing systems have the
next difficulties to use: systems are not flexible (based on artificial networks, based on ontologies),
expensive, difficult to changes, difficult to be adopted to different languages or environments. From
the other side the designing, development, and supporting of such systems requires many efforts to
adopt software system for different purposes.</p>
      <p>Solution may be in the area – flexible systems, open for other languages, allowing filtering user
requests and reducing the number of searched information.</p>
      <p>Paper is organized by the following way: Chapter 2 represents literature review and summarizing
of drawbacks of existing approach. Chapter 3 represents main steps of the proposed approach.
Chapter 4 illustrates a part of designed ontology for different types of questions. As examples,
Bulgarian and English languages are considered. Chapter 5 represents the software architecture of the
software system for realizing of the proposed approach. Chapter 6 contains a practical example of
preparing XML files, as external attributes for two languages. Detailed information for domain
analytics about testing the proposed approach is represented in Chapter 7. Chapter 8 illustrates the
results of Case Study for asking questions about Bulgarian legend. It is known, that in fairytales and
legends the freest style of representing ideas is admitted. That is why, such complex texts are selected
for testing. Chapter 8 contains description of main class for corresponding software system
realization. Conclusions represents quantity estimation of the proposed approach and ideas for the
further research.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Literature review</title>
      <p>
        Paper [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] represents a software system is used to determine the degree of semantic similarity of
two short texts written in Serbian. An approach allowing performing Semantic Similarity of Short
Texts in Languages. This approach is consists from the next steps:
      </p>
      <p>Corpus acquisition deals with finding a sufficiently large set of texts that could be used to
generate a semantic space.</p>
      <p>Corpus parsing is used to remove any superfluous information from further consideration. (For
example specific XML tags or other, irrelevant data.)</p>
      <p>
        Corpus preprocessing serves to reduce the amount of different words in the corpus, effectively
reducing the context vector dimension:
1. Text cleaning – this includes the deletion of all text characters not belonging to the native
script of the language in question, the removal of numbers and words that contain numbers,
the elimination of punctuation marks and the shifting of all capital letters into lower case [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
2. Stop-words removal – stop-words are auxiliary words like prepositions, pronouns,
interjections and conjunctions, which carry negligible semantic information, but which are
often encountered due to their language function. By removing those words, we decrease the
total number of different words in the corpus [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
3. The result is that the semantic space is reduced and the accuracy of the semantic algorithms is
increased, since the links between semantically important words become more emphasized.
The stop-word was formed by gathering the most frequent words from the text corpus.
(General knowledge were taken from an encyclopedia). The information about word
frequencies in the corpus which is gathered in this step is saved for later use in calculating
various Term Frequencies (TFs) for each word [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
4. Stemming – (solving coding problems, for example comparing UTF-8 format and is written
partially in Cyrillic and partially in Latin alphabet or ASCII coding system. In order to
preserve compatibility with the stemmer module, special coding system was designed [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>Choosing an algorithm for the creation of the semantic space and supplying it with the
preprocessed corpus text.</p>
      <p>
        The reduction of context vector dimension. Each algorithm has its own post-processing routine
which is encapsulated within the algorithm, as defined in the S-Space package [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Paper [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] presents the approach of defining entities in court decisions. It is proposed to prepare
courts’ decisions in the special structure of documents in order to simplify search procedure. Also
classification and advantages and drawbacks of different software systems for semantic analysis is
represented. Preparing unified structure of a document simplifies search procedure, but requires
additional efforts for preparing of document in a specific view.
      </p>
      <p>
        Approaches devoted to analysis of object state in decision support systems allows to analyze
different states of objects (and as a conclusion – characteristics of entities) with the aim to extract
metainformation about entities and get the answers to questions in the text. Such approaches may be
implemented if there is an information that state of object or domain entities may be changed during
story [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        Other implementation of question-oriented analysis of texts is to get questions essential for
specific group of users to predict their relation, emotions, and opinions about texts. Typical question
may be applied to many different texts with the aim to select the best test considering some conditions
of chosen social group. For example searching the most appropriate texts fro children [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
2.1 Conclusion from the review and requirement specification for the
approach
      </p>
      <p>After analyzing the existing solutions for processing of texts, requirement specification with the
essential software requirements was designed. Points that has the highest level of priorities are
considered in this paper.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Proposed approach</title>
    </sec>
    <sec id="sec-4">
      <title>4 Ontology for different types of questions</title>
      <p>It is proposed to classify domain entities according to defined characteristics. One entity may
correspond to several classes. The list of the proposed characteristics for questions is given below
(Table 2 and Table 3). Aim of this classification is to take marks in text according to types of
questions.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Designing of software architecture</title>
      <p>Component diagram of the proposed software system is represented in the Figure 1. It
illustrates the structure of the system and interaction between its components.</p>
      <p>XML parser</p>
      <p>Metainformation</p>
      <p>Text parser
Answers</p>
      <p>User input
processing</p>
      <p>Question
metadata
Matching
tool</p>
      <p>Metainformation about questions and answers for every language is stored in special XML
file. Then, it is necessary to parse texts and questions. Information, extracted from XML parser, is
transmitted to text parser and module for the questions processing (Use Input processing module in
the Figure 1.).</p>
      <p>After parsing texts answers according to the type of question are obtained. After parsing
questions keywords are extracted (Table 3). After matching questions and information extracted
from texts answers are proposed to user.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Preparing of attributes for text analysis</title>
      <p>In order to represent connection between metainformation in texts and questions part of XML file
is proposed. Structure of the file shows that in order to add new features of defining new answers in
text it is necessary to modify items of list &lt;MetaList&gt; (See Table 2 and Table 3). In addition, it is easy
to add, modify or remove new types of question.</p>
      <p>&lt;Bulgarian&gt;
&lt;TypeQ&gt; къде? &lt;/TypeQ&gt;
&lt;MetaList&gt;
&lt;Attribute&gt; на &lt;/Attribute&gt;
&lt;Attribute&gt; в &lt;/Attribute&gt;
&lt;Attribute&gt; във &lt;/Attribute&gt;
&lt;Attribute&gt; близо &lt;/Attribute&gt;
&lt;Attribute&gt; далеко &lt;/Attribute&gt;
&lt;Attribute&gt; под &lt;/Attribute&gt;
&lt;Attribute&gt; над &lt;/Attribute&gt;
&lt;/MetaList&gt;
&lt;TypeQ&gt; кога? &lt;/TypeQ&gt;
&lt;MetaList&gt;
&lt;Attribute&gt; в нощта &lt;/Attribute&gt;
&lt;Attribute&gt; нощ &lt;/Attribute&gt;
&lt;Attribute&gt; деня &lt;/Attribute&gt;
&lt;Attribute&gt; денят &lt;/Attribute&gt;
&lt;Attribute&gt; сутрин &lt;/Attribute&gt;
&lt;Attribute&gt; сутринта &lt;/Attribute&gt;
&lt;Attribute&gt; днес &lt;/Attribute&gt;
&lt;Attribute&gt; сега &lt;/Attribute&gt;
&lt;Attribute&gt; никога &lt;/Attribute&gt;
&lt;/MetaList&gt;
&lt;/Bulgarian&gt;</p>
    </sec>
    <sec id="sec-7">
      <title>7. General description of the proposed approach</title>
      <p>In order to use the proposed approach it is necessary to perform the next steps:
1. Domain analytics designs a domain ontology (message 1 in UML Sequence diagram on
figure 2). Ontology may looks like a UML class diagram.
2. Using this ontology XML files with questions’ and answers’ attributes are prepared. In
order to do this common XML files for specific language may be précised (see examples
from chapter 6). Domain analytic gathers specific question attributes for ontology
(message 2 on UML Sequence Diagram on figure 2), and then prepares attributes of
answers (message 3 on UML Sequence Diagram on figure 2). Then XML files for
different languages are prepared for the further using (messages 4.1, 4.2, and 4.3 on
UML Sequence Diagram on figure 2).
3. Then domain analytics starts to test prepared XML files for the chosen text. For every
question the next activities are performed
3.1 Using XML files attributes of question are extracted (messages 5.1 and 5.2 on UML
Sequence Diagram on figure 2).
3.2 Using XML file for concrete language and concrete question and considering text a
set of answers are founded (messages 6 on UML Sequence Diagram on figure 2).
4. Answers are returned to domain analytics for analysis (messages 7 on UML Sequence</p>
      <p>Diagram on figure 2)</p>
    </sec>
    <sec id="sec-8">
      <title>7. Case study</title>
      <sec id="sec-8-1">
        <title>Consider a part of Bulgarian legend in two languages.</title>
        <p>Bulgarian Cред живописните възвишения на Рила, редом до църковните храмове,
жилищни комплекси и костници на Рилския манастир, своята снага издига и една сурова на
вид сграда от масивни ломени камъни, наречена Хрельовата кула. Нейните дебели зидове не
изглеждат никак на място в този храм, посветен на Бога и по-скоро оставят усещането за
средновековно укрепление. А всъщност става въпрос именно за това.</p>
        <p>Най-старата сграда от целия съвременен комплекс на Рилския манастир е построена от
протосеваст Стефан Хрельо Драговол – благородник, който притежавал владения в региона.</p>
        <p>От надпис, запазил се в самата кула, разбираме, че отбранителното съоръжение било
издигнато от влиятелния властел през 1335 г., заедно с църквата „Св. Богородица Осеновица“
и било отдадено на защитата на богослужебните сгради, които тогава оформяли комплекса
посветен на Св. Иван Рилски.</p>
        <p>
          Малко се знае за вида, който е имал тогава Рилския манастир, тъй като пораженията
нанесени от османското завоевание са довели както до загубването на изворови данни, така и
до щети върху самите паметници на българската култура [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
        <p>Translation into English Among the picturesque elevations of Rila, next to the churches,
residential complexes and ossuaries of the Rila Monastery, a harsh-looking building made of
massive rubble stones, called the Khrel tower, is also erected. Its thick walls do not look at all out of
place in this temple dedicated to God and rather leave the feeling of a medieval fortification. And in
fact, this is exactly what it is about.</p>
        <p>The oldest building of the entire modern complex of the Rila Monastery was built by
Protosevast Stefan Hrelio Dragovol - a nobleman who owned estates in the region.</p>
        <p>From an inscription preserved in the tower itself, we understand that the defensive facility was
erected by the influential ruler in 1335, together with the church "St. Bogoroditsa Osenovitsa" and
was devoted to the protection of the religious buildings that then formed the complex dedicated to
St. Ivan Rilski.</p>
        <p>Little is known about the appearance that the Rila Monastery had then, since the defeats
inflicted by the Ottoman conquest led to both the loss of source data and damage to the monuments
of Bulgarian culture.
The next activity – is to take question about text. Tables with answers are given below.
Possible variants of answers (all sentences with alive entities are considered)
Стефан Хрельо Драговол – Stefan Hrelio Dragovol - a nobleman who
благородник, който притежавал владения в owned estates in the region.
региона.</p>
        <p>които тогава оформяли комплекса which then formed the complex dedicated to
посветен на Св. Иван Рилски. St. Ivan Rilski.</p>
        <p>посветен на Бога и по-скоро оставят
усещането за средновековно укрепление
dedicated to God and rather leave the
impression of a medieval fortification
Words – 28
Total value of text - 207</p>
      </sec>
      <sec id="sec-8-2">
        <title>Statistical values Words – 61 Total value of text - 266</title>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>8. Description of software system realization</title>
      <p>English
What conquests destroyed the Rila Monastery?</p>
      <sec id="sec-9-1">
        <title>There is no way to find an answer in the text using this method Detailed requirement specification, represented in the Table 8, describes main features of system described in this chapter.</title>
        <p>The development of project is started from the class allowing to save and restore XML file from
hard disk. Storing and restoring is made by means of XML serialization. Class dataStore incapsulates
the serialization and deserialization operations.</p>
        <p>class dataStore {</p>
        <p>public string filename { get; set; }
public Dictionary&lt;string,List&lt;string&gt;&gt; quest_ans { get; set;}
public void SerializeD() { }
public void DeSerializeD() { }</p>
        <p>The next class should support basic operations with datastore. (Something like CRUD operations
when databases are processed.) Class ManageDataStore implements datastore processing operations.
class ManageDataStore {
dataStore ds { get; set; }
public void DataStore_Create() { }
public void DataStore_Edit() { }
public void DataStore_View() { }
public void DataStore_Delete() { }
}
Class Language is aimed to proceed operation of searching answers in texts.
class Language {</p>
        <p>dataStore ds { get; set; }
public string text { get; set; }
public List&lt;string&gt; questions { get; set; }
public List&lt;string&gt; answers { get; set; }</p>
        <p>Language(string text, List&lt;string&gt; questions, string Lang) {
}
public void GetInformation() { }
public void FindAnswewrs() { }
}</p>
      </sec>
    </sec>
    <sec id="sec-10">
      <title>9. Conclusion and estimation of the proposed approach</title>
      <p>The paper proposes the multilingual approach for searching information in texts. Searching
procedure matches attributes of the question and the text. The main idea of the proposed approach is
to reduce amount of information needed to be processed by user in order to obtain answer to
questions.</p>
      <p>Table 9 shows the ratio of information needed to be proceed to find answer to question. Time
ratio is calculated in the next way: average speed for reading such types of texts is 160 words in
minute, It is assumed that reading will take 1 minute for Bulgarian language (Table 4) and
182/160=1.13 minute for English language.</p>
      <sec id="sec-10-1">
        <title>Question related to alive entities Other Questions Question related to entities of time</title>
        <p>10. References.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Furlan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Batanović</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Nikolić</surname>
          </string-name>
          ,
          <article-title>Semantic similarity of short texts in languages with a deficient natural language processing support</article-title>
          .
          <source>Decision Support Systems</source>
          <volume>55</volume>
          (
          <issue>3</issue>
          ), (
          <year>2013</year>
          ).
          <fpage>710</fpage>
          -
          <lpage>719</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G. T.</given-names>
            <surname>Ngompé</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Harispe</surname>
          </string-name>
          , G. Zambrano,
          <string-name>
            <given-names>J.</given-names>
            <surname>Montmain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mussard</surname>
          </string-name>
          ,
          <article-title>Detecting sections and entities in court decisions using HMM and CRF graphical models</article-title>
          .
          <source>Advances in Knowledge Discovery and Management</source>
          Volume
          <volume>8</volume>
          , (
          <year>2019</year>
          ).
          <fpage>61</fpage>
          -
          <lpage>86</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Q. A.</given-names>
            <surname>Mahdi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. Zhyvotovskyi S.</given-names>
            <surname>Kravchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Borysov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            ,
            <surname>Orlov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          , &amp; S. Boholii,
          <article-title>Development of a Method of Structural-Parametric Assessment of the Object State</article-title>
          .
          <source>Eastern-European Journal of Enterprise Technologies</source>
          <volume>5</volume>
          (
          <issue>4</issue>
          ), (
          <year>2021</year>
          ).
          <fpage>113</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gizun</surname>
          </string-name>
          , et al.
          <article-title>Method of informational and psychological influence evaluation in social networks based on fuzzy logic</article-title>
          ,
          <source>in: Proceedings of International Workshop on Control, Optimization and Analytical Processing of Social Networks. CEUR Workshop Proceedings</source>
          ,
          <year>2019</year>
          , p.-
          <volume>2392</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Българска</surname>
            <given-names>история</given-names>
          </string-name>
          ,
          <year>2020</year>
          . URL: https://bulgarianhistory.org/hreliova-kula/
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <article-title>[6] Stack overflow</article-title>
          .
          <source>Serialization Dictionary</source>
          ,
          <year>2021</year>
          URL:https://stackoverflow.com/questions/14304034/serialize-dictionarystring
          <article-title>-liststring-into-xml</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>F.</given-names>
            <surname>Andonov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Slavova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Petrov</surname>
          </string-name>
          .
          <article-title>On the open text summarizer</article-title>
          .
          <source>Information Content and Processing</source>
          <volume>3</volume>
          (
          <year>2016</year>
          ).
          <fpage>278</fpage>
          -287 URL: http://www.foibg.com/ijicp/vol03/ijicp03-03-p05.pdf
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>V.</given-names>
            <surname>Slavova</surname>
          </string-name>
          ,
          <article-title>Emotional valence coded in the phonemic content-Statistical evidence based on corpus analysis</article-title>
          .
          <source>Cybernetics and Information Technologies</source>
          <volume>2</volume>
          , (
          <year>2020</year>
          ),
          <fpage>3</fpage>
          -
          <lpage>21</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>