-
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.
Merge pull request #1 from olafurjohannsson/black-formatter
Black formatter
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
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,16 @@ | ||
name: Black check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
black-check: | ||
runs-on: ubuntu-latest | ||
name: Black | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --verbose" | ||
src: "./src" | ||
jupyter: true | ||
version: "22.3.0" |
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 |
---|---|---|
@@ -1 +1,19 @@ | ||
# sentiment-analysis | ||
# Viðhorfsgreining á íslenskum texta | ||
|
||
|
||
|
||
|
||
|
||
# Style | ||
|
||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
||
# License | ||
MIT | ||
|
||
# Authors | ||
|
||
Ólafur Aron Jóhannsson \ | ||
Eysteinn Örn \ | ||
Birkir Arndal \ | ||
Júlíus Grettir Margrétarson |
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,9 @@ | ||
from transformers import pipeline | ||
|
||
|
||
def main(): | ||
print(pipeline("sentiment-analysis")(__name__)) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |