Spaces:
Running
Running
Switch to sentiment analysis
Browse files- .gitattributes +0 -3
- .gitignore +3 -0
- README.md +7 -1
- justfile +19 -0
- poetry.lock +0 -0
- pyproject.toml +2 -4
.gitattributes
CHANGED
@@ -15,6 +15,3 @@
|
|
15 |
|
16 |
# Do not try and merge these files
|
17 |
poetry.lock -diff
|
18 |
-
|
19 |
-
# LFS
|
20 |
-
data/** filter=lfs diff=lfs merge=lfs -text
|
|
|
15 |
|
16 |
# Do not try and merge these files
|
17 |
poetry.lock -diff
|
|
|
|
|
|
.gitignore
CHANGED
@@ -192,3 +192,6 @@ pyrightconfig.json
|
|
192 |
.ionide
|
193 |
|
194 |
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python
|
|
|
|
|
|
|
|
192 |
.ionide
|
193 |
|
194 |
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python
|
195 |
+
|
196 |
+
# Ignore dataset due to size
|
197 |
+
data/
|
README.md
CHANGED
@@ -1,2 +1,8 @@
|
|
1 |
-
|
2 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Sentiment Analysis
|
2 |
---
|
3 |
+
|
4 |
+
### Usage
|
5 |
+
1. Clone the repository
|
6 |
+
2. `cd` into the repository
|
7 |
+
3. Run `just install` to install the dependencies
|
8 |
+
4. Run `just run --help` to see the available commands
|
justfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env just --justfile
|
2 |
+
|
3 |
+
@default:
|
4 |
+
echo "No target specified."
|
5 |
+
|
6 |
+
@lint:
|
7 |
+
poetry run pre-commit run --all-files
|
8 |
+
|
9 |
+
@install:
|
10 |
+
poetry install --without dev
|
11 |
+
|
12 |
+
@install-dev:
|
13 |
+
poetry install
|
14 |
+
|
15 |
+
@requirements:
|
16 |
+
poetry export -f requirements.txt --output requirements.txt --without dev
|
17 |
+
|
18 |
+
@run TEXT:
|
19 |
+
poetry run python main.py {{TEXT}}
|
poetry.lock
CHANGED
Binary files a/poetry.lock and b/poetry.lock differ
|
|
pyproject.toml
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
[tool.poetry]
|
2 |
-
name = "
|
3 |
package-mode = false
|
4 |
|
5 |
[tool.poetry.dependencies]
|
6 |
python = "^3.12"
|
|
|
7 |
|
8 |
[tool.poetry.group.dev.dependencies]
|
9 |
ruff = "^0.4.1"
|
@@ -11,9 +12,6 @@ pre-commit = "^3.7.0"
|
|
11 |
ipykernel = "^6.29.4"
|
12 |
ipympl = "^0.9.4"
|
13 |
|
14 |
-
[tool.poetry.plugins.dotenv]
|
15 |
-
location = ".env"
|
16 |
-
|
17 |
[build-system]
|
18 |
requires = ["poetry-core"]
|
19 |
build-backend = "poetry.core.masonry.api"
|
|
|
1 |
[tool.poetry]
|
2 |
+
name = "sentiment-analysis"
|
3 |
package-mode = false
|
4 |
|
5 |
[tool.poetry.dependencies]
|
6 |
python = "^3.12"
|
7 |
+
click = "^8.1.7"
|
8 |
|
9 |
[tool.poetry.group.dev.dependencies]
|
10 |
ruff = "^0.4.1"
|
|
|
12 |
ipykernel = "^6.29.4"
|
13 |
ipympl = "^0.9.4"
|
14 |
|
|
|
|
|
|
|
15 |
[build-system]
|
16 |
requires = ["poetry-core"]
|
17 |
build-backend = "poetry.core.masonry.api"
|