-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""HoPRe is a software for detecting puns that utilize homophones.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""User interface for HoPRe""" | ||
|
||
|
||
import sys | ||
import os | ||
|
||
|
||
def hopre() -> None: | ||
"""The main HoPRe (Homophone-based Pun Recognition) function.""" | ||
while True: | ||
user_input: str = input("Please enter a sentence:\n") | ||
if user_input == "Goodbye.": | ||
print("It was a good run! Goodbye.") | ||
sys.exit() | ||
|
||
print(f"\nHere's the sentence you provided:\n{user_input}") | ||
input("Press enter to continue...") | ||
os.system("clear") | ||
|
||
|
||
if __name__ == "__main__": | ||
hopre() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Installation procedure for HoPRe""" | ||
|
||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
setup( | ||
name="hopre-requirements", | ||
version="0.1.0", | ||
description="Required Python packages for HoPRe", | ||
author="Heewon Lee", | ||
author_email="pingpingy@kaist.ac.kr", | ||
packages=find_packages(include=["hopre"]), | ||
) |