小编Man*_*dar的帖子

使用kevin或mbrola时使用Freetts的例外情况

我正在尝试使用freetts运行程序.我能够编译程序但是我无法使用kevinmbrola语音我最后得到了输出消息

系统属性"mbrola.base"未定义.不会使用MBROLA的声音.
LINE UNAVAILABLE:格式为pcm_signed 16000.0 Hz 16位1通道大端

import javax.speech.*;
import javax.speech.synthesis.*;
import java.util.*;

class freetts {

    public static void main(String[] args) {
        try{ 
            Calendar calendar = new GregorianCalendar();
            String sayTime = "It is " + calendar.get(Calendar.HOUR) + " " + calendar.get(Calendar.MINUTE) + " " + (calendar.get(Calendar.AM_PM)==0 ? "AM":"PM");
            Synthesizer synth = Central.createSynthesizer(null);
            synth.allocate();
            synth.resume();
            synth.speakPlainText(sayTime, null);
            synth.waitEngineState(Synthesizer.QUEUE_EMPTY);
            synth.deallocate();
        }
        catch(Exception e){
            e.printStackTrace();
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

java text-to-speech jsapi

7
推荐指数
1
解决办法
1万
查看次数

Spark ml和PMML导出

我知道这是可能的模型导出为PMMLSpark-MLlib,但怎么样Spark-ML

是否有可能转换LinearRegressionModelorg.apache.spark.ml.regressionLinearRegressionModelorg.apache.spark.mllib.regression到能够调用的toPMML()方法?

java linear-regression pmml apache-spark

7
推荐指数
1
解决办法
2748
查看次数

Impala: Show tables like query

I am working with Impala and fetching the list of tables from the database with some pattern like below.

Assume i have a Database bank, and tables under this database are like below.

cust_profile
cust_quarter1_transaction
cust_quarter2_transaction
product_cust_xyz
....
....
etc
Run Code Online (Sandbox Code Playgroud)

Now i am filtering like

show tables in bank like '*cust*'
Run Code Online (Sandbox Code Playgroud)

It is returning the expected results like, which are the tables has a word cust in its name.

现在我的要求是我想要名称中包含的所有表,cust而表中不应包含quarter2.

有人可以帮助我如何解决这个问题。

hive cloudera hiveql impala cloudera-cdh

6
推荐指数
1
解决办法
3万
查看次数

Impala/Hive 获取表格列表及其大小

我在Oracle DB 中使用了一个查询来生成数据库中的表列表及其所有者和各自的表大小。这是我分享的示例查询。

select owner, table_name, round((num_rows*avg_row_len)/(1024*1024)) MB 
from all_tables 
where owner not like 'SYS%'  -- Exclude system tables.
and num_rows > 0  -- Ignore empty Tables.
order by MB desc -- Biggest first.
Run Code Online (Sandbox Code Playgroud)

我想要来自 Impala/Hive 的类似输出。

注意:我试过show table stats <table_name>这将显示单个表的统计信息。但我想一次性获得所有表格统计信息。有人可以帮助我吗。

sql oracle hadoop hive impala

6
推荐指数
1
解决办法
7368
查看次数