Questions tagged [stanza]

L.B.Stanza is a new programming language designed to significantly increase the productivity of application programmers. Its primary goal is to help programmers tackle the complexity of architecting large programs.

L.B.Stanza (or Stanza for short) is a new programming language designed to significantly increase the productivity of application programmers. Its primary goal is to help programmers tackle the complexity of architecting large programs.

More info: http://lbstanza.org/

60 questions
5
votes
0 answers

Ionic 4 Cannot access ‘Client’ before initialization at Module.createCliention

I am using stanza in ionic 4 , after successful install when i tried to test the connection it throws me error like… ionic 4 Cannot access ‘Client’ before initialization at Module.createClient import * as XMPP from 'stanza'; export class…
Jayprakash Singh
  • 1,343
  • 3
  • 15
  • 28
2
votes
0 answers

Split complex/compound sentence into Simple sentences Python NLP

I am working on a project that works with small sentences, So If user passes long sentences or complex/Compound sentences, I want to parse it to simple sentences and then pass it to the software. I tried the spacy method, but it only works with…
DevPy
  • 439
  • 6
  • 17
2
votes
2 answers

Can't pip install torch

I was trying to pip install stanza and got this message: ERROR: No matching distribution found for torch>=1.3.0 (from stanza) I then ran pip install torch and got the following (the website won't let me include too much code, so here's the full…
chocojunkie
  • 479
  • 2
  • 8
  • 14
1
vote
0 answers

Pickle data truncated error when using Stanza package in Python

I am using the Stanza package in Python to perform language processing tasks on text data. My code is as follows: nlp = stanza.Pipeline(lang='en', processors='tokenize,mwt,pos,lemma', download_method=None) However, I encountered the following error…
Ruoxi NING
  • 11
  • 1
1
vote
1 answer

AttributeError: 'FloatProgress' object has no attribute 'style'

import numpy as np import pandas as pd import torch from torch.utils.data import Dataset import stanza stanza.download('en') nlp = stanza.Pipeline(lang='en') above code used for Creating a Pipeline Stanza provides a plethora of pre-trained NLP…
1
vote
1 answer

NoneType erorr when calling .lower() method on annotated text

I have annotated articles in a list (len=488), and I want to apply the .lower() method on the lemmas. I get the following error message AttributeError: 'NoneType' object has no attribute 'lower'. Here's the code: file =…
1
vote
2 answers

Dask Partitions or Delayed in a NLP Stanza preocess

I´m working over a NLP process with Stanza. Stanza takes a long time to run the NLP process and I understand that my problem is quite partitionable. I use these libraries pip install stanza import stanza stanza.download('es') nlp =…
1
vote
0 answers

is there a method to extract noun-adjs pairs for french?

i want to extract from a sentence a noun-adj pairs : i tried this code : import stanza nlp = stanza.Pipeline("fr") doc = nlp("La voiture est belle et jolie, et grand. Le tableau qui est juste en dessous est grand. La femme intelligente et belle…
1
vote
2 answers

List index out of range with stanford-nlp

I'm trying to remove all blank lines from a large .txt file but whatever method I use it always returns this traceback: Traceback (most recent call last): File "C:\Users\svp12\PycharmProjects\practiques\main.py", line 53, in doc =…
1
vote
1 answer

How to pass a lostanza callback to a C function?

I wish to pass a lostanza function to a C API, where it will be called from C. This is my current implementation : ; callbacks.stanza defpackage callbacks : import core extern call_from_c : (ptr<(() -> int)>) -> int lostanza defn my-callback ()…
1
vote
0 answers

How to represent C pointer the best?

In C function we have SDL_Surface * SDL_GetWindowSurface(SDL_Window *window); In LoStanza interface, this is what I have done to make it work. lostanza defn call-SDL_GetWindowSurface (p : ref) -> ref : val ws = call-c…
S2000Erwin
  • 11
  • 1
1
vote
0 answers

UserWarning: floor_divide is deprecated, and will be removed in a future version of pytorch

I am getting this error and it is preventing my code to run. I try to filter the warning but even so it stops the running of my code. I still after many hours does not figure it out hiw to overcome it. Là où les vêtements de sport connectés actuels…
kely789456123
  • 605
  • 1
  • 6
  • 21
1
vote
1 answer

"HTTPConnectionPool(host='127.0.0.1', port=9000): [Errno 111] Connection refused" error on AWS EMR when loading Stanford NLP model

I am using the Stanford CoreNLP Model in an algorithm, which includes a Java client to the server, the (StanfordCoreNLPClient) in order to interact with CoreNLP, which is written in Java, via the command-line or its web service. Stanford CoreNLP has…
1
vote
1 answer

Stanza not tokenising sentences as expected; can I use newline character as a heuristic?

I am trying to pre-process my text data for a word alignment task. I have a text file of sentences. Each sentence is on a new line: a man in an orange hat starring at something . a boston terrier is running on lush green grass in front of a white…
1
vote
0 answers

How to evaluate pre-trained NER model on my domain specific text with stanza (for coreNLP)?

I am trying to get F1 scores for the pre-trained English model on my specific text domain without doing any training. The docs mention the following command: python -m stanza.utils.training.run_ete ${corpus} --score_${split} However as I don't want…
1
2 3 4