Questions tagged [polyglot]

Multilingual text (NLP) processing toolkit for Python

From the homepage:

Polyglot is a natural language pipeline that supports massive multilingual applications.

Features:

  • Tokenization (165 Languages)
  • Language detection (196 Languages)
  • Named Entity Recognition (40 Languages)
  • Part of Speech Tagging (16 Languages)
  • Sentiment Analysis (136 Languages)
  • Word Embeddings (137 Languages)
  • Morphological analysis (135 Languages)
  • Transliteration (69 Languages)
111 questions
2
votes
3 answers

Using Multiple Database Types to Model Data in a single application

Does it make sense to break up the data model of an application into different database systems? For example, the application stores all user data and relationships in a graph database (ideal for storing relationships), while storing other data in…
onejigtwojig
  • 4,771
  • 9
  • 32
  • 35
2
votes
2 answers

GraalVM Polyglot: pass arguments from Java to LLVM (C++)

Following the docs I could run Polyglot application where the start language is Java and the target language is C++, which is in a separated source file. I wonder how could I pass some arguments from Java to C++. Code examples Start Language…
Fouyer
  • 115
  • 1
  • 8
2
votes
0 answers

Is there a way in Polyglot to permanently "fix" the language code of an Hebrew text from ''iw'' to ''he''?

I want to make a simple sentiment analysis on a Hebrew text using Polyglot in python 3.6. The problem is that Polyglot recognizes the text language code as "iw" and not as "he", and therefore is not able to process it. As shown at: use polyglot…
yotam
  • 21
  • 2
2
votes
1 answer

How to use Polyglot.js in my Webpack Project?

Trying to use Polyglot for the first time in my Webpack project but keep getting the error that polyglot is not defined. Can I import it from node somewhere? Or do I need to import them local? var polyglot = new Polyglot(); polyglot.extend({ …
2
votes
1 answer

Do programs written in a strict superset of a language count as a polyglot?

First of all, this is the definition of a polyglot: In the context of computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independently of the…
user142019
2
votes
2 answers

Maven 3 has a new DSL formats for its POM. Is there a similar sort of format for Spring applicationcontext.xml files?

In Maven 3 there are new DSL replacements for the POMs. See: http://polyglot.sonatype.org/groovy.html for the wonderfully terse syntax. Is there something similar that can be used for Spring applicationcontext.xml files?
HappyEngineer
  • 4,017
  • 9
  • 46
  • 60
2
votes
0 answers

Distributing ruby gems in a C/C++ GNU autotools project

I am working in a polyglot project which mostly uses C++ and for some high level tasks Ruby. In my Ruby scripts I extensively used few very useful gems. However, although my Autotools setup is installing the ruby scripts, I do not find any way to…
Vicente Bolea
  • 1,409
  • 16
  • 39
1
vote
0 answers

Not able to call Java class via Karate."org.graalvm.polyglot.PolyglotExcepti1on: TypeError: Access to host class is not allowed or does not exist."

I am trying to call a Java class which has two methods in it. But the execution fails in the below line. `* def javademo = Java.type('feature.AuthCode') Error: * def javademo = Java.type('feature.AuthCode') js failed: >>>> 01:…
reshma
  • 11
  • 1
1
vote
0 answers

Unable to access java method having arguments using java interop in karate (methods with no arguments are accessed fine)

This is my Java Class (for the sake of simplicity, omitting few obvious details) package com.abc.hstools.core.services; import com.abc.hstools.core.css.MatchListResponse; public class ConsumptionSportsService { //constructor with…
RD96
  • 11
  • 1
1
vote
0 answers

org.graalvm.polyglot.PolyglotException when '(' ')' used in regex in karate.match()

I want to check whether the values in array match regex using 'karate.match' But I'm getting polyglot exception because I have brackets in my regex, any idea how to fix this issue? * def result= karate.match("each valueData == '#regex…
1
vote
1 answer

Polyglot for C and PHP

I was thinking of a compiler that spits out C/PHP polyglots, but not sure if possible. Main issue is the PHP opening/closing brackets, . I wanted to make them as macros that expand to nothing, but macros can't have such identifiers. Any…
Olle Härstedt
  • 3,799
  • 1
  • 24
  • 57
1
vote
0 answers

how to install polyglot on windows

I would like to use the python polyglot library but I couldn't manage to use it I installed it using the command git clone https://github.com/aboSamoor/polyglot cd polyglot python setup.py install when I want to try the code proposed on their…
An0n7me
  • 11
  • 3
1
vote
1 answer

GraalVM: How do I import libraries from different languages in a single project? I am using IntelliJ

I have to make some functions that will use different lanaguages (python, R, js). I got stuck at the part of generating random numbers in Python to initialize a list with random elements. I looked up on ways of initializing random lists, and then I…
RidiX
  • 819
  • 6
  • 9
1
vote
1 answer

Graal SDK works when the application runs but fails in unit test

I'm using Graal SDK in order to "translate" an R script to Java code. The line is compiled and behaves well when the application runs: Source.newBuilder("R", new File(config.defaultScriptPath)).build() However, once a unit test that executes this…
CrazySynthax
  • 13,662
  • 34
  • 99
  • 183
1
vote
0 answers

How can I install polyglot in Python anaconda?

I want to install polyglot library in python anaconda environment but I can't. Can you help me? pip install polyglot My error code: Complete output (11 lines): running install running build running build_py creating build …
syurtekin
  • 25
  • 3