Questions tagged [opennlp]

Apache's libraries for natural language processing (NLP).

Filter by
Sorted by
Tagged with
-1 votes
0 answers
17 views

Is OpenNLP thread safe?

I wrote a private library that uses openNLP tokenizer, POS-tagger and lemmatizer. The library pools the tokenizer, tagger and lemmatizer for the same language, and it reuses them. It worked fine when ...
Kuro's user avatar
  • 299
0 votes
0 answers
32 views

Downloading TensorFlow BioBERT model

This command prompt is taking forever to download. $ transformers-cli download model monologg/BioBERT I executed the script within Python virtual environment (Python version is 3.10.12) and I have ...
TraPS-VarI's user avatar
0 votes
0 answers
33 views

Name Entity recognition using java

I want to implement a small and simple code to be able to extract a named entity from a small text. example: the user enters this sentence: Mr. Smith visited the hospital in New York for his asthma ...
khaled djellal's user avatar
0 votes
0 answers
16 views

"Invokedynamic Error when Running OpenNLP on Android (Min SDK 13)"

Compile error Packaging error: java.lang.RuntimeException: com.a.b.a.b.al: ERROR in org.apache.maven.surefire.junitcore. ConcurrentRunListener.:(Lorg/ apache/maven/surefire/api/report/ ReporterFactory;...
Fahri's user avatar
  • 19
1 vote
0 answers
43 views

Best Local Model for Running Questions on Docs

Looking for some recommendations with respect to ideal LLM models that fit the following criteria:- Open Source Downloadable (can be run offline on local server) Can be used for answering questions ...
Abhay's user avatar
  • 87
1 vote
1 answer
38 views

How to assign multiple tags to a token using OpenNlp

I'm using OpenNLP and it works fine for detecting parts of speech and such when doing this: try (InputStream modelIn = new FileInputStream("en-pos-maxent.bin"){ POSModel model = new ...
Jonathan's user avatar
1 vote
1 answer
120 views

OpenNLP: Class file has wrong version 55.0, should be 52.0

I'm using Open NLP (Version apache-opennlp-2.2.0) library in IntelliJ IDEA version 17.0.6, but I get the following message: java: cannot access opennlp.tools.namefind.NameFinderME bad class file: /C:...
Hamza's user avatar
  • 19
1 vote
0 answers
43 views

Why are the NER NamedEntityParser not appearing in my list of available parsers in Tika (2.8.0)

I am trying to get named entity recognition to work within Tika. I have followed the guidelines that are provided here by David Meikle as well as the guide within the tika-docker examples git repo. I ...
David Corkill's user avatar
0 votes
0 answers
29 views

Sentence detection with Apache OpenNLP - removing headers, unterminated sentences etc

I am using Apache OpenNLP v2.2.0 and am attempting to detect sentences from the following sort of text: April 2023 This is header one The quick brown fox jumps. Over the lazy dog a fox is seen to ...
Chris Powell's user avatar
0 votes
0 answers
134 views

I'm trying to import any Natural Language Processing Library for reference within my Unity project

I want to import an opensource NLP library into my Unity project but no internet resource has worked and I can't figure out the issue but I assume it has to do with version compatibility. My project ...
JM Wesierski's user avatar
0 votes
0 answers
24 views

What is the better and more precise way to train a Name Finder model in OpenNLP, NameFinderME or TokenNameFinderTrainer?

I'm currently working on a project that requires me to train a Name Finder model in OpenNLP to recognize specific entities in text. I've come across two different approaches for training the model, ...
Vivek Mandlik's user avatar
0 votes
0 answers
74 views

GCP Vertex AI - Insight from Text Data

We are trying to use GCP's Vertex AI to extract insights, summary and the query against the Text Data that we upload. Is it possible to do that? We are simply looking for ways to extract information ...
Sabari's user avatar
  • 137
0 votes
1 answer
56 views

How to get opennlp plugin for pycharm

I have converted java codes to python but some functionalities which can only be done through java are being used so opennlp package of java has to be used and i am not able to get any plugin in ...
ASHUTOSH KAUSHAL's user avatar
0 votes
0 answers
36 views

NLP tool to integrate with Apex class

I am using the Apex Email Services to process inbound emails and search for occurances of date in the email. I am searching for a NLP tool that I can integrate with my Apex class inorder to do the ...
deep4code's user avatar
0 votes
0 answers
30 views

How to Detect Present Simple Tense in English Sentences using a Rule-Based Approach?

I have a straightforward task of determining the sentence structure, specifically to identify if a sentence written in plain English is in the "present simple" tense. I am aware of a couple ...
Volodya Lombrozo's user avatar
2 votes
0 answers
167 views

How to create a simple Italian Model for a Named Entity Extraction of Persons using OpenNLP?

I have to do a project with OpenNLP, strictly in italian language. Since it's almost impossible to find some existing structures in this language, my idea is to create a simple model myself. Reading ...
Namibò's user avatar
  • 31
0 votes
2 answers
68 views

How can I exract a full sentence using Apache NLPCraft?

In my model file I am using a macro with a regex extract any space-separated alpha-numeric words to capture an user-input sentence i.e. macros: - name: "<GENERIC_INPUT>" macro: &...
Cesare Contini's user avatar
0 votes
1 answer
174 views

Using for loop to search through string and create data frame

I am trying to use openNLP to look through rows of text and classify sentences into thematic buckets. Here is a sample df: dat <- data.frame(text=c("A fluffy crab discovered off the coast of ...
scotiaboy's user avatar
1 vote
0 answers
50 views

sprintf("%s%s") returning 'character(0)' instead of string when combining two lists

I'm trying to combine two lists to extract the subject associated with each verb in a list of sentences. (In this case, the subject is the noun directly preceding the verb). I am having trouble with ...
garson's user avatar
  • 1,515
0 votes
1 answer
75 views

R openNLPmodels.en package no longer available?

the R package openNLPmodels.en used to be available from https://datacube.wu.ac.at/src/contrib/openNLPmodels.en_1.5-1.tar.gz but this url no longer works... Does anyone know if it's available anywhere ...
chrisjacques's user avatar
1 vote
1 answer
249 views

How to handle LemmatizerTrainer 'UTFDataFormatException: encoded string too long'?

I am using Opennlp to train a model for lemmatization of german words. Therefore I use the opennlp cli and the training set of UD_German-HDT which can be downloaded here The training itself works fine ...
wero026's user avatar
  • 1,227
1 vote
1 answer
56 views

How to annotate word constituents within sentences?

I am using openNLP to annotate words within sentences throughout a text. As a final result, I would like word ID to match their order within in each sentences, with the order starting from 1 each ...
Linkr1's user avatar
  • 11
0 votes
0 answers
582 views

cannot import name 'AllennlpDataset' from 'allennlp.data.dataset_readers.dataset_reader'

I am trying to implement one research paper. While running this code (https://github.com/abubakar-ucr/LEONA/blob/master/model/end2end_model.py), I keept getting this error. The error occurs at line ...
Ashutosh Kumar Trivedi's user avatar
0 votes
0 answers
68 views

Get verb "base", singular non-possessive word, using OpenNLP

I'm considering using the C# implementation of OpenNLP in my project. There are two main things I'd like to do. Get the "base" form of a verb. For example: Input ...
CarenRose's user avatar
  • 1,260
0 votes
2 answers
189 views

Can I use message broker to stream PDF or MS Word document content as XML?

I am trying to send content of word document and PDF to Apache OpenNLP. I am wondering if I can use ActiveMQ to read the MS word so that I can trigger a process to Apache Kafka to process the stream. ...
user avatar
1 vote
1 answer
475 views

Text Summariser NLP api for JAVA [ Summarising Big Text into small summary ]

Can we summarise the website content in 5 lines ? using NLP library in JAVA? I see apache libraries for open nlp but none of them talks about summarisation or conclusion of the big text in 5 lines or ...
ss-ss-v1's user avatar
1 vote
0 answers
81 views

replicate frontend command using restsharp

I run a docker image taken from here using this command: docker run -e ANNOTATORS=truecase,ner -p 9000:9000 -ti nlpbox/corenlp When using the frontend the person/entity john smith is nicely ...
cs0815's user avatar
  • 16.9k
0 votes
1 answer
159 views

Are there any alternate ways other than Named Entity Recognition to extract event names from sentences?

I'm a newbie to NLP and I'm working on NER using OpenNLP. I have a sentence like " We have a dinner party today ". Here "dinner party" is an event type. Similarly consider this ...
Manoj Rag's user avatar
0 votes
0 answers
290 views

Named entities with openNLP in R: what am I doing wrong?

I've been experimenting with text minning/NLP/preprocessing in R. I've been trying to get NEE/NER to work on a simple piece of text. Here's the text "Hocutt sells evidence-based ethics. It is ...
user213717's user avatar
0 votes
0 answers
64 views

Calling method works fine the first time but raises a null after

I'm using a Natural Language Processing library OpenNLP on Android and first I have to link to a model, and I do that in the main method such as this, first I instantiate the object InputStream, ...
Jouan H. Sulaiman's user avatar
0 votes
0 answers
133 views

How to train DeepLearning4J model Using a Java Object... Cant find assistance anywhere on this question

I am working on a Phrase Input and Response System (Similar to SIRI) want to train a Model on how to detect a phrase category, i.e. command, misc., special, using a Phrase[] Java object from Apache ...
X Builder's user avatar
  • 211
0 votes
1 answer
178 views

Is there a way to force the Apache OpenNLP parser to see a verb phrase instead of a noun phrase?

I'm writing a command parser using Apache's OpenNLP. The problem is that OpenNLP sees some commands as noun phrases. For example, if I parse something like "open door", OpenNLP gives me (NP (...
Daniel Ellison's user avatar
0 votes
1 answer
198 views

OpenNLP: Unable to access jarfile LemmatizerTrainerME

I'm having trouble to build my Lemmatizer bin file. According to this answer, I should run opennlp LemmatizerTrainerME -model en-lemmatizer.bin -lang en -data /path/to/en-lemmatizer.dict -encoding UTF-...
Natan Fernandes's user avatar
1 vote
2 answers
845 views

flair import failing on mac ubuntu and google colab

i am trying to use flair nlp framework , https://github.com/flairNLP/flair but getting error # load the NER tagger tagger = SequenceTagger.load('ner') tried on local , remote and other machine . all ...
ajaypr55's user avatar
  • 141
0 votes
1 answer
151 views

OpenNLP doccat trainer always results in "1 outcome patterns"

I am evaluating OpenNLP for use as a document categorizer. I have a sanitized training corpus with roughly 4k files, in about 150 categories. The documents have many shared, mostly irrelevant words - ...
Orolo's user avatar
  • 119
0 votes
1 answer
136 views

How to set base timestamp for relative date parsing in NLPCraft?

I'm working with nlpcraft to build a parsing system for scheduling. Users are asked when they will be doing certain activities and they can respond with relative or absolute dates, such as "...
Devin Lane's user avatar
0 votes
1 answer
142 views

OpenNLP Named Entity Recogniser (NER) not recognising money

I am running a DKPRO UIMA pipeline with the OpenNLP Named Entity Recogniser running the following models: money, date, location, person. All of them work except money. Monetary items get identified ...
RodP's user avatar
  • 390
1 vote
2 answers
12k views

AttributeError: 'History' object has no attribute 'evaluate'

from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import Dropout import numpy as np frames=[singleteamone_tweets,singleteamtwo_tweets,...
Ya M IN's user avatar
  • 23
0 votes
1 answer
437 views

Maven Apache OpenNLP tools getting NullPointerException

I am trying to use Apache OpenNLP with Maven. I add the dependency in the pom <groupId>org.example</groupId> <artifactId>nlp-fun</artifactId> <version>1.0-SNAPSHOT</...
vincente's user avatar
1 vote
1 answer
144 views

How to use GPU when training OpenNLP models?

I want to train an OpenNLP model using the CLI on a GPU server that I access remotely. I am familiar with utilizing the GPU when training pytorch models, but I realized I'm not sure how this would ...
tayloor's user avatar
  • 13
0 votes
1 answer
136 views

OpenNLP in Android getting FileNotFoundException when trying to initialize posModel

I am using open nlp in my project. I would like to use the dictionary lemmatizer but i'm unable to input the posModel correctly i have a summaryActivity class that calls this function on the click of ...
mtah's user avatar
  • 13
1 vote
0 answers
406 views

In R, how to do named entity recognition?

I have looked at this guide https://lincolnmullen.com/projects/dh-r2/nlp.html and this youtube video https://www.youtube.com/watch?v=0lpQludiI-0 which both use the same method. When I try and ...
BeginnerByron's user avatar
1 vote
1 answer
484 views

Entity Recognition in R error in openNLPdata

This is my first attempt as using stackoverflow and I am also still very new to R, so I apologise if I screw up any formatting. I am currently trying to get the entity recognition commands to work ...
completebeginner31's user avatar
1 vote
1 answer
1k views

How to Extract subject Verb Object using NLP Java? for every sentence

I want to find a subject, verb, and object for each sentence and then it will be passed to natural language generation library simpleNLG to form a sentence. I tried multiple libraries like Cornlp, ...
pritul panchal's user avatar
1 vote
0 answers
95 views

openNlp custom NER model accuracy

help with custom NER appreciated! I just trained my own model. And when I evaluate it in cmd with a paragraph, it DOES recognises the entity, however it also tags abbreviations, like CN or EPA or ...
Хандуха Хандуха's user avatar
0 votes
2 answers
434 views

Automatic edit of file in dockerized container

I have my dockerized container for elasticsearch and kibana running, with it automatically installing some plugins once i start the docker container. I need to edit the config/elasticsearch.yml file ...
richylyq's user avatar
2 votes
0 answers
112 views

How to modify or retrain existing OpenNLP models?

Is there any way to retrain existing OpenNLP models?? i.e to append new items to the existing models from OpenNLP ? Suppose I want to add few new entries to existing en-ner-date.bin because some of ...
Abhishek Sengupta's user avatar
4 votes
1 answer
1k views

How to implement incremental learning in NLP

We are building a system wherein, we would have a initial very small amount of trained data to start with. The job is to Classify the incoming data(Document, for our case) into 2 categories: Category ...
siddhartha chakraborty's user avatar
0 votes
1 answer
731 views

Get the topics or the keywords of a sentence

Good morning all Does anyone of you know a tool or an API or something that takes a sentence as input and as output, it gives the topics or keywords of this sentence? I tried TextRazor in the online ...
mina's user avatar
  • 1,882
0 votes
2 answers
326 views

opennlp.tools.postag.POSTaggerME.train() java.lang.NullPointerException

There are same problem! I get InputSteram = null, I used IntelliJ IDEA, OpenNLP 1.9.1. on Ubuntu 18.04 public void makeDataTrainingModel() { model = null; System.out.println("POS ...
Alex Titov's user avatar

1
2 3 4 5
14