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

Graalvm unknown identifier when passing java object to js

I am trying to run this Graalvm sample code: package org.homi.scripting.experimental; import org.graalvm.polyglot.*; import java.nio.file.*; import static java.nio.file.StandardWatchEventKinds.*; import java.io.File; import…
omri
  • 352
  • 2
  • 18
0
votes
1 answer

IndexError: list index out of range in while using polyglot

Im having issues when using polyglot... is it a bug in polyglot?? Below provided is the codes import polyglot from polyglot.downloader import downloader print(downloader.supported_languages_table("ner2", 3)) Issue persists for the following code…
Antony Joy
  • 301
  • 3
  • 15
0
votes
0 answers

Polyglot for Python installed on Windows, but won't run simple test

Polyglot seems installed, but can't run a simple test script from the official documentation. I am running Python 3.9 on Windows 10 on a 64-bit machine. I used pip (pip install ) to install pycld2-0.41-cp39-cp39-win_amd64.whl and…
Topological Sort
  • 2,733
  • 2
  • 27
  • 54
0
votes
1 answer

GraalVM - Exposing Java complex objects to JavaScript

Using GraalVM, to expose Java objects to JavaScript, I am using ProxyObject to wrap them. For this purpose, I am using ProxyObject.fromMap method like the following: ProxyObject exposedObject =…
The_Outsider
  • 146
  • 8
0
votes
1 answer

Unicode decode error when installing polyglot

I encountered a problem installing polyglot with pip install polyglot. I checked the setup.py, the encoding is utf-8, which is supposedly correct for all languages. I tried changing the encoding to utf-16 but the same problem occured. ERROR: Command…
Luc
  • 737
  • 1
  • 9
  • 22
0
votes
1 answer

No module named 'polyglot.text'; 'polyglot' is not a package

I am new in python and I am trying to import polyglot module in my code. I have installed polyglot explained in Polyglot Installation, everything went good but it still gives me the same error. ModuleNotFoundError: No module named 'polyglot.text';…
sawsan alzubi
  • 21
  • 1
  • 5
0
votes
1 answer

Graal VM components required for a Node calling Java polyglot application

I planning to GraalVM to merge two (services one using Node and other based on Java) with Node as the main entry point language which calls classes/constructs in Java. I was reading about GraalVM but was not able to find below information in…
Vijeenrosh P.W
  • 359
  • 1
  • 3
  • 8
0
votes
1 answer

how to override downloader directory with local directory in polyglot in python

I run polyglot sentiment detection. When I upload it to the server I cannot run the downloader.download("TASK:sentiment2") command, so I downloaded the sentiment2 folder and saved it in the same folder as the python file. I tried to set…
0
votes
2 answers

com.oracle.truffle.polyglot.PolyglotImpl (in unnamed module) cannot access class org.graalvm.polyglot.impl.AbstractPolyglotImpl

I tried to extend scaffolded quarkus demo, https://code.quarkus.io/, with polyglot code for GraalVM: @GET @Produces(MediaType.TEXT_PLAIN) public String hello() { String out = "From JS:"; try (Context context = Context.create()) { …
user555945
0
votes
1 answer

How can I run this Polyglot token/tag extractor in PyCharm?

I am evaluating various named entity recognition (NER) libraries, and I'm trying out Polyglot. Everything seems to be going well, but the instructions tell me to use this line in the command prompt: !polyglot --lang en tokenize --input…
0
votes
1 answer

How to achieve Polyglot with Prisma, MySQL, neo4j and redis?

I am using Prisma + MySQL in Production. Works great! There's a need in near future where we need to use neo4j alongside/completely. Any suggestions on can we achieve this with the existing artifacts, as apparently Prisma doesn't support neo4j. So…
Pratik Makune
  • 31
  • 1
  • 7
0
votes
1 answer

Why doesn't work Polyglot that I installed with git or the wheel files?

I tried install Polyglot module to determine the language like this on Python. But it doesn't work.Are there solution?Or is it possible not to work?My error message is; ModuleNotFoundError Traceback (most recent call last) in…
mr t
  • 1
  • 1
0
votes
1 answer

How to use Graalvm's Truffle framework with Groovy?

The Graalvm jdk uses the Truffle framework to call functions and receive objects from other languages, such as R, Python, Ruby and Javascript. How can I use it from Groovy? Can I call it's APIs using Groovy code? Or do I have to call the Truffle…
dilvan
  • 2,109
  • 2
  • 20
  • 32
0
votes
1 answer

Using polyglot to query GRPC service and pass timestamp as one of the request parameters

From the command line I am calling polyglot to query a GRPC service. The request object that I am constructing has an attribute for TimeStamp called 'as_of'. How do I pass a valid timestamp? What should be the format and how do I generate one? I…
serah
  • 2,057
  • 7
  • 36
  • 56
0
votes
1 answer

Unable to install polyglot on macOS High Sierra 10.13.6

I tried installing through pip install polyglot and got following error: Collecting polyglot Using cached https://files.pythonhosted.org/packages/e7/98/e24e2489114c5112b083714277204d92d372f5bbe00d5507acf40370edb9/polyglot-16.7.4.tar.gz Requirement…
Daniel García Baena
  • 1,191
  • 4
  • 19
  • 33