<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear Stefan - thanks!
      <br>
      I understand. About the longer explanation, I hesitate to make you
      spend the time laying this to me - maybe there is some document
      out there? Surely this is not the first time this has cropped up.
      <br>
      Otherwise - yes, I would love to hear that!
      <br>
      <br>
      (BTW, one obvious hack to solve this problem would be to encode
      the same corpus several times, ordering the input data in
      different ways. Maybe that IS the most efficient solution in terms
      of time).
      <br>
      <br>
      Best,
      <br>
      Ruprecht
      <br>
      <br>
      Am 20.10.2017 um 18:18 schrieb Stefan Evert:
      <br>
    </p>
    <blockquote type="cite" style="color: #000000;">
      <blockquote type="cite" style="color: #000000;">On 20 Oct 2017, at
        17:04, Ruprecht von Waldenfels <a class="moz-txt-link-rfc2396E"
          href="mailto:ruprecht.waldenfels@gmx.net">&lt;ruprecht.waldenfels@gmx.net&gt;</a>
        wrote:
        <br>
        <br>
        a basic question: how do I sort on a structural attribute?
        <br>
        <br>
        Something like the following doesn't seem to work.
        <br>
        <br>
        "in" sort by match.meta_year
        <br>
        <br>
        with meta_year being a structural attribute ( i.e., an xml
        element enclosing a stretch of text).
        <br>
      </blockquote>
      Short answer: you can't.
      <br>
      <br>
      Long answer: you can't because p-attributes and s-attributes use
      entirely different data structures and API functions. The code
      underlying "sort" and "count" commands only handles p-attributes;
      we don't plan to extend it to s-attributes because it's more than
      complicated enough already as it is. The code underlying "group"
      includes special branches for s-attributes because users often
      want to be able to do frequency counts for them.
      <br>
      <br>
      Ziggurat is going to put and end to this divide between
      p-attributes and s-attributes, but it's still some way off …
      <br>
      <br>
      Best,
      <br>
      Stefan
      <br>
      <br>
      PS: If you really need to sort by an s-attribute, you can use a
      clever combination of "tabulate", Unix "sort" and "undump".  Let
      me know if you want a longer explanation of this approach.
      <br>
      <br>
      _______________________________________________
      <br>
      CWB mailing list
      <br>
      <a class="moz-txt-link-abbreviated"
        href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>