English 中文(简体)
JRuby and Generics
原标题:JRuby and Generics
  • 时间:2011-01-07 05:53:54
  •  标签:
  • jruby

我有以下 j:

nameFinderModel = NameFinderME.train("en", "organization",
        sampleStream, Collections.<String, Object>emptyMap());

我的改划如下:

nameFinderModel = NameFinderME.train("en", "organization", sample_stream, {})

这是一种适当的转变吗? 是否有将通用名改为JRuby的一般准则?

最佳回答
问题回答

暂无回答




相关问题
what do these ruby warnings mean?

cqq.rb:96 **warning: Statement not reached.** /root/newpackage/lib.rb:727 **warning: instance variable @object not initialized** Error: Your application used more memory than the safety cap of 500m. ...

How to register a JDBC driver using jruby-complete.jar?

I m trying to write a script that is executed with the jruby-complete.jar like so: java -cp derby.jar; -Djdbc.drivers=org.apache.derby.jdbc.EmbeddedDriver -jar jruby-complete.jar -S my_script.rb I m ...

How do I unmarshal a ruby object in java?

I have a an object that I d like to grab the contents of in java. The only problem is that is is currently in ruby. irb(main):050:0> blah => "...

What s the difference between Ruby and JRuby? [closed]

Can anyone please provide me in layman s terms the difference between developing a JRuby and a Ruby, Rails application? I use NetBeans as my Ruby on Rails IDE and every-time I create a project is ...

Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

热门标签