gidim / babler Goto Github PK
View Code? Open in Web Editor NEWData Collection System For NLP/Speech Recognition
License: Apache License 2.0
Data Collection System For NLP/Speech Recognition
License: Apache License 2.0
I am facing issue in installation of software, can you help me please.
i am having a problem with my java code infortunoly, my code are not working after certain point, after reading the "operacao" value, the code simply stops. Can someone help me?
There is my code:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
//habilitando função ler
float a,b;
float soma,subtracao,multiplicacao,divisao;
String operacao;
//declarando variaveis
System.out.println("insira um valor para A: ");
a = ler.nextFloat();
//escreva e leia valor de A
System.out.println("Digite a operação matemática que deseja realizar: +,-,x ou /: ");
operacao = ler.next();
//escreva e leia valor da operação
while(operacao != "+" && operacao != "-" && operacao != "x" && operacao != "/");{
if (operacao != "+" && operacao != "-" && operacao != "x" && operacao != "/");{
System.out.println("Operação inválida, digite +,-,x ou / para as operações matemáticas: ");
operacao = ler.next();
//enquanto operação <> "+","-","x" e "/" escreva "Operação inválida, digite +,-,x ou / para as operações matemáticas:" e leia operação
}
}
System.out.println("Insira um valor para B: ");
b = ler.nextFloat();
// escreva e leia valor de B
soma = a+b;
subtracao = a-b;
multiplicacao = a*b;
divisao = a/b;
// atribuindo valores as expreções matemáticas
if (operacao == "+"){
System.out.println(a+ " +"+b+" é igual a"+soma);
// se valor de operação = "+" então operação de soma
}
if (operacao == "-"){
System.out.println(a+" -"+b+" é igual a"+subtracao);
// se valor de operação = "-" então operação de subtração
}
if(operacao == "x"){
System.out.println(a+" x"+b+" é igual a"+multiplicacao);
// se valor de operação = "x" então operação de multiplicação
}
if (operacao == "/"){
System.out.println(a+" /"+b+" é igual a"+divisao);
// se valor de operação = "/" então operação de divisão
}
}
}
can you help or provide me guidelines how to install it to my website?
I want to know that can i get dataset for different websites like in given links for data science purpose? website
Hi, I've been trying to install Babler on my Mac (Big Sur) today using Java 8 (adoptopenjdk-8) and I've been running into some issues. The first couple issues I was able to solve by by modifying pom.xml, so I will try to describe them here.
Issue one: I was getting an error that com.sun.org.apache.regexp.internal could not be found, so I added this to the pom.xml:
<dependency>
<groupId>javax.xml.parsers</groupId>
<artifactId>aixport</artifactId>
<version>1.3.1</version>
</dependency>
Issue two: I was getting another build failure error that read "The forked VM terminated without saying properly goodbye. VM crash or System.exit called." Originally I was able to solve this by ensuring the plugin version was 2.22.0 in pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
However, I'm getting a similar error again. It looks like some of the tests passed successfully but then some of them crashed. If anyone still monitors this repo, can they see something obvious sticking out in this that I'm not seeing? Is one of the "solutions" I used above code-breaking and I should start over from scratch and try something different?
Downloading Language Identifcation Model. 161.7MB From Columbia University
--2021-03-13 20:55:35-- http://www.cs.columbia.edu/~gm2597/completeModel3.gm
Resolving www.cs.columbia.edu (www.cs.columbia.edu)... 128.59.11.206
Connecting to www.cs.columbia.edu (www.cs.columbia.edu)|128.59.11.206|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161736595 (154M)
Saving to: ‘src/main/resources/completeModel3.gm’
src/main/resources/complete 100%[========================================>] 154.24M 13.2MB/s in 12s
2021-03-13 20:55:47 (12.5 MB/s) - ‘src/main/resources/completeModel3.gm’ saved [161736595/161736595]
Installing Maven Dependencies and Building JAR
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< edu.columbia:Babler >-------------------------
[INFO] Building Babler 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Babler ---
[INFO] Installing /Users/elizabeth/Code/Babler/lib/azure-bing-search-java-0.12.0.jar to /Users/elizabeth/.m2/repository/net/billylieurance/azuresearch/azure-bing-search-java/0.12.0/azure-bing-search-java-0.12.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.299 s
[INFO] Finished at: 2021-03-13T20:55:48-07:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< edu.columbia:Babler >-------------------------
[INFO] Building Babler 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Babler ---
[INFO] Installing /Users/elizabeth/Code/Babler/lib/diffbot-java-1.0-SNAPSHOT.jar to /Users/elizabeth/.m2/repository/diffbot/diffbot-java/1.0-SNAPSHOT/diffbot-java-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.290 s
[INFO] Finished at: 2021-03-13T20:55:50-07:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< edu.columbia:Babler >-------------------------
[INFO] Building Babler 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ Babler ---
[INFO] Installing /Users/elizabeth/Code/Babler/lib/feed4j.jar to /Users/elizabeth/.m2/repository/feed4j/feed4j/1.0/feed4j-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.296 s
[INFO] Finished at: 2021-03-13T20:55:51-07:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< edu.columbia:Babler >-------------------------
[INFO] Building Babler 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Babler ---
[INFO] Deleting /Users/elizabeth/Code/Babler/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Babler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 455 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ Babler ---
[INFO] Compiling 86 source files to /Users/elizabeth/Code/Babler/target/classes
[WARNING] /Users/elizabeth/Code/Babler/src/main/java/edu/columbia/main/language_id/LanguageDetector.java:[2,39] ExceptionConstants is internal proprietary API and may be removed in a future release
[WARNING] /Users/elizabeth/Code/Babler/src/main/java/edu/columbia/main/language_id/LanguageCode.java:[4,49] Code is internal proprietary API and may be removed in a future release
[WARNING] /Users/elizabeth/Code/Babler/src/main/java/edu/columbia/main/HTTPClient.java:[9,21] AgentConfigurationError is internal proprietary API and may be removed in a future release
[WARNING] /Users/elizabeth/Code/Babler/src/main/java/edu/columbia/main/HTTPClient.java:[37,8] AgentConfigurationError is internal proprietary API and may be removed in a future release
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Babler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 489 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Babler ---
[INFO] Compiling 10 source files to /Users/elizabeth/Code/Babler/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ Babler ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestDAO
[INFO] Running TestConfigFromFile
[INFO] Running TestLogEntry
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.07 s - in TestLogEntry
[INFO] Running TestResources
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in TestResources
[INFO] Running TestYouTube
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.145 s - in TestConfigFromFile
[INFO] Running TestTweets
log4j:WARN No appenders could be found for logger (edu.columbia.main.LanguageDataManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster created with settings {hosts=[127.0.0.1:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Cluster created with settings {hosts=[127.0.0.1:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:1, serverValue:23}] to 127.0.0.1:27017
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: No server chosen by WritableServerSelector from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=127.0.0.1:27017, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 4, 3]}, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, roundTripTimeNanos=2363687}
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:1, serverValue:24}] to 127.0.0.1:27017
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 4, 3]}, minWireVersion=0, maxWireVersion=9, maxDocumentSize=16777216, roundTripTimeNanos=1334665}
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:2, serverValue:25}] to 127.0.0.1:27017
Mar 13, 2021 8:55:58 PM com.mongodb.diagnostics.logging.JULLogger log
INFO: Opened connection [connectionId{localValue:2, serverValue:26}] to 127.0.0.1:27017
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.219 s - in TestDAO
[INFO] Running TestLanguageManager
log4j:WARN No appenders could be found for logger (edu.columbia.main.LanguageDataManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.332 s - in TestTweets
[INFO] Running TestLanguageIdentifier
log4j:WARN No appenders could be found for logger (edu.columbia.main.language_id.LanguageDetector).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.609 s - in TestLanguageIdentifier
[INFO] Running TestBlogPosts
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.461 s - in TestBlogPosts
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 21, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:01 min
[INFO] Finished at: 2021-03-13T20:56:53-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project Babler: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/elizabeth/Code/Babler/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/elizabeth/Code/Babler && /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Users/elizabeth/Code/Babler/target/surefire/surefirebooter1443627390539250089.jar /Users/elizabeth/Code/Babler/target/surefire 2021-03-13T20-55-57_543-jvmRun3 surefire6142595789670943033tmp surefire_05121312598197826934tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] TestLanguageManager
[ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/elizabeth/Code/Babler && /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Users/elizabeth/Code/Babler/target/surefire/surefirebooter6554868019466165932.jar /Users/elizabeth/Code/Babler/target/surefire 2021-03-13T20-55-57_543-jvmRun2 surefire7090970763162342445tmp surefire_1404471784188848706tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] TestYouTube
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/elizabeth/Code/Babler && /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Users/elizabeth/Code/Babler/target/surefire/surefirebooter1443627390539250089.jar /Users/elizabeth/Code/Babler/target/surefire 2021-03-13T20-55-57_543-jvmRun3 surefire6142595789670943033tmp surefire_05121312598197826934tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] TestLanguageManager
[ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/elizabeth/Code/Babler && /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Users/elizabeth/Code/Babler/target/surefire/surefirebooter6554868019466165932.jar /Users/elizabeth/Code/Babler/target/surefire 2021-03-13T20-55-57_543-jvmRun2 surefire7090970763162342445tmp surefire_1404471784188848706tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] TestYouTube
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:510)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkOnceMultiple(ForkStarter.java:382)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:297)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR] Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/elizabeth/Code/Babler && /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java -Xmx1024m -XX:MaxPermSize=256m -jar /Users/elizabeth/Code/Babler/target/surefire/surefirebooter6554868019466165932.jar /Users/elizabeth/Code/Babler/target/surefire 2021-03-13T20-55-57_543-jvmRun2 surefire7090970763162342445tmp surefire_1404471784188848706tmp
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] TestYouTube
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$600(ForkStarter.java:115)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:371)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter$1.call(ForkStarter.java:347)
[ERROR] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[ERROR] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[ERROR] at java.lang.Thread.run(Thread.java:748)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.