fix scrape
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def scrape(keywords):
|
|
63 |
|
64 |
df = pd.DataFrame(tweets, columns=['tweet'])
|
65 |
|
66 |
-
return place_data
|
67 |
|
68 |
def get_example(dataset):
|
69 |
df = pd.read_csv(dataset + '.csv')
|
@@ -520,7 +520,7 @@ global examples
|
|
520 |
examples = [["katip,katipunan", "LDA"],
|
521 |
["katip,katipunan", "BERTopic"],
|
522 |
["bgc,bonifacio global city", "LDA"],
|
523 |
-
["bgc,bonifacio global city", "
|
524 |
["pobla,poblacion", "LDA"],
|
525 |
["pobla,poblacion", "BERTopic"],
|
526 |
["cubao","LDA"],
|
@@ -550,7 +550,7 @@ def main(dataset, model
|
|
550 |
place_data = 'test'
|
551 |
else:
|
552 |
print(dataset)
|
553 |
-
place_data = str(scrape(
|
554 |
print(df)
|
555 |
|
556 |
if model == 'LDA':
|
|
|
63 |
|
64 |
df = pd.DataFrame(tweets, columns=['tweet'])
|
65 |
|
66 |
+
return df, place_data
|
67 |
|
68 |
def get_example(dataset):
|
69 |
df = pd.read_csv(dataset + '.csv')
|
|
|
520 |
examples = [["katip,katipunan", "LDA"],
|
521 |
["katip,katipunan", "BERTopic"],
|
522 |
["bgc,bonifacio global city", "LDA"],
|
523 |
+
["bgc,bonifacio global city", "BERTopic"],
|
524 |
["pobla,poblacion", "LDA"],
|
525 |
["pobla,poblacion", "BERTopic"],
|
526 |
["cubao","LDA"],
|
|
|
550 |
place_data = 'test'
|
551 |
else:
|
552 |
print(dataset)
|
553 |
+
df, place_data = str(scrape(keywords))
|
554 |
print(df)
|
555 |
|
556 |
if model == 'LDA':
|