1
我想了解這個運算符(~>
)是指Scala中的任何內容還是特定於域的?運算符〜>在Scala中的含義?
我想了解這裏的Scala代碼。 http://nlp.stanford.edu/software/tmt/tmt-0.4/examples/example-1-dataset.scala
我想了解這個運算符(~>
)是指Scala中的任何內容還是特定於域的?運算符〜>在Scala中的含義?
我想了解這裏的Scala代碼。 http://nlp.stanford.edu/software/tmt/tmt-0.4/examples/example-1-dataset.scala
~>
在scala中沒有特別的意義。在這種情況下,它只是由ScalaNLP Breeze定義的方法(請參閱http://www.scalanlp.org/api/#breeze.text.tokenize.Tokenizer)
請注意,'〜>'也是[Scala的解析器組合器庫](http://www.scala-lang.org/ API /電流/ index.html的#$ scala.util.parsing.combinator.Parsers解析器)。 – 2013-04-09 15:22:51
確實。但是,由OP鏈接的代碼片段不使用解析器組合器,但使用scalaNLP。 – 2013-04-09 15:30:53
〜>也被用作未經過濾的操作符(例如http://unfiltered.databinder.net/Response+Functions.html) – 2013-04-10 17:46:04