mirror of
https://github.com/Steffo99/unimore-bda-6.git
synced 2024-11-25 01:04:19 +00:00
Use the correct sentiment analyzer in main
This commit is contained in:
parent
8907272002
commit
0a4ce38982
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ install_general_log_handlers()
|
||||||
from .config import config
|
from .config import config
|
||||||
from .database import mongo_client_from_config, reviews_collection, sample_reviews_polar, sample_reviews_varied
|
from .database import mongo_client_from_config, reviews_collection, sample_reviews_polar, sample_reviews_varied
|
||||||
from .analysis.nltk_sentiment import NLTKSentimentAnalyzer
|
from .analysis.nltk_sentiment import NLTKSentimentAnalyzer
|
||||||
from .analysis.tf_text import TensorflowSentimentAnalyzer
|
from .analysis.tf_text import TensorflowCategorySentimentAnalyzer
|
||||||
from .analysis.base import TrainingFailedError
|
from .analysis.base import TrainingFailedError
|
||||||
from .tokenizer import PlainTokenizer, LowercaseTokenizer, NLTKWordTokenizer, PottsTokenizer, PottsTokenizerWithNegation
|
from .tokenizer import PlainTokenizer, LowercaseTokenizer, NLTKWordTokenizer, PottsTokenizer, PottsTokenizerWithNegation
|
||||||
from .gathering import Caches
|
from .gathering import Caches
|
||||||
|
@ -39,7 +39,7 @@ def main():
|
||||||
slog.debug("Selected sample_func: %s", sample_func.__name__)
|
slog.debug("Selected sample_func: %s", sample_func.__name__)
|
||||||
|
|
||||||
for SentimentAnalyzer in [
|
for SentimentAnalyzer in [
|
||||||
TensorflowSentimentAnalyzer,
|
TensorflowCategorySentimentAnalyzer,
|
||||||
NLTKSentimentAnalyzer
|
NLTKSentimentAnalyzer
|
||||||
]:
|
]:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue