ideas-lab-nus / data-science-bldg-energy-efficiency Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi there... I'm just trying to run the code... however, I got this error:
Do I miss something?
ValueError Traceback (most recent call last)
in
1 #import modules
2
----> 3 from gensim.models import KeyedVectors
4 import gensim
5 import os
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/init.py in
3 """
4
----> 5 from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401
6 import logging
7
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/models/init.py in
5
6 # bring model classes directly into package namespace, to save some typing
----> 7 from .coherencemodel import CoherenceModel # noqa:F401
8 from .hdpmodel import HdpModel # noqa:F401
9 from .ldamodel import LdaModel # noqa:F401
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/models/coherencemodel.py in
34 from gensim import interfaces, matutils
35 from gensim import utils
---> 36 from gensim.topic_coherence import (segmentation, probability_estimation,
37 direct_confirmation_measure, indirect_confirmation_measure,
38 aggregation)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/topic_coherence/probability_estimation.py in
10 import logging
11
---> 12 from gensim.topic_coherence.text_analysis import (
13 CorpusAccumulator, WordOccurrenceAccumulator, ParallelWordOccurrenceAccumulator,
14 WordVectorsAccumulator)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/topic_coherence/text_analysis.py in
19
20 from gensim import utils
---> 21 from gensim.models.word2vec import Word2Vec
22
23 logger = logging.getLogger(name)
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/models/word2vec.py in
133
134 from gensim.utils import keep_vocab_item, call_on_class_only
--> 135 from gensim.models.keyedvectors import Vocab, Word2VecKeyedVectors
136 from gensim.models.base_any2vec import BaseWordEmbeddingsModel
137
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/models/keyedvectors.py in
181 from scipy import stats
182 from gensim.utils import deprecated
--> 183 from gensim.models.utils_any2vec import (
184 _save_word2vec_format,
185 _load_word2vec_format,
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/gensim/models/utils_any2vec.py in
196 #
197 try:
--> 198 from gensim.models._utils_any2vec import (
199 compute_ngrams as _compute_ngrams_cy,
200 compute_ngrams_bytes as _compute_ngrams_bytes_cy,
init.pxd in init gensim.models._utils_any2vec()
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.