RussianRevolutionManager.ipynb

In [1]:
from xv.history.managers import RussianRevolutionManager
In [2]:
ke = RussianRevolutionManager(verbose = False)
In [3]:
ke.printProblemTypes()
0. _problem_random_question_from_rich_text
1. _problem_random_saq_question
2. _problem_random_mcq_question
In [4]:
ke.getRandomProblem(problem_type = -1)
Out[4]:
What was the Bolsheviks' initial policy regarding the Constituent Assembly?
  1. They let the elections take place but required that 90 percent of the seats go to the Bolsheviks
  2. They let the elections take place without interference
  3. They let the elections take place but attempted to manipulate the results
  4. They cancelled the elections
In [5]:
ke.printAnswer()
Out[5]:
2. They let the elections take place without interference
In [6]:
ke.printSolution()
Out[6]:
Question. What was the Bolsheviks' initial policy regarding the Constituent Assembly?
  1. They let the elections take place but required that 90 percent of the seats go to the Bolsheviks
  2. They let the elections take place without interference
  3. They let the elections take place but attempted to manipulate the results
  4. They cancelled the elections


Answer. 2. They let the elections take place without interference
In [ ]:
 
In [8]:
from IPython.display import HTML
n = len(ke._problemTemplates)
max_loop = 4
for j in range(0, max_loop):
    for i in range(n):
        problem_type = i
        display(HTML(f"<h2>problem_type: {problem_type}/{n-1} (loop {j}/{max_loop-1})</h2>"))
        ke.getRandomProblem(problem_type = problem_type, verbose = True)
        display(ke.printProblem())

        display(HTML(f"<h6>Answer:</h6>"))
        display(ke.printAnswer())

        display(HTML(f"<h6>Solution:</h6>"))
        display(ke.printSolution())
        pass

problem_type: 0/2 (loop 0/3)

Problem Template: _problem_random_question_from_rich_text
Fill in the blanks with the given words. Change the form of words if necessary.
nicholas ii, tsar, capital
The Russian Revolution of 1917 centers around two primary events: the February Revolution and the October Revolution. The February Revolution, which removed __________ __________ from power, developed spontaneously out of a series of increasingly violent demonstrations and riots on the streets of Petrograd (present-day St. Petersburg), during a time when the __________ was away from the __________ visiting troops on the World War I front.
nicholas ii, tsar, capital
Answer:
The Russian Revolution of 1917 centers around two primary events: the February Revolution and the October Revolution. The February Revolution, which removed Tsar Nicholas II from power, developed spontaneously out of a series of increasingly violent demonstrations and riots on the streets of Petrograd (present-day St. Petersburg), during a time when the tsar was away from the capital visiting troops on the World War I front.
Solution:
The Russian Revolution of 1917 centers around two primary events: the February Revolution and the October Revolution. The February Revolution, which removed Tsar Nicholas II from power, developed spontaneously out of a series of increasingly violent demonstrations and riots on the streets of Petrograd (present-day St. Petersburg), during a time when the tsar was away from the capital visiting troops on the World War I front.

problem_type: 1/2 (loop 0/3)

Problem Template: _problem_random_saq_question
Government supervised large factories to ensure the ________ .
Answer:
Minimum wages and limited hours of work
Solution:
Question. Government supervised large factories to ensure the ________ .

Answer. Minimum wages and limited hours of work

problem_type: 2/2 (loop 0/3)

Problem Template: _problem_random_mcq_question
Which representative body replaced the Constituent Assembly?
  1. The First Congress of Soviets
  2. The Executive Committee
  3. The Second Congress of Soviets
  4. The Third Congress of Soviets
Answer:
2. The Executive Committee
Solution:
Question. Which representative body replaced the Constituent Assembly?
  1. The First Congress of Soviets
  2. The Executive Committee
  3. The Second Congress of Soviets
  4. The Third Congress of Soviets


Answer. 2. The Executive Committee

problem_type: 0/2 (loop 1/3)

Problem Template: _problem_random_question_from_rich_text
Sort the sentences into a meaningful order:
  1. The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Soviet Union.
  2. The Bolsheviks, who led this coup, prepared their coup in only six months.
  3. By October, the Bolsheviks' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.
  4. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917.
  5. The October Revolution was a much more deliberate event, orchestrated by a small group of people.
Answer:
The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Soviet Union. The October Revolution was a much more deliberate event, orchestrated by a small group of people. The Bolsheviks, who led this coup, prepared their coup in only six months. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917. By October, the Bolsheviks' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.
Solution:
The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Soviet Union. The October Revolution was a much more deliberate event, orchestrated by a small group of people. The Bolsheviks, who led this coup, prepared their coup in only six months. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917. By October, the Bolsheviks' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.

problem_type: 1/2 (loop 1/3)

Problem Template: _problem_random_saq_question
Who was ruling over Russia when the Russian Revolution took place?
Answer:
Tsar Nicholas II.
Solution:
Question. Who was ruling over Russia when the Russian Revolution took place?

Answer. Tsar Nicholas II.

problem_type: 2/2 (loop 1/3)

Problem Template: _problem_random_mcq_question
Who became the Russian foreign minister under Lenin?
  1. Trotsky
  2. Stalin
  3. Dzerzhinsky
  4. Zinoviev
Answer:
1. Trotsky
Solution:
Question. Who became the Russian foreign minister under Lenin?
  1. Trotsky
  2. Stalin
  3. Dzerzhinsky
  4. Zinoviev


Answer. 1. Trotsky

problem_type: 0/2 (loop 2/3)

