You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
not sure why isn't detecting that module. Tried to check for Torch version but I don't find the way to check it. The torch installed is the one that pip install stanford_openie do itself.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_23784/148240852.py in <module>
7 }
8
----> 9 with StanfordOpenIE(properties=properties) as client:
10 text = 'Barack Obama was born in Hawaii. Richard Manning wrote this sentence.'
11 print('Text: %s.' % text)
~\anaconda3\envs\py38\lib\site-packages\openie\openie.py in __init__(self, core_nlp_version, install_dir_path, *args, **kwargs)
41
42 os.environ['CORENLP_HOME'] = str(self.install_dir / target_dir)
---> 43 from stanfordnlp.server import CoreNLPClient
44 self.client = CoreNLPClient(annotators=['openie'], memory='8G', *args, **kwargs)
45
~\anaconda3\envs\py38\lib\site-packages\stanfordnlp\__init__.py in <module>
----> 1 from stanfordnlp.pipeline.core import Pipeline
2 from stanfordnlp.pipeline.doc import Document
3 from stanfordnlp.utils.resources import download
4 from stanfordnlp._version import __version__
~\anaconda3\envs\py38\lib\site-packages\stanfordnlp\pipeline\core.py in <module>
11 from stanfordnlp.pipeline.doc import Document
12 from stanfordnlp.pipeline.processor import Processor, ProcessorRequirementsException
---> 13 from stanfordnlp.pipeline.tokenize_processor import TokenizeProcessor
14 from stanfordnlp.pipeline.mwt_processor import MWTProcessor
15 from stanfordnlp.pipeline.pos_processor import POSProcessor
~\anaconda3\envs\py38\lib\site-packages\stanfordnlp\pipeline\tokenize_processor.py in <module>
7 from stanfordnlp.models.common import conll
8 from stanfordnlp.models.tokenize.data import DataLoader
----> 9 from stanfordnlp.models.tokenize.trainer import Trainer
10 from stanfordnlp.models.tokenize.utils import output_predictions
11 from stanfordnlp.pipeline._constants import *
~\anaconda3\envs\py38\lib\site-packages\stanfordnlp\models\tokenize\trainer.py in <module>
1 import sys
2 import torch
----> 3 import torch.nn as nn
4 import torch.optim as optim
5
~\anaconda3\envs\py38\lib\site-packages\torch\nn\__init__.py in <module>
----> 1 from .modules import * # noqa: F403
2 from .parameter import Parameter, UninitializedParameter, UninitializedBuffer
3 from .parallel import DataParallel
4 from . import init
5 from . import utils
~\anaconda3\envs\py38\lib\site-packages\torch\nn\modules\__init__.py in <module>
----> 1 from .module import Module
2 from .linear import Identity, Linear, Bilinear, LazyLinear
3 from .conv import Conv1d, Conv2d, Conv3d, \
4 ConvTranspose1d, ConvTranspose2d, ConvTranspose3d, \
5 LazyConv1d, LazyConv2d, LazyConv3d, LazyConvTranspose1d, LazyConvTranspose2d, LazyConvTranspose3d
~\anaconda3\envs\py38\lib\site-packages\torch\nn\modules\module.py in <module>
5
6 import torch
----> 7 from ..parameter import Parameter
8 import torch.utils.hooks as hooks
9
~\anaconda3\envs\py38\lib\site-packages\torch\nn\parameter.py in <module>
1 import torch
----> 2 from torch._C import _disabled_torch_function_impl
3 from collections import OrderedDict
4
5
ModuleNotFoundError: No module named 'torch._C'
Thank you
The text was updated successfully, but these errors were encountered:
It seems like you have a folder called torch where you run your script. You should delete it and run it again. It should work! Re-open if it was not that. Thanks!
Hello,
not sure why isn't detecting that module. Tried to check for Torch version but I don't find the way to check it. The torch installed is the one that pip install stanford_openie do itself.
Thank you
The text was updated successfully, but these errors were encountered: