[developers] Updating [incr tsdb()] profiles
Emily M. Bender
ebender at uw.edu
Fri Sep 20 21:09:15 CEST 2019
Thanks, Mike! I will give that a try (soon, I hope...)
On Thu, Sep 19, 2019 at 8:15 PM goodman.m.w at gmail.com <goodman.m.w at gmail.com>
> Hi Emily,
> Sorry I'm probably too late for your demo, but PyDelphin is able to read
> and write to any schema you give it, and "refreshing" profiles to new
> schemas is an expected use case. This information exists in the API
> documentation (
> but unfortunately has not yet made its way to a more user-friendly guide.
> As long as the changes are minor (inserting empty columns or moving
> columns around within a single file), there is no data loss. With PyDelphin
> v1.0, the command looks like this:
> delphin mkprof --refresh --relations path/to/updated/relations
> This will overwrite the profile using the given relations file as its
> schema. Add the --gzip option if you want non-empty files (except
> 'relations') to be gzipped, otherwise they will be written in plain text.
> For more information about options, run the following:
> delphin mkprof --help
> Hope that helps!
> On Thu, Sep 19, 2019 at 11:56 PM Emily M. Bender <ebender at uw.edu> wrote:
>> Thanks for the speedy reply! When I try double-click, I get a message in
>> the *common-lisp* buffer saying that the profile is out of date.
>> Attempting the pathway you suggested above resulted in a complaint of an
>> arity mismatch in `item'.
>> For context: This is for a demo I'm doing today to show a bunch of field
>> linguists what grammar engineering could potentially do for them. So I've
>> been trying to dust off the wambaya profiles, but I have work arounds.
>> On Thu, Sep 19, 2019 at 7:25 AM Stephan Oepen <oe at ifi.uio.no> wrote:
>>> technically, these profiles are considered read-only, because [incr
>>> tsdb()] will refuse to write to out-of-date database schemas.
>>> but i would have expected double-click (to parse interactively) to work
>>> ... what happens?
>>> to treebank, on the other hand, does require write access. it might
>>> work to (a) make a copy of the profile, (b) throw away all files except
>>> ‘item’, (c) copy in a current ‘relations’ file, and initialize an empty set
>>> of new relations via a command like ‘tsdb -home . -query "select i-input"’.
>>> good luck :-)! oe
>>> On Thu, 19 Sep 2019 at 16:09 Emily M. Bender <ebender at uw.edu> wrote:
>>>> Dear all,
>>>> Do we have a simple way to take an old (circa 2010) set of profiles and
>>>> update them to the current expected database format? The profiles in
>>>> question are the ones I put together for Wambaya and I can still open them
>>>> with the modern [incr tsdb()] but I can't do everything I'd like (double
>>>> click to send for parsing, annotating trees).
>>>> Emily M. Bender
>>>> Howard and Frances Nostrand Endowed Professor
>>>> Department of Linguistics
>>>> Faculty Director, CLMS
>>>> University of Washington
>>>> Twitter: @emilymbender
>> Emily M. Bender
>> Howard and Frances Nostrand Endowed Professor
>> Department of Linguistics
>> Faculty Director, CLMS
>> University of Washington
>> Twitter: @emilymbender
> -Michael Wayne Goodman
Emily M. Bender
Howard and Frances Nostrand Endowed Professor
Department of Linguistics
Faculty Director, CLMS
University of Washington
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the developers