-
Notifications
You must be signed in to change notification settings - Fork 9
/
workflow.yml
35 lines (35 loc) · 1.11 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
analyzer:
_target_: obsei.analyzer.classification_analyzer.ZeroShotClassificationAnalyzer
device: auto
model_name_or_path: typeform/mobilebert-uncased-mnli
analyzer_config:
_target_: obsei.analyzer.classification_analyzer.ClassificationAnalyzerConfig
labels:
- petrol
- clean energy
- pricy
- positive outlook
- negative outlook
multi_class_classification: true
use_splitter_and_aggregator: true
splitter_config:
_target_: obsei.preprocessor.text_splitter.TextSplitterConfig
max_split_length: 300
split_stride: 10
aggregator_config:
_target_: obsei.postprocessor.inference_aggregator.InferenceAggregatorConfig
aggregate_function:
_target_: obsei.postprocessor.inference_aggregator_function.ClassificationAverageScore
score_threshold: 0.4
sink:
_target_: obsei.sink.slack_sink.SlackSink
sink_config:
_target_: obsei.sink.slack_sink.SlackSinkConfig
source:
_target_: obsei.source.google_news_source.GoogleNewsSource
source_config:
_target_: obsei.source.google_news_source.GoogleNewsConfig
fetch_article: true
lookup_period: 1d
max_results: '3'
query: ola electric