question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'RegexTokenizer'

See original GitHub issue

got this error when trying to run example code. Even if I remove RegexTokenizer from import and set tokenizer = UDBaselineTokenizer() i have the following error:

(vp36) Dannys-MBP:dost marzique$ python dost.py
Traceback (most recent call last):
  File "dost.py", line 2, in <module>
    from dostoevsky.embeddings import SocialNetworkEmbeddings
ModuleNotFoundError: No module named 'dostoevsky.embeddings'

please help

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dveselovcommented, Aug 10, 2019

Hi, since you’re using version lower than latest, try examples before the last release.

0reactions
dveselovcommented, Aug 13, 2019

Currently, there is no manual on model training, sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python, ImportError: cannot import name AbstractLazySequence
We determined that this was being caused by a namespace conflict with nltk.tokenize and the user's tokenize.py . After renaming tokenize.py ...
Read more >
Solved I'm having trouble importing ImportError: cannot - Chegg
Question: I'm having trouble importing ImportError: cannot import name 'RegexTokenizer' from 'nltk.tokenize' (C:\Users\milli\anaconda3\lib\site-packages\nltk\ ...
Read more >
Installed NLTK package not working : PY-20019 - YouTrack
... line 31, in <module> *from nltk.util import Trie ImportError: cannot import name Trie* Process finished with exit code 1. Python detected.
Read more >
Source code for pyspark.ml.feature - Apache Spark
from typing import ( cast, overload, Any, Dict, Generic, List, Optional, ... name is used to map the feature value to its index...
Read more >
Multiclass text classification crossvalidation with pyspark ...
from timeit import default_timer as timer import datetime from pyspark ... import NGram from pyspark.ml.feature import RegexTokenizer, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found