[ 
https://issues.apache.org/jira/browse/FLINK-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14539539#comment-14539539
 ] 

Alexander Alexandrov commented on FLINK-1999:
---------------------------------------------

I'm not sure whether Seq[String] is enough as a type. In particular, I am not 
seeing how you can then classify the original items, as the transformed 
`DataSet` does not hold any document ID.

I would therefore suggest to have a more generic type 

{code}
case class Point[K, V](id: K, value: V) {}
{code}

The type of the transformer should then be Point[K, Seq[String]] => Point[K, 
SparseVector[Double]] where the point value is a SparseVector[Double] encodes 
the tf-idf values of the words occurring in the document.

> TF-IDF transformer
> ------------------
>
>                 Key: FLINK-1999
>                 URL: https://issues.apache.org/jira/browse/FLINK-1999
>             Project: Flink
>          Issue Type: New Feature
>          Components: Machine Learning Library
>            Reporter: Ronny Bräunlich
>            Assignee: Alexander Alexandrov
>            Priority: Minor
>              Labels: ML
>
> Hello everybody,
> we are a group of three students from TU Berlin (I guess we're not the first 
> group creating an issue) and we want to/have to implement a tf-idf tranformer 
> for Flink.
> Our lecturer Alexander told us that we could get some guidance here and that 
> you could point us to an old version of a similar tranformer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to