Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [stanford-nlp]

Questions on the open source natural language processing software from the Stanford University NLP Group, in Java, Python, and C, including Stanford CoreNLP, Stanza, and GloVe.

stanford-nlp
0 votes
1 answer
29 views

How to recognize a list of elements using core NLP

I am working with core NLP in java and I am a beginner with that. So I would like to know how can I recognize a list of elements related to an action. I see could use POS tags but I don't know if ...
Bladimir Medrano Vargas's user avatar
0 votes
0 answers
22 views

Is there a way to direct Stanford CoreNLP to perform coreference resolution on a list of particular entities?

I have a list of entities identified via the CoreNLP NER module as part of an existing Java process we perform. I would like to run coreference resolution using those entities as input, rather than ...
Grant's user avatar
  • 31
1 vote
3 answers
89 views

Getting GloVe embeddings using gensim, triu not found in scipy.linalg

I am trying to build a sentiment analysing model, using the GloVe word embeddings... I found multiple sources on how to import the embeddings into python, this one seemed to be the simplest... Trying ...
Mel7's user avatar
  • 19
0 votes
0 answers
14 views

Identifying Collocation in Sentences using coreNLP

For reproducing a research paper, I have to rewrite sentences with their collocation linked by _ (exemple : this green firm uses clean energy -> this green_firm uses clean_energy). In the paper I ...
DottorBLM's user avatar
0 votes
0 answers
13 views

Is there a method to load caseless models to Stanford's NLP sentiment analysis?

In the Stanford documentation, the authors mention using caseless models to process case-insensitive text. Namely the ability to load the GATE Twitter POS annotator. It is a POS annotator, but it ...
Abdul M. Diaz's user avatar
0 votes
0 answers
20 views

combine Glove and Bert in one model classification

Can I send the word embedding resulting from the Glove and BERT methods to a model such as BiLSTM for word classification? I tried to unify the length of the embedding resulting from the two methods, ...
ImanQAbduljaleel's user avatar
0 votes
0 answers
39 views

What am I missing from this trace of the GloVe Word Embedding for DJL?

I am trying to use the GloVe word embedding for my program in DJL observe performance between CPU and GPU. However, there are no Cuda 12 jars for MxNet at this moment so I am wanting to use the ...
SecretAsianMan's user avatar
0 votes
1 answer
42 views

GloVe embedding for empty string

It looks like the embedding for the empty string in the glove.twitter.27B.200d.txt file that's part of this zip file: https://nlp.stanford.edu/data/glove.twitter.27B.zip is provided on line 38523, but ...
Michael Szczepaniak's user avatar
2 votes
0 answers
57 views

How can I correctly change the upos of words in a sentence using Stanza?

I am using Stanza in order to receive a sentence and change its upos tag so that I can get a more personalized constituency tree. This is my code snippet : import stanza import nltk from nltk import ...
Eduardo's user avatar
  • 71
0 votes
0 answers
53 views

I wanted to evaluate and see the performance of Spider 1.0 dataset using llama-2-7B model, hugging g=face transformer, not working, how to fix it?

import json import sys import torch from transformers import AutoTokenizer, AutoModelForCausalLM def load_data(file_path): with open(file_path) as f: data = json.load(f) return data def generate_sql(...
Ayesha Khatun Sujana's user avatar
0 votes
0 answers
28 views

Facing error to evaluate spider 1.0 dataset using orca-2-7B model, hugging face transformers

I am trying to evaluate Spider 1.0 dataset using Orca-2-7B model, hugging face transformer but this error is showing. Is that anything wrong in my code? I follow this instructions to run this "...
Ayesha Khatun's user avatar
1 vote
0 answers
38 views

java.lang.IllegalArgumentException using Stanford Parser and Jetpack Compose

I want to display a graph for a parsed sentence using graphviz. So I have a class in which the sentence is parsed and returns a Png file: fun createDependencyTree(sentence: String): File { // Load ...
Elías 973's user avatar
1 vote
0 answers
40 views

Displaying a graph for parsed sentences with Stanford-parser

I am using Android Studio and I want to know if there is any way to create a dependency tree similar to the one below as an output for parsed sentences using the stanford-parser implementation or any ...
Elías 973's user avatar
2 votes
1 answer
130 views

Displaying parser tree using Jetpack Compose

I am using Stanford's parser in Android Studio. I want to display a parsed sentence in the form of a tree using Jetpack Compose and I have created two classes that serve this purpose. The problem I ...
Elías 973's user avatar
0 votes
0 answers
68 views

sentences to clauses with Python

I am trying to split the sentences into clauses: Main clause + subordinate clause. I suppose the clause is grammatical unit that contains a verb. I have used the standford parser tool to extract the ...
Shiyun Wang's user avatar

15 30 50 per page
1
2 3 4 5
221