Skip to content

Instantly share code, notes, and snippets.

View serenasensini's full-sized avatar
🐭
nerding

Serena Sensini serenasensini

🐭
nerding
View GitHub Profile
@serenasensini
serenasensini / main.py
Last active January 24, 2022 13:49
Sentiment Analysis in italiano con Naive-Bayes e NLTK
# pip install nltk
# nltk.download("punkt")
from nltk.corpus import movie_reviews
from nltk.classify import NaiveBayesClassifier
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.corpus import subjectivity
from nltk.sentiment import SentimentAnalyzer
import nltk.sentiment.util
apiVersion: v1
kind: Pod
metadata:
name: exit-code-127-example
spec:
containers:
- name: failing-container
image: busybox
command: ["/bin/sh", "-c", "non_existing_command"]
apiVersion: v1
kind: Pod
metadata:
name: exit-code-126-example
spec:
containers:
- name: failing-container
image: busybox
command: ["/bin/sh", "-c", "chmod -x /bin/sh && /bin/sh"]