Spaces:
Running
Running
Switch to sentiment analysis
Browse files- .gitattributes +0 -3
- .gitignore +3 -0
- README.md +7 -1
- justfile +19 -0
- poetry.lock +15 -1
- 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
@@ -104,6 +104,20 @@ files = [
|
|
104 |
{file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"},
|
105 |
]
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
[[package]]
|
108 |
name = "colorama"
|
109 |
version = "0.4.6"
|
@@ -1428,4 +1442,4 @@ files = [
|
|
1428 |
[metadata]
|
1429 |
lock-version = "2.0"
|
1430 |
python-versions = "^3.12"
|
1431 |
-
content-hash = "
|
|
|
104 |
{file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"},
|
105 |
]
|
106 |
|
107 |
+
[[package]]
|
108 |
+
name = "click"
|
109 |
+
version = "8.1.7"
|
110 |
+
description = "Composable command line interface toolkit"
|
111 |
+
optional = false
|
112 |
+
python-versions = ">=3.7"
|
113 |
+
files = [
|
114 |
+
{file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
|
115 |
+
{file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
|
116 |
+
]
|
117 |
+
|
118 |
+
[package.dependencies]
|
119 |
+
colorama = {version = "*", markers = "platform_system == \"Windows\""}
|
120 |
+
|
121 |
[[package]]
|
122 |
name = "colorama"
|
123 |
version = "0.4.6"
|
|
|
1442 |
[metadata]
|
1443 |
lock-version = "2.0"
|
1444 |
python-versions = "^3.12"
|
1445 |
+
content-hash = "3a3a6a6d87780bd1700e7ca0d699782662563eeb878ea6afa2e1da612af41128"
|
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"
|