aste-v2 / src /sentiment.py
Matthew Franglen
Create an entrypoint and split code up
59da9af
raw
history blame
174 Bytes
label_to_sentiment = {
"POS": "positive",
"NEG": "negative",
"NEU": "neutral",
}
def to_nice_sentiment(label: str) -> str:
return label_to_sentiment[label]