NLTK plot dependency graph - nltk

I'd like to plot graphs like this with NLTK. But I am not sure where is such an example in NLTK. Could anybody show some example NLTK code to plot such kind of figures? Thanks.
http://universaldependencies.org/introduction.html

Related

How to use mxnet RNN symbol to generate lstm

I've found RNN symbol is added in mxnet v0.7 python lib.
Now, I'm trying to use it to impl lstm in example/rnn with python.
But I have no idea because there's no document or any information of the input and output.
Can anyone give me any advice?
thanks
I think they have already given a simple example on how to use RNN symbol to build LSTM (they have mode option for this, i.e., mode='lstm'). Here is the example, check it out: https://github.com/dmlc/mxnet/blob/master/example/rnn/rnn_cell_demo.py

Rapidminer Studio: how to export ROC curve

Using RapidMiner Studio 6.5, the X-Validation operator is a part of my process. The operator automatically produces ROC curves as a part of validation results.
How can I export the picture of ROC curves?
Windows' Print Screen command seems a bit too stone-aged.
Under
File -> Print/Export Images
You should find what you are looking for.
As well as David's answer you can also install the Reporting extension from the marketplace and with a bit of configuring you can export the ROC curves into a report as you run your process.

Word of a particular domain from Wordnet

I want to get all the words from Wordnet from a particular domain. What is the best way to do it? I have searched in NLTK Python package, but there is nothing there. Is there any API for that?

No array2table in Octave

I would like to have function array2table in Octave, same as there is in Matlab.
How to implement it? Any ready code snippet around?
That function does not exist, Octave does not even have the table class which is very much recent in Matlab.
Instead, consider using dataframe which is based on R's data.frame design. Note that you will need to install Octave's dataframe package.

Introduction to OCR

Someone gave me a trove full of amazing information. It is 200MB .tiff images of scanned announcements that goes back until the 40's. I want to digitize this, but I have no knowledge whatsoever about OCR. Some of the early material is barely readable by a human, let alone a machine. It is also in Hebrew.
I'm looking for advice on how to approach this. A good suggestion about books, articles, code libraries or software (all of them should be available freely on the web). I'm proficient in C++ and Python and can pick up another language if it is needed.
Thank you.
This sounds like a great task for Python, using an OCR library. A quick Google search turned up pytesser:
PyTesser is an Optical Character Recognition module for Python. It takes as input an image or image file and outputs a string.
PyTesser uses the Tesseract OCR engine, converting images to an accepted format and calling the Tesseract executable as an external script. A Windows executable is provided along with the Python scripts. The scripts should work in other operating systems as well.
...
Usage Example
>>> from pytesser import *
>>> image = Image.open('fnord.tif') # Open image object using PIL
>>> print image_to_string(image) # Run tesseract.exe on image
fnord
>>> print image_file_to_string('fnord.tif')
fnord