# Definitions of specific relations in a profile

**URL:** <https://delphinqa.ling.washington.edu/t/definitions-of-specific-relations-in-a-profile/441>\
**Category:** \[incr tsdb()\]\
**Created:** [March 26, 2020, 10:46pm UTC](https://delphinqa.ling.washington.edu/t/definitions-of-specific-relations-in-a-profile/441 "2020-03-26T22:46:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kphowell](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/k/3be4f8/32.png) [@kphowell](https://delphinqa.ling.washington.edu/u/kphowell)\
**Post date:** [March 26, 2020, 10:46pm UTC](https://delphinqa.ling.washington.edu/t/definitions-of-specific-relations-in-a-profile/441/1 "2020-03-26T22:46:40Z")

</div>

I’m calculating accuracy over a treebanked profile. One thing I’d like to know is for how many items I accepted a parse, given the number of test items that a parse was available.

I generated the profiles using the -f option and the only results in the profile are the trees I selected while treebanking. I want to count not only the test items I accepted (and therefore have a result for) as well as the ones I rejected, but had a parse available. I’m trying to figure out if I can get this from the parse file. The values below seem promising, but I don’t understand what the terms tedeges, eedges, ledges, sedges, redges mean. Can someone define them (these come from the relations file, under parse)?

tedges :integer # type-0 entries in (visible) forest  
eedges :integer # type-1 entries in (visible) forest  
ledges :integer # type-2 entries in (visible) forest  
sedges :integer # type-3 entries in (visible) forest  
redges :integer # type-4 entries in (visible) forest

From what I can tell, a sentence that didn’t have any parses available when treebanking has a value of 0 for type-1 through type-4, and a non-zero value if parses were available whether or not I accepted/rejected them. Type-0 is zero if the grammar didn’t have lexical coverage over the sentence and non-zero if it did. So I’m guessing tedges have something to do with lexical parsing and the other edges would be expected if a valid tree was found. Based on this, I think I can check for a non-zero value in type-1 (or one of the others) to know if the grammar could have parsed the sentence. Can someone confirm or reject that intuition?

---

<div class="post-metadata">

**Author:** ![sweaglesw](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@sweaglesw](https://delphinqa.ling.washington.edu/u/sweaglesw)\
**Post date:** [March 26, 2020, 11:12pm UTC](https://delphinqa.ling.washington.edu/t/definitions-of-specific-relations-in-a-profile/441/2 "2020-03-26T23:12:32Z")

</div>

Off hand I’m not sure if tedges is a reliable indicator of lexical coverage, but maybe? To your main question: yes, the existence of syntactic edges in the recorded chart means parsing before unpacking reached the root condition at least once. Unfortunately, packing means there can be cases where it looks a tree would exist but when you replay the derivation without the loss of information incurred by packing it turns out to be inconsistent. This is especially true when packing under generalization is used, which is the default in ace. I _think_ if you disable generalization packing by passing —disable-generalization to ace then the inexactness will only affect the number of readings, not how many whether there are any at all, but I’m not 100% sure about that. The safest way to get an exact number of how many sentences are parseable is just to parse in 1-best mode with a large RAM limit, rather than to record a full forest. In that scenario, you would just count the items where readings \> 0.

Best, Woodley

---

<div class="post-metadata">

**Author:** ![kphowell](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/k/3be4f8/32.png) [@kphowell](https://delphinqa.ling.washington.edu/u/kphowell)\
**Post date:** [March 26, 2020, 11:23pm UTC](https://delphinqa.ling.washington.edu/t/definitions-of-specific-relations-in-a-profile/441/3 "2020-03-26T23:23:20Z")

</div>

Thanks Woodley. I had thought about just parsing the profile without the -f option and seeing which items had results (I think that’s comparable to what you described), but then I thought that maybe it was better/more reliable to make sure all of the counts I’m using come from the same profile (in case eg. a RAM limit had some effect). But this makes sense. Thanks!
