Skip to content

In this repository, we provide a neural model based on BERT and BiLSTM neural networks, which can recognize the Kasreh Ezafeh (Genitive Conjunction /e/) in a Persian sentence or text.

License

Notifications You must be signed in to change notification settings

HRSadeghi/Kasreh_ezafeh

Repository files navigation

Kasreh Ezafeh (Genitive Conjunction /e/) in Persian Language

In this project, we intend to identify the conjunction /e/ which is created due to the existence of genitive phrases in Persian language. Since there is no general rule in Persian language to recognize this conjunction, therefore neural models have been used in this repository. The neural model used here is a combination of BERT and BiLSTM networks, which detects this conjunction with high performance.


Persian genitive phrases

According to this source, in Persian language, Genitive is a kind of phrase syntax that sets two constituents in a hierarchical relationship (normally using the enclitical conjunction /-e/).

The superordinate constituent is called the nucleus, which is determined semantically by the second constituent, the modifier. The modifier is a special form of attribute:

attribute2_EN.png

Genitive phrases are normally endocentric, which means that the nucleus (or the modifier) is the reference of the genitive phrase. For example, /bærg-e ʧenɒr/ برگِ چنار is a determining of /bærg/ برگ, and /mɒh-e ordibeheʃt/ ماهِ اردیبهشت a specification of /mɒh/ ماه.

Nevertheless, there are some exocentric qualitative genitive phrases in which neither the nucleus nor the modifier is the reference. This occurence can be noted in the following sentences:

کارگران دستِ خالی از اتاقِ رییس بیرون آمدند.

راه درازست و ما پایِ پیاده.

In these examples, /dæst-e xɒli/ دستِ خالی is neither /dæst/ دست nor /xɒli/ خالی, and /pɒ-je piɒdæ/ پایِ پیاده is neither /pɒ/ پا nor /piɒdæ/ پیاده.

Classifications of Genitive

The genitive can be classified in Persian as follows:

  1. Qualitative Genitive: In the qualitative genitive, the modifier describes the nucleus. The qualitative genitive phrase and its nucleus are normally noun phrases, while the modifier is normally an adjectival phrase:

    Qualitative_EN.png

  2. Substantial Genitive: In the substantial genitive, the modifier identifies the material of which the nucleus is made up. In Persian, the substantial genitive is always endocentric. A substantial genitive phrase (like its nucleus and modifier) is a noun phrases:

    substantial_EN.png

  3. Explicative Genitive: In the explicative genitive, the nucleus represents the class of the modifier. In Persian, the explicative genitive is always endocentric. A explicative genitive phrase (like its nucleus and modifier) is a noun phrase:

    explicative_EN.png

  4. Possessive Genitive:In the possessive genitive, the nucleus belongs or appertains to the modifier. In Persian, the possessive genitive is always endocentric. The nucleus and modifier of the possessive genitive (like the genitive phrase itself) are normally noun phrases:

    possessive_EN.png

  5. Comitative Genitive:n the comitative genitive, the modifier identifies a process, which accompanies the nucleus. In Persian, the comitative genitive is always endocentric and used syndetical. The comitative genitive phrase (like its nucleus and modifier) is a noun phrase in the singular:

    comitative_EN.png

Syntax of Genitive

Genitive phrases are normally syndetical (meaning that they have a conjunction). Nevertheless, some qualitative genitive phrases are used asyndetically (often regarding to phonological reasons): /rezɒ bærɒhæni/ رضا براهنی, /mærd-i irɒni/ مردی ایرانی

genitive phrases cannot contain many constituents. Nevertheless, they can be interlaced:

  1. Genitive phrases can be used as modifiers of other genitive phrases:

    modifiers_of_other_genitive.png

  2. Qualitative genitive phrases can also become nuclei of other genitive phrases:

    nuclei_of_other_genitives.png

In general, if the nucleus ends in /ɒ/, /u/ or /e/, then the letter ِ /e/ becomes ی /je/:

e_to_ye.png

Recognition of conjunction /e/ with BERT-BiLSTM neural network

Installation

We provide instructions how to install dependencies via pip. First, clone the repository locally:

git clone https://github.com/HRSadeghi/Kasreh_ezafeh.git

Change the current directory to NeuralPersianPoet:

cd Kasreh_ezafeh

Now, prepare environment:

pip install -r requirements.txt

About

In this repository, we provide a neural model based on BERT and BiLSTM neural networks, which can recognize the Kasreh Ezafeh (Genitive Conjunction /e/) in a Persian sentence or text.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages