Skip to content

Instantly share code, notes, and snippets.

View sidharthms's full-sized avatar

Sidharth Mudgal sidharthms

View GitHub Profile
File "<path>/deepmatcher/models/core.py", line 184, in run_train
return Runner.train(self, *args, **kwargs)
File "<path>/deepmatcher/runner.py", line 300, in train
model.initialize(train_dataset)
File "<path>/deepmatcher/models/core.py", line 366, in initialize
self.forward(init_batch)
File "<path>/deepmatcher/models/core.py", line 436, in forward
embeddings[right])
TypeError: type() takes 2 positional arguments but 3 were given
Collecting git+https://github.com/sidharthms/deepmatcher
Cloning https://github.com/sidharthms/deepmatcher to /tmp/pip-req-build-61p4388l
DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
Collecting torch==0.3.1 (from deepmatcher==0.0.1a0)
Downloading https://files.pythonhosted.org/packages/5b/a5/e8b50b55b1abac9f1e3346c4242f1e42a82d368a8442cbd50c532922f6c4/torch-0.3.1-cp36-cp36m-manylinux1_x86_64.whl (496.4MB)
53% |█████████████████▎ | 267.2MB 14.1MB/s eta 0:00:17 100% |████████████████████████████████| 496.4MB 28kB/s
Collecting tqdm (from deepmatcher==0.0.1a0)
Downloading https://files.pythonhosted.org/packages/c2/d4/bf1d99216672eef50392c009a8d0f282c4b643e4f764c962ff7b611ebce4/tqdm-4.23.1-py2.py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 9.5MB/s
Collecting pyprind (from deepmatcher==0.0.1a0)
Building wheels for collected packages: deepmatcher, fasttext, fasttext
Running setup.py bdist_wheel for deepmatcher ... - \ done
Stored in directory: /tmp/pip-ephem-wheel-cache-vduaw1uz/wheels/41/56/70/a02b52d5810b563adca33e0f6cd95079d8387da9042922a4f1
Running setup.py bdist_wheel for fasttext ... - \ | / - \ | / - \ | / - \ | / - \ | / - \ done
Stored in directory: /tmp/pip-ephem-wheel-cache-vduaw1uz/wheels/13/ba/70/5c4d14012f78ff5fc2d2bbb4b99ad042e2b1d323d853f74495
Running setup.py bdist_wheel for fasttext ... - error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-t2vzwrl_/fasttext/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-_s22i3hq --python-tag cp36:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/token
# Remove `import re` and put this:
import regex as re
re_dim = re.compile(r'(((\d+(\.\d+)?)\s*[a-z]*\s*x\s*)+(\d+(\.\d+)?)(\s*[a-z]+)?)|((\d+(\.\d+)?)\s*to\s*(\d+(\.\d+)?))')
def dims_clean(text):
ms = []
if isinstance(text, str):
for m in re.finditer(re_dim, text):
if m.captures(3):