Record the relevant contents of Stanford corenlp running without error
1. Detection method
NLP handles how to get the code for the cause of the error
from stanfordcorenlp import StanfordCoreNLP
import logging
# Use logging to monitor why errors occur
nlp = StanfordCoreNLP("D:\study\python\Lib\site-packages\stanfordcorenlp\stanford-corenlp-full-2018-02-27", lang='zh',quiet=False,logging_level=logging.DEBUG)
text = "Knowledge background in business management and related industry knowledge."
print('hello')
nlp.close()
2. Reason analysis
“The main problem is that my java environment is 32-bit. The largest memory of the 32-bit Java environment is 4G. And the memory required by Stanford corenlp is 4G. That’s why the Java environment refuses to create a JVM, and that’s why the program can’t run in the end. ” (from a blogger)
Read More:
- Python traverses all files under the specified path and retrieves them according to the time interval
- Python Time Module timestamp, Time string formatting and Conversion (13-bit timestamp)
- Python TypeError: not all arguments converted during string formatting [Solved]
- [Solved] Paramiko error: AttributeError: ‘NoneType’ object has no attribute ‘time’
- [Solved] TypeError: not all arguments converted during string formatting
- Docker run xxx,E Time Elapsed: 0:00:00.000180
- Python errors: valueerror: if using all scalar values, you must pass an index (four solutions)
- [Solved] AttributeError: module ‘time‘ has no attribute ‘clock‘
- The Python DOM method iterates over all the XML in a folder
- Mybatis Plus update time error: Could not set property ‘updateTime’
- Python recursively traverses all files in the directory to find the specified file
- AttributeError: module ‘time‘ has no attribute ‘clock‘ [How to Solve]
- [Solved] ERROR: pip‘s dependency resolver does not currently take into account all the packages that are inst
- How to Solve RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu
- Python time tuples are converted to timestamps, strings
- Python3.7 AttributeError: module ‘time‘ has no attribute ‘clock‘
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] Python Error: asyncio RuntimeError: This event loop is already running
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- [Solved] Error running process: CreateProcess failed. Code 2