I reinstalled that, it seems I have it, as pip shows that in pip list,
I ran through this command in cmd
python -m prodigy ( in anconda)
but when I go to the directory, It is only a jason file in .prodigy which is included
{
}
(I opened with notebook)
then I tried by
jupyter lab by this command
import prodigy
prodigy.serve('ner.teach', 'dataset', 'en_core_web_sm', 'data.jsonl',
None, None, ['PERSON', 'ORG'], None, None)
import prodigy
prodigy.serve('ner.teach', 'dataset', 'en_core_web_sm', 'data.jsonl',
None, None, ['PERSON', 'ORG'], None, None)
the result was like before
Oops, something went wrong
morever I have this error in python
18:40:27 - Task queue depth is 1
18:40:27 - Task queue depth is 2
18:40:27 - Task queue depth is 3
18:40:27 - Exception while serving /get_questions
Traceback (most recent call last):
File "C:\Users\moha\Anaconda3\lib\site-packages\waitress\channel.py", line 356, in service
task.service()
File "C:\Users\moha\Anaconda3\lib\site-packages\waitress\task.py", line 176, in service
self.execute()
File "C:\Users\moha\Anaconda3\lib\site-packages\waitress\task.py", line 447, in execute
app_iter = self.channel.server.application(env, start_response)
File "C:\Users\moha\Anaconda3\lib\site-packages\hug\api.py", line 451, in api_auto_instantiate
return module.hug_wsgi(*args, **kwargs)
File "C:\Users\moha\Anaconda3\lib\site-packages\falcon\api.py", line 244, in call
responder(req, resp, **params)
File "C:\Users\moha\Anaconda3\lib\site-packages\hug\interface.py", line 789, in call
raise exception
File "C:\Users\moha\Anaconda3\lib\site-packages\hug\interface.py", line 762, in call
self.render_content(self.call_function(input_parameters), context, request, response, **kwargs)
File "C:\Users\moha\Anaconda3\lib\site-packages\hug\interface.py", line 698, in call_function
return self.interface(**parameters)
File "C:\Users\moha\Anaconda3\lib\site-packages\hug\interface.py", line 100, in call
return __hug_internal_self._function(*args, **kwargs)
File "C:\Users\moha\Anaconda3\lib\site-packages\prodigy\app.py", line 173, in get_questions
tasks = controller.get_questions()
File "cython_src\prodigy\core.pyx", line 129, in prodigy.core.Controller.get_questions
File "cython_src\prodigy\components\feeds.pyx", line 56, in prodigy.components.feeds.SharedFeed.get_questions
File "cython_src\prodigy\components\feeds.pyx", line 61, in prodigy.components.feeds.SharedFeed.get_next_batch
File "cython_src\prodigy\components\feeds.pyx", line 131, in prodigy.components.feeds.SessionFeed.get_session_stream
File "C:\Users\moha\Anaconda3\lib\site-packages\toolz\itertoolz.py", line 368, in first
return next(iter(seq))
File "cython_src\prodigy\components\sorters.pyx", line 151, in iter
File "cython_src\prodigy\components\sorters.pyx", line 61, in genexpr
File "cython_src\prodigy\models\ner.pyx", line 292, in call
File "cython_src\prodigy\models\ner.pyx", line 259, in get_tasks
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.next
File "cython_src\prodigy\models\ner.pyx", line 209, in predict_spans
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.next
File "cython_src\prodigy\components\preprocess.pyx", line 35, in split_sentences
File "C:\Users\moha\Anaconda3\lib\site-packages\spacy\language.py", line 548, in pipe
for doc, context in izip(docs, contexts):
File "C:\Users\moha\Anaconda3\lib\site-packages\spacy\language.py", line 572, in pipe
for doc in docs:
File "nn_parser.pyx", line 367, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.next
File "nn_parser.pyx", line 367, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.next
File "pipeline.pyx", line 431, in pipe
File "cytoolz/itertoolz.pyx", line 1047, in cytoolz.itertoolz.partition_all.next
File "C:\Users\moha\Anaconda3\lib\site-packages\spacy\language.py", line 746, in _pipe
for doc in docs:
File "C:\Users\moha\Anaconda3\lib\site-packages\spacy\language.py", line 551, in
docs = (self.make_doc(text) for text in texts)
File "C:\Users\moha\Anaconda3\lib\site-packages\spacy\language.py", line 544, in
texts = (tc[0] for tc in text_context1)
File "cython_src\prodigy\components\preprocess.pyx", line 34, in genexpr
File "cython_src\prodigy\components\filters.pyx", line 35, in filter_duplicates
File "cython_src\prodigy\components\filters.pyx", line 16, in filter_empty
File "cython_src\prodigy\components\loaders.pyx", line 22, in _rehash_stream
File "cython_src\prodigy\components\loaders.pyx", line 142, in JSONL
File "C:\Users\moha\Anaconda3\lib\pathlib.py", line 1176, in open
opener=self._opener)
File "C:\Users\moha\Anaconda3\lib\pathlib.py", line 1030, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'data.jsonl'
could you let me know what is ithe problerm