Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating Map vectors isn't successful, #1

Open
rsuwaileh opened this issue Oct 2, 2022 · 1 comment
Open

Generating Map vectors isn't successful, #1

rsuwaileh opened this issue Oct 2, 2022 · 1 comment

Comments

@rsuwaileh
Copy link

rsuwaileh commented Oct 2, 2022

Hello,

I'm trying to run the code in Oracle mode. I imported all required libraries into conda env, showing its .yml content below.

However, running the text2mapVec.py gives a vector of zeros, while I expected it to be something like the content of file eval_lgl.txt? How to generate file like data/eval_<dataset>.txt (e.g., data/eval_lgl.txt)?

python text2mapVec.py
output: [0. 0. 0. ... 0. 0. 0.]

What could be the reason?

name: CamCoder
channels:
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2022.4.26=h06a4308_0
  - certifi=2020.6.20=pyhd3eb1b0_3
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_0
  - libgomp=11.2.0=h1234567_0
  - libstdcxx-ng=11.2.0=h1234567_0
  - ncurses=6.3=h7f8727e_2
  - pip=19.3.1=py27_0
  - python=2.7.18=ha1903f6_2
  - readline=8.1.2=h7f8727e_1
  - setuptools=44.0.0=py27_0
  - sqlite=3.38.3=hc218d9a_0
  - tk=8.6.11=h1ccaba5_1
  - wheel=0.37.1=pyhd3eb1b0_0
  - zlib=1.2.12=h7f8727e_2
  - pip:
    - absl-py==0.15.0
    - astor==0.8.1
    - backports-functools-lru-cache==1.6.4
    - backports-weakref==1.0.post1
    - bleach==1.5.0
    - chardet==4.0.0
    - contextlib2==0.6.0.post1
    - cycler==0.10.0
    - cymem==1.31.2
    - cytoolz==0.9.0.1
    - dill==0.2.9
    - en-core-web-lg==2.0.0
    - en-core-web-sm==2.0.0
    - enum34==1.1.10
    - ftfy==4.4.3
    - funcsigs==1.0.2
    - futures==3.3.0
    - gast==0.5.3
    - geographiclib==1.52
    - geopy==1.23.0
    - grpcio==1.41.1
    - h5py==2.10.0
    - html5lib==0.9999999
    - idna==2.10
    - importlib-resources==3.3.1
    - keras==2.2.0
    - keras-applications==1.0.2
    - keras-preprocessing==1.0.1
    - kiwisolver==1.1.0
    - markdown==3.1.1
    - matplotlib==2.2.5
    - mock==3.0.5
    - msgpack==0.6.2
    - msgpack-numpy==0.4.7.1
    - msgpack-python==0.5.6
    - murmurhash==0.28.0
    - numpy==1.16.6
    - pathlib==1.0.1
    - pathlib2==2.3.7.post1
    - plac==0.9.6
    - preshed==1.0.1
    - protobuf==3.17.3
    - pyparsing==2.4.7
    - python-dateutil==2.8.2
    - pytz==2022.1
    - pyyaml==5.4.1
    - regex==2017.4.5
    - requests==2.27.1
    - scandir==1.10.0
    - scipy==1.2.3
    - singledispatch==3.7.0
    - six==1.16.0
    - spacy==2.0.0
    - subprocess32==3.5.4
    - tensorboard==1.8.0
    - tensorflow==1.8.0
    - termcolor==1.1.0
    - thinc==6.10.3
    - toolz==0.10.0
    - tqdm==4.64.0
    - typing==3.10.0.0
    - ujson==2.0.3
    - urllib3==1.26.9
    - wcwidth==0.2.5
    - werkzeug==1.0.1
    - wrapt==1.10.11
    - zipp==1.2.0
@milangritta
Copy link
Owner

Hi there, sorry, I don't know why it's not working for you. I don't think it's the environment. It's most likely something to do with your data or the way you're using the script. The returned sparse vector will always be more than 99% zeros, that's normal. I would debug the script in Pycharm with your input files if I were you. There isn't much going on so should be easy to diagnose. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants