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
0
votes
1 answer

Empty sequence when looping on a sequence for the second time

In stanza, I would like to loop two times over a sequence. I have something like that: public defn function1-and-function2 (s:Seqable) -> [Double, Double]: [function1(s), function2(s)] with public defn function1 (s:Seqable) ->…
0
votes
1 answer

How do I find the index of an element in a Tuple if it exists?

Say I have this: val index? = label return: for (this in tuple, i in 0 to false) do: if this == that: return(i) match(index?:Int): println("index was %_" % [index]) else: println("not found") Is there a…
0
votes
1 answer

Stanza and CoreNLPClient is giving different output for Arabic

I am trying to use Stanza for Arabic PoS tagging. After analyzing the output it seems that both are giving different results. It seems that CoreNLP is more accuracte than stanza model for Arabic. Can anyone help why this is the case as both are…
Mahek Shah
  • 485
  • 2
  • 5
  • 17
0
votes
1 answer

How to write a fall-through switch statement in Stanza?

I'm writing a switch statement in Stanza and some of my cases are the same. I'd like to minimize code repetition. How can I merge cases together? val a = randomSmallInteger() switch(a) : 0 : println("zero") 1 : println("one") 2 : println("two…
ariel.hi
  • 11
  • 3
0
votes
2 answers

How do I compute the argmax of a function on a list in Stanza?

I'd like to know if there is a function to compute the argmax of a function f on a list of numbers (integers, longs, floats) numbers in Stanza. It would have the following behaviour: defn argmax (f, numbers: Tuple) : val N = length(numbers) if N…
0
votes
1 answer

" Error: unable to start the CoreNLP server on port 9000" cannot use stanfordcorenlp via stanza

I tried to use stanfordcorenlp via stanza and I installed them in anaconda. But when I try to run it, I always get OSError Traceback (most recent call…
Mercurium
  • 11
  • 1
0
votes
2 answers

Attribute error when attempting to install Stanza CoreNLP interface in Jupyter notebook

I am trying to use Stanza in a Jupyter notebook. This is the code I used: !pip install stanza import stanza corenlp_dir = './corenlp' stanza.install_corenlp(dir=corenlp_dir) # Set the CORENLP_HOME environment variable to point to the installation…
Ryan Chng
  • 117
  • 4
  • 10
0
votes
1 answer

how to install staza for python 3.7 (this command is returning error (!pip install stanza ))

I am trying to instal stanza for lemmatization purposes using this command: !pip install stanza but it's returning the following error. Please help I am new to python. Collecting stanza Using cached stanza-1.1.1-py3-none-any.whl (227 kB) ERROR:…
Sam
  • 1
  • 2
0
votes
2 answers

STANZA/ RuntimeError: Integer division of tensors using div or / is no longer supported

I want to use stanza for tokenizing, pos tagging and parsing some text I have, but it keeps giving me this error. I've tried changing the way a I call it but nothing happens. Any ideas? My code(Here a iterate through a list of list of text and appli…
paiva
  • 1
  • 1
  • 2
0
votes
1 answer

How to draw the dependency tree from the CoreNLPClient parsing result?

I wanted a dependency tree for the parsing result. I did the parsing using the code given on the github repo of stanford core nlp I got the result as follows.[jupyter notebook result screenshot][1] I have seen other answers mentioning graphviz and…
DeeDee
  • 1
  • 1
0
votes
1 answer

get information from xml node using agsxmpp library

26164 Fhh 11/25/2016 6:30:39 AM 0 get information…
bilal
  • 648
  • 8
  • 26
0
votes
1 answer

Android XMPP chat single tick mark and how to read h value from logs

I am developing chat app using these two libraries org.igniterealtime.smack:smack-android-extensions:4.1.3 org.igniterealtime.smack:smack-tcp:4.1.3 the problem is after send the message to user i am getting xmpp stanza acknowledgements like this RCV…
Rambabu
  • 9
  • 2
0
votes
2 answers

Accessing JSON object inside Message Stanza using Smack Library

my addAsyncStanzaListner is being called when an ack message is received from Firebase Cloud Messaging services. I need to ack this messages according to the docs. The problem that I am having is I can't reach the "message_type" "key"/"value" pair…
i_o
  • 777
  • 9
  • 25
-1
votes
1 answer

How to Export Stanza to ONNX format?

How to export Stanza to ONNX format? It seems impossible to just simply train the model.
-1
votes
1 answer

Reducing Verbosity in formatted strings (Stanza)

I'm crafting many strings from a few base strings for regex-related operations, and I am wondering if there is a less verbose way to write this. I have for my base strings: val ALPHA = "[a-zA-Z]" val ODD = "[13579]" val EVEN = "[02468]" val INEQ =…
ariel.hi
  • 11
  • 3
1 2 3
4