# ACE LUI visualizing lemmas instead of surface forms (YY)

**URL:** <https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925>\
**Category:** ACE\
**Created:** [May 16, 2023, 9:28am UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925 "2023-05-16T09:28:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![olzama](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/olzama/32/6_2.png) [@olzama](https://delphinqa.ling.washington.edu/u/olzama)\
**Post date:** [May 16, 2023, 9:28am UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925/1 "2023-05-16T09:28:49Z")

</div>

Not sure if this was asked before… I didn’t find anything.

I use YY-input mode for the SRG, for example (scroll to the right):

```auto
(1, 0, 1, <0:4>, 1, "poco" "poco", 0, "rg", "rg" 0.6631234668847097) (2, 1, 2, <5:12>, 1, "importar" "importa", 0, "vmip3s0", "vmip3s0" 0.9929577464788732) (3, 2, 3, <12:13>, 1, "." ".", 0, "fp", "fp" 1.0)

```

LKB-FOS displays the correct surface forms:

![Screen Shot 2023-05-16 at 11.26.59 AM](https://delphinqa.ling.washington.edu/uploads/default/original/1X/41c4ed408a7c1744569f3426feb5ed433a4d3dbc.png)

But ACE, whe the -l (LUI) switch, displays the lemmas:

![Screen Shot 2023-05-16 at 11.27.04 AM](https://delphinqa.ling.washington.edu/uploads/default/original/1X/3b155bd3b2822a455afe6c72e15a9708ab4a480d.png)

Can I make ACE display the surface forms also? The LKB relies on some YY interface; is it doing something additional to ensure the surface forms are displayed? @johnca

---

<div class="post-metadata">

**Author:** ![johnca](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@johnca](https://delphinqa.ling.washington.edu/u/johnca)\
**Post date:** [May 16, 2023, 9:24pm UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925/2 "2023-05-16T21:24:38Z")

</div>

The LKB always displays surface forms in trees (whether that’s through its native GUI or via LUI). Therefore, when I added the new YY interface to LKB-FOS I made sure that the LKB picks up the `surface` field from each token.

---

<div class="post-metadata">

**Author:** ![olzama](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/olzama/32/6_2.png) [@olzama](https://delphinqa.ling.washington.edu/u/olzama)\
**Post date:** [May 17, 2023, 4:48pm UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925/3 "2023-05-17T16:48:07Z")

</div>

I wonder if I am doing something wrong with ACE, that it doesn’t do that…

---

<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:** [May 19, 2023, 3:18pm UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925/4 "2023-05-19T15:18:55Z")

</div>

I hunted through the ACE code and discovered that ACE’s YY input reader just discard’s the 2nd string in the YY format, with a comment “another string, e.g. surface form for the SRG”. I suppose when I wrote that, there weren’t any usable grammars available to play with that required a different value for the 2nd string there, so I didn’t implement it. It doesn’t look like a one-liner to figure the right way to carry that data through the system, either. Does that string have any other use?

Upshot: there’s no way to display those surface forms in LUI driven by ACE at the moment.

---

<div class="post-metadata">

**Author:** ![olzama](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/olzama/32/6_2.png) [@olzama](https://delphinqa.ling.washington.edu/u/olzama)\
**Post date:** [May 19, 2023, 4:40pm UTC](https://delphinqa.ling.washington.edu/t/ace-lui-visualizing-lemmas-instead-of-surface-forms-yy/925/5 "2023-05-19T16:40:36Z")

</div>

> [@sweaglesw](#):
>
> Does that string have any other use?

I can’t think of any other use immediately, so perhaps this is fine (especially since I can now get that from the LKB!) I _think_ fftb displays the surface form (can’t check right now); that would be important…
