# Logon\_do command not found

**URL:** <https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826>\
**Category:** Uncategorized\
**Tags:** mrs\
**Created:** [September 26, 2022, 11:35am UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826 "2022-09-26T11:35:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumyapokale](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@soumyapokale](https://delphinqa.ling.washington.edu/u/soumyapokale)\
**Post date:** [September 26, 2022, 11:35am UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/1 "2022-09-26T11:35:15Z")

</div>

logon\_do --bitext /path/to/bitext.txt /path/to/profile\_top  
while running it is giving me error logon\_do not found

---

<div class="post-metadata">

**Author:** ![arademaker](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/arademaker/32/45_2.png) [@arademaker](https://delphinqa.ling.washington.edu/u/arademaker)\
**Post date:** [September 26, 2022, 12:06pm UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/2 "2022-09-26T12:06:19Z")

</div>

Can you provide more details about your environment? How did you install the tools? What is your OS?

---

<div class="post-metadata">

**Author:** ![soumyapokale](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@soumyapokale](https://delphinqa.ling.washington.edu/u/soumyapokale)\
**Post date:** [September 29, 2022, 12:47am UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/3 "2022-09-29T00:47:45Z")

</div>

my os is linux  
in logon\_do  
when I make profile  
after that when I try to parse it shows

soumya@soumya-VirtualBox:~/path/to/profile\_top$ logon\_do --grammar jaen --task smrs  
usage: logon\_do [-a|–ascii \<a.txt\>] [-b|–bitext \<b.txt\>] [-c|–count] [-d|–debug] [-e|–edges] [-t|–tedges] [-l|–limit] [-s|–settings \<s.lisp\>] -g|–grammar \<jaen|enen\> -t|–task \<smrs|tmrs|pmrs|gmrs|vmrs|omrs|imrs\> []

why it shows usage ? and what I can do ?

---

<div class="post-metadata">

**Author:** ![soumyapokale](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@soumyapokale](https://delphinqa.ling.washington.edu/u/soumyapokale)\
**Post date:** [September 29, 2022, 1:56am UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/4 "2022-09-29T01:56:22Z")

</div>

[DelphinTools · delph-in/docs Wiki · GitHub](https://github.com/delph-in/docs/wiki/DelphinTools)

this is the link i had downloaded from here and I m stuck in using logon\_do

---

<div class="post-metadata">

**Author:** ![arademaker](https://delphinqa.ling.washington.edu/user_avatar/delphinqa.ling.washington.edu/arademaker/32/45_2.png) [@arademaker](https://delphinqa.ling.washington.edu/u/arademaker)\
**Post date:** [September 29, 2022, 2:03pm UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/5 "2022-09-29T14:03:41Z")

</div>

What are you trying to do? I believe that most (if not all) you would do with logon\_do can be done with pydelphin library nowadays.

Do you know about pydelphin?

@ebender and @bond may know more about this logon\_do tool.

---

<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:** [September 29, 2022, 2:46pm UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/6 "2022-09-29T14:46:55Z")

</div>

The `logon_do` scripts were created by Eric Nichols many years ago to help with batch processing of profiles, mainly for machine translation tasks. For your immediate problem, I think you have not done the [shell environment setup](https://github.com/delph-in/delphintools#shell-environment-setup) step, or if you have, you have not started a new shell session or run (`source ~/.bashrc`) to initialize those settings.

The scripts are archived on GitHub but I don’t think they are necessarily the easiest tools to use these days. As @arademaker said, you can try [PyDelphin](https://github.com/delph-in/pydelphin/):

- `delphin mkprof` (for creating test suites for processing)
- `delphin process` (for parsing, transferring, and generating)

[ACE](http://sweaglesw.org/linguistics/ace/) with [art](http://sweaglesw.org/linguistics/libtsdb/art) (and `mkprof`, included with `art`) is also very capable for performing these actions.

---

<div class="post-metadata">

**Author:** ![sriramc](https://delphinqa.ling.washington.edu/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@sriramc](https://delphinqa.ling.washington.edu/u/sriramc)\
**Post date:** [September 29, 2022, 5:46pm UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/7 "2022-09-29T17:46:46Z")

</div>

Thanks @goodmami and @arademaker for pointing out the use of Pydelphin instead of ‘logon\_do’.

Can you please guide what is the equivalent process for achieving following command in ‘logon\_do’ in pydelphin.

```auto
Calling `logon_do` in the following manner will create the profile `/path/to/profile_top/smrs` and parse the source sentences in `bitext/`original with the Japanese grammar Jacy.

    $ logon_do --grammar jaen --task smrs /path/to/profile_top

If `/path/to/profile` is omitted, `logon_do` will default to the current directory. So the following command is equivalent:

    $ cd /path/to/profile_top && logon_do --grammar jaen --task smrs

Once parsing is complete, the profile `smrs` will contain the parse results:

    $ ls /path/to/profile/smrs
    analysis decision fold item-phenomenon output parse preference result run set update
    daughter edge item item-set parameter phenomenon relations rule score tree

```

Thanks,  
Sriram

---

<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:** [September 30, 2022, 7:36pm UTC](https://delphinqa.ling.washington.edu/t/logon-do-command-not-found/826/8 "2022-09-30T19:36:50Z")

</div>

I’m not sure if there’s direct parallels for each `logon_do` command, but here’s an example (assumes you are translating from Japanese to English and your bitext is split into separate `source.txt` and `target.txt` files):

```auto
$ # create the source-side test suite to be parsed
$ delphin mkprof --input source.txt --relations path/to/relations source
$ # parse source profile with Jacy
$ delphin process -g jacy.dat source/
$ # transfer with Jaen
$ delphin process -g jaen.dat --transfer -p 0 --source source/ transfer
$ # generate with ERG
$ delphin process -g erg.dat --generate -p 0 --source transfer/ target

```
