stanford-nlp

cannot use pycorenlp for python3.5 through terminal

梦想的初衷 提交于 2019-11-30 09:31:36
问题 My default python is 2.7, but have to do this project in python3.5 I installed pycorenlp through this command line: pip3 install pycorenlp . And it is showing I have already installed it: Requirement already satisfied (use --upgrade to upgrade): pycorenlp in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from

finding noun and verb in stanford parser

北城余情 提交于 2019-11-30 07:30:42
I need to find whether a word is verb or noun or it is both For example, the word is "search" it can be both noun and a verb but stanford parser gives NN tag to it.. is there any way that stanford parser will give that "search" is both noun and verb? code that i use now public static String Lemmatize(String word) { WordTag w = new WordTag(word); w.setTag(POSTagWord(word)); Morphology m = new Morphology(); WordLemmaTag wT = m.lemmatize(w); return wT.lemma(); } or should i use any other software to do it? please suggest me thanks in advance The Stanford Parser guesses the part-of-speech tag of a

Executing and testing stanford core nlp example

两盒软妹~` 提交于 2019-11-30 07:01:28
I downloaded stanford core nlp packages and tried to test it on my machine. Using command: java -cp "*" -mx1g edu.stanford.nlp.sentiment.SentimentPipeline -file input.txt I got sentiment result in form of positive or negative . input.txt contains the sentence to be tested. On more command: java -cp stanford-corenlp-3.3.0.jar;stanford-corenlp-3.3.0-models.jar;xom.jar;joda-time.jar -Xmx600m edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,parse -file input.txt when executed gives follwing lines : H:\Drive E\Stanford\stanfor-corenlp-full-2013~>java -cp stanford

Error in creating the StanfordCoreNLP object

偶尔善良 提交于 2019-11-30 05:31:03
问题 I have downloaded and installed required jar files from http://nlp.stanford.edu/software/corenlp.shtml#Download. I have include the five jar files Satnford-postagger.jar Stanford-psotagger-3.3.1.jar Stanford-psotagger-3.3.1.jar-javadoc.jar Stanford-psotagger-3.3.1.jar-src.jar stanford-corenlp-3.3.1.jar and the code is public class lemmafirst { protected StanfordCoreNLP pipeline; public lemmafirst() { // Create StanfordCoreNLP object properties, with POS tagging // (required for lemmatization)

how to train a french NER based on stanford-nlp Conditional Random Fields model?

痞子三分冷 提交于 2019-11-29 20:04:17
问题 I discovered the tools of stanford-NLP and found it really interesting. I'm a french dataminer / datascientist, fond of text analysis and would love to use your tools, but the NER being unavailable in french is quite puzzling to me. I would love to make my own french NER, perhaps even provide it as a contribution to the package if it is considered worthy, so... could you brief me on the requirements to train a CRF for french NER based on the stanford coreNLP ? Thank you. 回答1: NB: I am not a

Maven dependency:get does not download Stanford NLP model files

会有一股神秘感。 提交于 2019-11-29 17:15:12
问题 The core component of the Stanford Natural Language Processing Toolkit has Java code in a stanford-corenlp-1.3.4.jar file, and has (very large) model files in a separate stanford-corenlp-1.3.4-models.jar file. Maven does not download the model files automatically, but only if you add <classifier>models</classifier> line to the .pom. Here is a .pom snippet that fetches both the code and the models. <dependency> <groupId>edu.stanford.nlp</groupId> <artifactId>stanford-corenlp</artifactId>

Installing coreNLP in R

最后都变了- 提交于 2019-11-29 16:10:31
I'm following the instructions on this link to use coreNLP https://github.com/statsmaths/coreNLP However, I found this error > library(coreNLP) Error in get(method, envir = home) : lazy-load database '/Users/apple/Library/R/3.2/library/coreNLP/R/coreNLP.rdb is corrupt In addition: Warning messages: 1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], : restarting interrupted promise evaluation 2: In get(method, envir = home) : restarting interrupted promise evaluation 3: In get(method, envir = home) : internal error -3 in R_decompress1 Error: package or namespace load failed for

cannot use pycorenlp for python3.5 through terminal

大城市里の小女人 提交于 2019-11-29 15:57:12
My default python is 2.7, but have to do this project in python3.5 I installed pycorenlp through this command line: pip3 install pycorenlp . And it is showing I have already installed it: Requirement already satisfied (use --upgrade to upgrade): pycorenlp in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pycorenlp) However, when I type python3.5 through terminal to enter into python environment, then type from

Load Custom NER Model Stanford CoreNLP

心不动则不痛 提交于 2019-11-29 15:18:59
问题 I have created my own NER model with Stanford's "Stanford-NER" software and by following these directions. I am aware that CoreNLP loads three NER models out of the box in the following order: edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz I now want to include my NER model in the list above and have the text tagged by my NER model first. I

Detecting language using Stanford NLP

无人久伴 提交于 2019-11-29 14:04:13
问题 I'm wondering if it is possible to use Stanford CoreNLP to detect which language a sentence is written in? If so, how precise can those algorithms be? 回答1: Almost certainly there is no language identification in Stanford COreNLP at this moment. 'almost' - because nonexistence is much harder to prove. EDIT: Nevertheless, below are circumstantial evidences: there is no mention of language identification neither on main page, nor CoreNLP page, nor in FAQ (although there is a question 'How do I