Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pseudogen
#1
I am having some troubles using pseudogen. It generates pseudo code from python source code, a nice trick.. You can use the basic version or the Docker image. I choose to use the Docker image because a lot of the trivial stuff is already done for you. The link for that is now shown below.

https://github.com/delihiros/pseudogen/b.../README.md

I have been able to get it to run. The output of pseudocode is separated from the python source so one must a a rather tedious matchup of python source code and the associated pseudocode.

The two lines that I use are shown now

  ../train-pseudogen.sh -p all.code -e all.anno
  ../run-pseudogen.sh -f tune/travatar.ini
  # input Python code you want to translate
  # in some environments, you may need to press Ctrl+D few times in order to start tranlating
My first question that I thought pseudogen used a graphical user interface and this is not one, it is strictly command line.

The second question is what is this command for:

wget -O- http://ahclab.naist.jp/pseudogen/en-django.tar.gz | tar zxvf -
  mv en-django/all.* .
?

Why do we need en-django at all? In the Docker image in the link, when one runs the image at the link the containers shown is a linux system with a en-django folder. But again, why do we need to get it? It is there already.


As I have said my preference is for the Docker image since so much has been set up for you in the docker image.

I think there is something that I am missing and I wish someone could tell how to get it to run with a gui and reliably.

Any help appreciated.

Respectfully,


ErnestTBass
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020