Skip to content

Commit

Permalink
[feat] add basic template
Browse files Browse the repository at this point in the history
  • Loading branch information
pingpingy committed Nov 5, 2023
1 parent 547af7d commit de02a54
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions hopre/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""HoPRe is a software for detecting puns that utilize homophones."""
22 changes: 22 additions & 0 deletions hopre/core.py
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()
14 changes: 14 additions & 0 deletions setup.py
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"]),
)

0 comments on commit de02a54

Please sign in to comment.