• Overview of Punjabi Grammar

Phrase Chunker

Phrase chunking is to group words into word groups known as phrases. Typical chunks are noun phrase (NP) and verb phrase (VP). Noun phrase can consist of one or more adjectives and a noun/pronoun. A typical verb phrase can consist of a main verb, operator verbs, and an auxiliary verb.A phrase chunker (also simply known as a chunker) assigns tags to the word sequences in a sentence.

A phrase tag, similar to a POS tag, is an abbreviated form of the phrase class (and optional grammatical information). For instance, in this phrase tagger ‘NPD’ tag is used for noun phrase (NP) having head word (noun/pronoun) in direct (D) case. Like POS taggers, most of the phrase chunkers use similar tags. However, the number of tags in a chunker depends upon its application area.

How to use the Phrase Chunker?

Specify the sentence whose phrase groups you want to know. The phrase chunker will then produce the output for that sentence with its words (along with their POS tags) grouped together into different phrases.

The following examples show the output produced by this phrase chunker for the specified input sentences:
  • Input:
    ਮੁੰਡਾ ਸਕੂਲ ਜਾ ਰਿਹਾ ਸੀ।
    muṇḍā sakūl jā rihā sī.
    The boy was going to school.

    Output:
    (NPDG1( NPD1( ਮੁੰਡਾ_NNMSD )) NPDG2( NPD2( ਸਕੂਲ_NNMXD )) VPG1( VP1( ਜਾ_VBMAXSS3XINO ਰਿਹਾ_VBORMSXXPINIA ਸੀ_VBAXXXX2 )) ।_Sentence )

    (NPDG1( NPD1( muṇḍā_NNMSD )) NPDG2( NPD2( sakūl_NNMXD )) VPG1( VP1( jā_VBMAXSS3XINO rihā_VBORMSXXPINIA sī_VBAXXXX2 )) ._Sentence )

  • Input:
    ਅੱਜ ਮੀਂਹ ਪੈ ਜਾਂਦਾ ਤਾਂ ਚੰਗਾ ਸੀ।
    ajj mīṃh pai jāndā tāṃ caṅgā sī.
    It would have been better had it rained today.

    Output:
    (AvP1( ਅੱਜ_AVU )NPDG1( NPD1( ਮੀਂਹ_NNMXD )) VPG1( VP1( ਪੈ_VBMAXSS3XINO ਜਾਂਦਾ_VBOPMSXXXINDA )) ਤਾਂ_CJS AjPG1( AjP1( ਚੰਗਾ_AJIMSD )) VPG2( VP2( ਸੀ_VBAXXXX2 )) ।_Sentence )

    (AvP1( ajj_AVU )NPDG1( NPD1( mīṃh_NNMXD )) VPG1( VP1( pai_VBMAXSS3XINO jāndā_VBOPMSXXXINDA )) tāṃ_CJS AjPG1( AjP1( caṅgā_AJIMSD )) VPG2( VP2( sī_VBAXXXX2 )) ._Sentence )

Ready to use the Phrase Chunker?

Want to know how a sentence is structured internally? What are its consitutents and which order do they follow?
Give a Punjabi sentence as input and then analyze the output produced by this phrase chunker to understand how the words are grouped together into different phrases.
Start using the Phrase Chunker now



Feedback
* Required field
Name: *
Email:
Comments: *