Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most probalbe parse first #4

Closed
olpa opened this issue Apr 12, 2020 · 2 comments
Closed

Most probalbe parse first #4

olpa opened this issue Apr 12, 2020 · 2 comments

Comments

@olpa
Copy link
Owner

olpa commented Apr 12, 2020

All the parses for "sina mije sona .":

UseCl (Greeting (AdjNP Sina_Pron (AdjAP (UseA Mije_A) (UseA Sona_A))))
UseCl (Greeting (AdjNP (AdjNP Sina_Pron (UseA Mije_A)) (UseA Sona_A)))
UseCl (Greeting (AdjNP (AdjnpNP Sina_Pron (UseN Mije_N)) (UseA Sona_A)))
UseCl (Greeting (AdjnpNP Sina_Pron (AdjNP (UseN Mije_N) (UseA Sona_A))))
UseCl (Greeting (AdjnpNP Sina_Pron (AdjnpNP (UseN Mije_N) (UseN Sona_N))))
UseCl (Greeting (AdjnpNP (AdjNP Sina_Pron (UseA Mije_A)) (UseN Sona_N)))
UseCl (Greeting (AdjnpNP (AdjnpNP Sina_Pron (UseN Mije_N)) (UseN Sona_N)))
UseCl (PredAP Sina_Pron (AdjAP (UseA Mije_A) (UseA Sona_A)))
UseCl (PredNP Sina_Pron (AdjNP (UseN Mije_N) (UseA Sona_A)))
UseCl (PredNP Sina_Pron (AdjnpNP (UseN Mije_N) (UseN Sona_N)))
UseCl (PredVP Sina_Pron (AdjVP (UseV Mije_V) (UseA Sona_A)))

All are valid interpretations, but try to make this one come first:

UseCl (PredNP Sina_Pron (AdjNP (UseN Mije_N) (UseA Sona_A)))
@olpa
Copy link
Owner Author

olpa commented May 18, 2020

Let's minimize number of alternate parses first. As of 18 May 2020:

$ python3 utils/count_parses.py 
...
   72  tplangL07G04
   80  tplangL10E02
   84  tplangL10E05
  136  tplangL13E02
  138  tplangL16E04
  229  tplangL12T06
  324  tplangL14G02
  378  tplangL06basedRecurse
  504  tplangL17StoryComma
  649  tplangL07E06
  744  tplangL07E01
 1176  tplangL17G01
 4006  tplangL08E06
 4368  tplangL17StoryMuAsWord
 7821  tplangL14E01
 65584  tplangL16E05

@olpa
Copy link
Owner Author

olpa commented Jun 5, 2020

I don't need probabilities of parses anymore. For me, it is enough to minimize number of parses.

> parse "sina mije sona ."
UseCl (Clause Sina_Pron (PredNP (AdjNP (UseN Mije_W) (UseA Sona_W))))
UseCl (ClausePred (PredNP (AdjNP (AdjNP Sina_Pron (UseA Mije_W)) (UseA Sona_W))))
UseCl (ClausePred (PredNP (AdjNP (AdjNP (UseN Sina_W) (UseA Mije_W)) (UseA Sona_W))))

Number of parses now (6 June 2020):

$ python3 utils/count_parses.py 
    1  tplangL07G05
    1  tplangL07G07
...
    8  tplangL16E01
    9  tplangL12T01
   10  tplangL12T06
   10  tplangL17G01
   12  tplangL11G05X01
   12  tplangL14G02
   14  tplangL07G04
   20  tplangL10E02
   28  tplangL06basedRecurse
   28  tplangL07E01
   36  tplangL16E05
   36  tplangL17StoryMuAsWord
   40  tplangL10T02X
   72  tplangL14E01

@olpa olpa closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant