Kevin
09/26/2019, 10:23 AMalex
09/26/2019, 3:16 PMalex
09/26/2019, 3:18 PMKevin
09/26/2019, 4:57 PM@lambda_solid
def word_counts(xs):
return [word_count(x) for x in xs]
so each of them does [a] -> [b]
i'd prefer to define the solids in terms of a -> b
and let the system take care of the lifting. So something like
@pipeline
def mypipeline():
xs: List[String] = extract_texts()
scores = dagster_map(mycomposed, xs)
load_scores(scores)
with something like:
@composed_solid
def mycomposed(text: String) -> Score:
tokens = tokeniz(text)
word_counts = word_count(tokens)
return scoring(word_counts)
does that make sense?alex
09/26/2019, 5:03 PMKevin
09/26/2019, 5:10 PMalex
09/26/2019, 5:20 PM