Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12153

Word2Vec uses a fixed length for sentences which is not reasonable for reality, and similarity functions and fields are not accessible

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.2
    • 2.0.0
    • MLlib
    • None

    Description

      sentence boundary matters for sliding window, we shouldn't train model from a window across sentences.
      the current 1000 word as a hard split for sentences doesn't really make sense which is not consistent with both original c version or other implementation like deeplearning4j etc.
      the max sentence length is fixed and not tunable. Made it tunable as well.

      I made changes to address above issues.
      here is the pull request: https://github.com/apache/spark/pull/10152

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ygcao YongGang Cao Assign to me
            ygcao YongGang Cao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment