Skip to content

Thai2Fit: Word2Vec error with Gensim 4.0 #546

@wannaphong

Description

@wannaphong

Description

from https://github.com/PyThaiNLP/pythainlp/runs/2237147773?check_suite_focus=true, Gensim upgrade to 4.0. The index2word attribute has been replaced by index_to_key since Gensim 4.0.0.

Expected results

pass

Current results

fail

Steps to reproduce

  1. install pythainlp 2.3.0 and gensim 4.0.
  2. run unittest

Your environment

  • PyThaiNLP version: 2.3.0
  • Python version: 3.7
  • Operating system and version (distro, 32/64-bit): Ubuntu 20.04 64-bit
  • More info (Docker, VM, etc.):

Possible solution

Upgrade api to Gensim 4.0 or used try except for Gensim

Metadata

Metadata

Assignees

Labels

bugbugs in the library

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions