Skip to content

Commit

Permalink
Update PlotGenerator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
farzeennimran committed Jun 23, 2024
1 parent ba4d9dc commit 9d7ebfb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions PlotGenerator.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# -*- coding: utf-8 -*-
"""21L-6277_21L-5631.ipynb
Automatically generated by Colab.
Original file is located at
https://colab.research.google.com/drive/17GaNsDYMNV-O3Q1ekaqOxHJsWuFHrX_P

# Genre Pre-Processing
"""

import re
import pandas as pd
Expand Down Expand Up @@ -1166,4 +1159,4 @@ def calculate_perplexity(model, text, order):
drama_plots = df['Plots']
drama_text = ' '.join(drama_plots)
perplexity = calculate_perplexity(drama_generator, drama_text, 2)
print("Perplexity:", perplexity)
print("Perplexity:", perplexity)

0 comments on commit 9d7ebfb

Please sign in to comment.