A. Basic Rules of Work Ethics B. Confidentiality, Privacy, and Transparency C. Organization of Working Time: General Provisions D. Organization of Working Time: Daily Provisions
How to write trained Word2Vec model to CSV with DeepLearning4j
I used DeepLearning4j to train word2vec model. Then I had to save the dictionary to CSV so I can run some clustering algorithms on it. Sounded like a simple task, but it took a while, and here is the code to do…
How to parse dynamic HTML content using Python
In the previous tutorial we learning how to parse HTML in Python. In the Python tutorial we are going to learn to to parse dynamic HTML content generated by JavaScript, jQuery, Ajax, Angular or other dynamic pages technology. What’s the problem with…
How to parse emails from HTML in Python
In this tutorial we are going to get an idea of how to parse emails from HTML using Python. Python is a scripting language easy to get started and is perfect for tasks like parsing emails. So let’s elaborate an approach…
Update XML node in Python
I like python because it’s minimalistic and elegant.Let’s see how to update an XML node using ElementTree. We use CD catalog in XML as a datasource. Here is the python script itself. And the output is the following:
Remove duplicate lines from a file in Scala
How to remove duplicate lines from csv or txt file? The answer is quite straightforward: you basically need BufferedReader and BufferedWriter, and this also works for large files quite well.
Python networking example
Here is a small example demonstrating get requests in Python. And the code itself