stanford-nlp

How to implement Stanford CoreNLP wrapper for Apache Spark using sparklyr?

久未见 提交于 2020-01-23 06:23:51
问题 I am trying to create a R package so I can use the Stanford CoreNLP wrapper for Apache Spark (by databricks) from R. I am using the sparklyr package to connect to my local Spark instance. I created a package with the following dependency function spark_dependencies <- function(spark_version, scala_version, ...) { sparklyr::spark_dependency( jars = c( system.file( sprintf("stanford-corenlp-full/stanford-corenlp-3.6.0.jar"), package = "sparkNLP" ), system.file( sprintf("stanford-corenlp-full

TreebankLanguagePack function in Neural Network Dependency Parser

天涯浪子 提交于 2020-01-22 17:09:05
问题 If I want to train the Stanford Neural Network Dependency Parser for another language, there is a need for a "treebankLanguagePack"(TLP) but the information about this TLP is very limited: particularities of your treebank and the language it contains If I have my "treebank" in another language that follows the same format as PTB, and my data is using CONLL format. The dependency format follows the "Universal Dependency" UD. Do I need this TLP? 回答1: As of the current CoreNLP release, the

stanford corenlp not working

北战南征 提交于 2020-01-22 15:13:45
问题 I'm using Windows 8, and running python in eclipse with pyDev. I installed Stanford coreNLP (python version) from the site: https://github.com/relwell/stanford-corenlp-python When I try to import corenlp, I get the following error message. Traceback (most recent call last): File "C:\Users\Ghantauke\workspace\PythonTest2\test.py", line 1, in <module> import corenlp File "C:\Python27\lib\site-packages\corenlp\__init__.py", line 13, in <module> from corenlp import StanfordCoreNLP, ParserError,

stanford corenlp not working

▼魔方 西西 提交于 2020-01-22 15:12:27
问题 I'm using Windows 8, and running python in eclipse with pyDev. I installed Stanford coreNLP (python version) from the site: https://github.com/relwell/stanford-corenlp-python When I try to import corenlp, I get the following error message. Traceback (most recent call last): File "C:\Users\Ghantauke\workspace\PythonTest2\test.py", line 1, in <module> import corenlp File "C:\Python27\lib\site-packages\corenlp\__init__.py", line 13, in <module> from corenlp import StanfordCoreNLP, ParserError,

Get the K best parses of a sentence with Stanford Parser

与世无争的帅哥 提交于 2020-01-21 17:24:08
问题 I want to have the K best parses of a sentence, I figured that this can be done with ExhaustivePCFGParser Class , the problem is that I don't know how to use this class , more precisely haw can I instantiate this class ? ( the constructor is : ExhaustivePCFGParser(BinaryGrammar bg, UnaryGrammar ug, Lexicon lex, Options op, Index stateIndex, Index wordIndex, Index tagIndex) ) but i don't know how to fit all this parameters Is there any more easy way to have the K best parses ? 回答1: In general

sentence parsing is running extremely slowly

你说的曾经没有我的故事 提交于 2020-01-17 06:07:10
问题 I'm attempting to create a Sentence Parser that can read in a document and predict the correct points to break up a sentence while not breaking on unimportant periods such as "Dr." or ".NET", so I've been attempting to use CoreNLP Upon realizing that PCFG was running way too slowly (and essentially bottlenecking my entire job) I attempted to switch to Shift-Reduce parsing (which according to the coreNLP website is way faster). However, the SRParser is running extremely slowly and I have no

sentence parsing is running extremely slowly

那年仲夏 提交于 2020-01-17 06:07:05
问题 I'm attempting to create a Sentence Parser that can read in a document and predict the correct points to break up a sentence while not breaking on unimportant periods such as "Dr." or ".NET", so I've been attempting to use CoreNLP Upon realizing that PCFG was running way too slowly (and essentially bottlenecking my entire job) I attempted to switch to Shift-Reduce parsing (which according to the coreNLP website is way faster). However, the SRParser is running extremely slowly and I have no

I'm getting the following Import Error when importing the sutime module - what does it mean?

社会主义新天地 提交于 2020-01-16 11:59:11
问题 I'm getting this error: ImportError: cannot import name 'SUTime' from partially initialized module 'sutime' (most likely due to a circular import) when importing the sutime module as: from sutime import SUTime as suggested in the sutime GitHub example: https://github.com/FraBle/python-sutime Context: sutime is a Python library for parsing date/time from a natural language input, developed by the amazing team over at Stanford CoreNLP. Note: I've already run the pre-req installs as well: >> pip

Illegal characters in filenames of a .jar file which android studio is not accepting

末鹿安然 提交于 2020-01-14 07:02:49
问题 I wanted to use StanfordCoreNLP library in my android app . So i have imported the .jar files using the following dependencies in my gradle.build file . These are my gradle dependencies The Files are imported properly but many of the files in the .jar file have ':' character in their names which the android studio wont accept .You can see the names here . Filenames with invalid characters in .jar file So i got an error as below when i tried to make the project . com.android.build.api

Illegal characters in filenames of a .jar file which android studio is not accepting

假装没事ソ 提交于 2020-01-14 07:02:17
问题 I wanted to use StanfordCoreNLP library in my android app . So i have imported the .jar files using the following dependencies in my gradle.build file . These are my gradle dependencies The Files are imported properly but many of the files in the .jar file have ':' character in their names which the android studio wont accept .You can see the names here . Filenames with invalid characters in .jar file So i got an error as below when i tried to make the project . com.android.build.api