# Generic Quantifier Labels?

**URL:** <https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006>\
**Category:** ERG\
**Tags:** mrs\
**Created:** [December 15, 2023, 3:10pm UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006 "2023-12-15T15:10:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecconrad](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@ecconrad](https://delphinqa.ling.washington.edu/u/ecconrad)\
**Post date:** [December 15, 2023, 3:10pm UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/1 "2023-12-15T15:10:05Z")

</div>

I’m looking for some generic quantifier labels for my generation project. I tried digging around in the SEMI but couldn’t quite figure it out. I’d like the following types of labels:

1. A generic quantifier label that’s underspecified between all quantifiers, so if my referring expression uses this label as the quantifier I’ll get back a huge number of phrases with all sorts of quantifiers

2. A generic quantifier label that’s “less generic,” and only gives me back a more “reasonable” set of things (e.g. ‘the’, ‘a’, and maybe a few others)

3. A quantifier label for implicit quantification that won’t show up as an explicit token in the final generated phrase but still allows me to generate

I think at one point I had something like #1 but I can’t remember if there was an existing label for it or if I had to create one and I can’t find what I did before. Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![bond](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@bond](https://delphinqa.ling.washington.edu/u/bond)\
**Post date:** [December 16, 2023, 4:03am UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/2 "2023-12-16T04:03:11Z")

</div>

I think you’ll find what you want in erg.semi.

---

<div class="post-metadata">

**Author:** ![Dan](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@Dan](https://delphinqa.ling.washington.edu/u/Dan)\
**Post date:** [December 16, 2023, 9:07pm UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/3 "2023-12-16T21:07:19Z")

</div>

@bond is right to point you to the file erg/etc/erg.smi, which contains a section introduced by “predicates:”, where you’ll find several useful abstract predicates defined. For your #1, try using the predicate abstract\_q (which will give you a lot of outputs), and for number #2, try def\_udef\_a\_q (which also produces bare plurals). For #3, I think you want implicit\_q which will give you bare plurals for count nouns as in “cats appeared” and no-determiner NPs for mass nouns as in “rice appeared”.

---

<div class="post-metadata">

**Author:** ![ecconrad](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@ecconrad](https://delphinqa.ling.washington.edu/u/ecconrad)\
**Post date:** [December 18, 2023, 4:21pm UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/4 "2023-12-18T16:21:21Z")

</div>

Thanks! `abstract_q` did indeed give me a lot of outputs, but `def_udef_a_q` didn’t seem to work.

I think it might be an issue with PyDelphin so maybe @goodmami has some insight.

When I tried to generate with `def_udef_a_q` I get the following error:

```auto
delphin.semi.SemIError: no valid synopsis for def_udef_a_q()

```

And I think the issue is that `def_udef_a_q`, while it is mentioned in `erg.smi` is indeed not one of the listed predicates in `abstract.smi` so it may be unable to find the synopsis as a result of this. Not sure, though.

I did, however, see `def_udef_some_a_no_q` in `abstract.smi` so I tried just using that, but got a different error:

```auto
NOTE: EP 'def_udef_some_a_no_q' is unknown in the semantic index
WARNING: EP 'def_udef_some_a_no_q' is not covered

```

I can’t really tell if this is a PyDelphin issue or something deeper with the ERG.

---

<div class="post-metadata">

**Author:** ![Dan](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@Dan](https://delphinqa.ling.washington.edu/u/Dan)\
**Post date:** [December 18, 2023, 5:23pm UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/5 "2023-12-18T17:23:10Z")

</div>

These abstract quantifiers were added to erg.smi for the 2023 release of the ERG, so I guess you’re probably still using the 2020 release. If you can easily upgrade (via SVN), it may be worthwhile.

---

<div class="post-metadata">

**Author:** ![goodmami](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/g/b5e925/32.png) [@goodmami](https://delphinqa.ling.washington.edu/u/goodmami)\
**Post date:** [December 20, 2023, 6:11am UTC](https://delphinqa.ling.washington.edu/t/generic-quantifier-labels/1006/6 "2023-12-20T06:11:22Z")

</div>

If you want to use the predicate hierarchy for some underspecifications of quantifiers, you might read how we solved the problem for [my dissertation](https://goodmami.org/static/goodman-dissertation.pdf) work in Section 2.5 (p27) and Appendix A.2. Actually the `def_udef_a_q` that @Dan mentioned is the one we were adding manually (I was working with an earlier version of the grammar).

> [@ecconrad](#):
>
> When I tried to generate with `def_udef_a_q` I get the following error:
> 
> ```auto
> delphin.semi.SemIError: no valid synopsis for def_udef_a_q()
> 
> ```
> 
> And I think the issue is that `def_udef_a_q`, while it is mentioned in `erg.smi` is indeed not one of the listed predicates in `abstract.smi` so it may be unable to find the synopsis as a result of this. Not sure, though.

I think that’s basically it. If you got that error message, then PyDelphin recognized the predicate you gave it, but could not find any synopses. If the predicate were not recognized at all, you’d get a different message. PyDelphin does not infer synopses through the hierarchy and instead only returns those specified directly for a predicate, so you’ll need some custom code to deal with that.
