Aspect-Based-Sentiment-Analysis
Aspect-Based-Sentiment-Analysis copied to clipboard
💭 Aspect-Based-Sentiment-Analysis: Transformer & Explainable ML (TensorFlow)
I run this sample: import aspect_based_sentiment_analysis as absa name = 'absa/classifier-rest-0.2' model = absa.BertABSClassifier.from_pretrained(name) tokenizer = BertTokenizer.from_pretrained(name) professor = absa.Professor(...) # Explained in detail later on. text_splitter = absa.sentencizer() #...
import transformers import aspect_based_sentiment_analysis as absa name = 'absa/classifier-rest-0.2' model = absa.BertABSClassifier.from_pretrained(name) tokenizer = absa.BertTokenizer.from_pretrained(name) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_40004/473772509.py in 5 6 name = 'absa/classifier-rest-0.2' ---->...
I install your module and run quick start ``` import aspect_based_sentiment_analysis as absa recognizer = absa.aux_models.BasicPatternRecognizer() nlp = absa.load(pattern_recognizer=recognizer) ``` and the following error occurred. --------------------------------------------------------------------------- ``` ValueError Traceback (most...
recognizer = absa.aux_models.BasicPatternRecognizer() nlp = absa.load(pattern_recognizer=recognizer) completed_task = nlp(text=..., aspects=['slack', 'price']) slack, price = completed_task.examples TypeError Traceback (most recent call last) [](https://localhost:8080/#) in () 1 recognizer = absa.aux_models.BasicPatternRecognizer() 2 nlp...
I want to use this package for the mobile phone's ABSA, Can anyone tell me how to train the model and use the trained model in the nlp.load() method. Actually,...
Hello, I am wondering - is it possible to fine-tune this model for some domain/specific words? I have training data, but I am not sure how exactly to fine tune...
I need to have the polarity associated with particular words or phrases used to ensure that these are taken into account when associated with a particular aspect. Is there a...
I'm trying to reproduce the example in the README. ```python name = 'absa/classifier-rest-0.2' model = absa.BertABSClassifier.from_pretrained(name) tokenizer = absa.BertTokenizer.from_pretrained(name) professor = absa.Professor() # Explained in detail later on. text_splitter =...
# Main contribution The Python version was previously pinned to `3.7`. This PR unfixes the Python version to allow compatibility with later versions of Python as well. This PR is...
## TL;DR When defining a pipeline's elements and testing it on a couple of sentences, the tests results are inconsistent. Some go smoothly, while some encounter the following **type error**:...