-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (26 loc) · 925 Bytes
/
setup.py
File metadata and controls
33 lines (26 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import subprocess
import sys
import os
def install_requirements():
"""Install required packages from requirements.txt"""
print("Installing required packages...")
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
print("Package installation complete!")
def download_nltk_data():
"""Download required NLTK data"""
print("Downloading NLTK data...")
import nltk
nltk.download('punkt')
print("NLTK data download complete!")
def main():
"""Run the setup process"""
print("Setting up Citation Analysis Tool...")
# Install required packages
install_requirements()
# Download NLTK data
download_nltk_data()
print("\nSetup complete! You can now run the application with:")
print("python app_public.py")
print("\nOpen your browser and go to: http://127.0.0.1:5000/")
if __name__ == "__main__":
main()