Problem Template: _problem_random_question_from_rich_text
The words have been interchanged. Please put them in proper places.
provisional government, bolsheviks, soviet
The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Bolsheviks Union. The October Revolution was a much more deliberate event, orchestrated by a small group of people. The Soviet, who led this coup, prepared their coup in only six months. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917. By October, the Soviet' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.
provisional government, bolsheviks, soviet
Answer:
The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Soviet Union. The October Revolution was a much more deliberate event, orchestrated by a small group of people. The Bolsheviks, who led this coup, prepared their coup in only six months. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917. By October, the Bolsheviks' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.
Solution:
The October Revolution (also called the Bolshevik Revolution) overturned the interim provisional government and established the Soviet Union. The October Revolution was a much more deliberate event, orchestrated by a small group of people. The Bolsheviks, who led this coup, prepared their coup in only six months. They were generally viewed as an extremist group and had very little popular support when they began serious efforts in April 1917. By October, the Bolsheviks' popular base was much larger; though still a minority within the country as a whole, they had built up a majority of support within Petrograd and other urban centers.

problem_type: 1/2 (loop 2/3)

Problem Template: _problem_random_saq_question
Name the term which was used for elected Consultative Parliament in Russia?
Answer:
Duma.
Solution:
Question. Name the term which was used for elected Consultative Parliament in Russia?

Answer. Duma.

problem_type: 2/2 (loop 2/3)

Problem Template: _problem_random_mcq_question
In early October 1917 all of the following were true of the Bolsheviks except
  1. They held public debates together with members of the provisional government
  2. Many were still uneasy about going ahead with a coup
  3. The Bolsheviks' Central Committee met and decided to overthrow the provisional government
  4. They used the Smolny Institute as a headquarters
Answer:
1. They held public debates together with members of the provisional government
Solution:
Question. In early October 1917 all of the following were true of the Bolsheviks except
  1. They held public debates together with members of the provisional government
  2. Many were still uneasy about going ahead with a coup
  3. The Bolsheviks' Central Committee met and decided to overthrow the provisional government
  4. They used the Smolny Institute as a headquarters


Answer. 1. They held public debates together with members of the provisional government

problem_type: 0/2 (loop 3/3)

Problem Template: _problem_random_question_from_rich_text
Sort the following into a meaningful sentence:
  1. the democratic process in january and
  2. dictatorship of the proletariat
  3. as a result they formally abandoned
  4. declared themselves the representatives of a
Answer:
As a result, they formally abandoned the democratic process in January 1918 and declared themselves the representatives of a Dictatorship Of The Proletariat.
Solution:
As a result, they formally abandoned the democratic process in January 1918 and declared themselves the representatives of a Dictatorship Of The Proletariat.

problem_type: 1/2 (loop 3/3)

Problem Template: _problem_random_saq_question
Petrograd had led the February Revolution that brought down the ________ .
Answer:
Monarchy in February 1917.
Solution:
Question. Petrograd had led the February Revolution that brought down the ________ .

Answer. Monarchy in February 1917.

problem_type: 2/2 (loop 3/3)

Problem Template: _problem_random_mcq_question
Which is true of the Bolsheviks during August and September 1917?
  1. They split into two factions
  2. Lenin was betrayed by Trotsky
  3. They sought monetary assistance from Britain
  4. They had a strong boost in popular support
Answer:
4. They had a strong boost in popular support
Solution:
Question. Which is true of the Bolsheviks during August and September 1917?
  1. They split into two factions
  2. Lenin was betrayed by Trotsky
  3. They sought monetary assistance from Britain
  4. They had a strong boost in popular support


Answer. 4. They had a strong boost in popular support
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 

Machine Learning

  1. Deal Banking Marketing Campaign Dataset With Machine Learning

TensorFlow

  1. Difference Between Scalar, Vector, Matrix and Tensor
  2. TensorFlow Deep Learning Model With IRIS Dataset
  3. Sequence to Sequence Learning With Neural Networks To Perform Number Addition
  4. Image Classification Model MobileNet V2 from TensorFlow Hub
  5. Step by Step Intent Recognition With BERT
  6. Sentiment Analysis for Hotel Reviews With NLTK and Keras
  7. Simple Sequence Prediction With LSTM
  8. Image Classification With ResNet50 Model
  9. Predict Amazon Inc Stock Price with Machine Learning
  10. Predict Diabetes With Machine Learning Algorithms
  11. TensorFlow Build Custom Convolutional Neural Network With MNIST Dataset
  12. Deal Banking Marketing Campaign Dataset With Machine Learning

PySpark

  1. How to Parallelize and Distribute Collection in PySpark
  2. Role of StringIndexer and Pipelines in PySpark ML Feature - Part 1
  3. Role of OneHotEncoder and Pipelines in PySpark ML Feature - Part 2
  4. Feature Transformer VectorAssembler in PySpark ML Feature - Part 3
  5. Logistic Regression in PySpark (ML Feature) with Breast Cancer Data Set

PyTorch

  1. Build the Neural Network with PyTorch
  2. Image Classification with PyTorch
  3. Twitter Sentiment Classification In PyTorch
  4. Training an Image Classifier in Pytorch

Natural Language Processing

  1. Spelling Correction Of The Text Data In Natural Language Processing
  2. Handling Text For Machine Learning
  3. Extracting Text From PDF File in Python Using PyPDF2
  4. How to Collect Data Using Twitter API V2 For Natural Language Processing
  5. Converting Text to Features in Natural Language Processing
  6. Extract A Noun Phrase For A Sentence In Natural Language Processing