Github user takuti commented on the issue:

    https://github.com/apache/incubator-hivemall/pull/97
  
    ^ In 474027264121c66a673cd6da483111b22f65b2fd, `tokenize_ja()` supports 
"NULL" stop words/tags in order to allow users to explicitly choose default 
set. That is, `null` and `array()` are dealt differently. This modification 
improves usability of the fifth argument.
    
    ```sql
    hive> select
        >   tokenize_ja("今日は特にいい天気ですね。", "normal") as 
default1,
        >   tokenize_ja("今日は特にいい天気ですね。", "normal", 
null) as default2, -- use default stop words
        >   tokenize_ja("今日は特にいい天気ですね。", "normal", 
array()) as no_stopwords, -- "empty" (i.e., no) stop words
        >   tokenize_ja("今日は特にいい天気ですね。", "normal", 
null, null) as default3, -- use default stop word and tags
        >   tokenize_ja("今日は特にいい天気ですね。", "normal", 
null, array()) as no_stoptags, -- "empty" stop tags
        >   tokenize_ja("今日は特にいい天気ですね。", "normal", 
array(), array()) as no_stopwords_stoptags -- "empty" stop words and tags
        > ;
    OK
    default1        default2        no_stopwords    default3        no_stoptags 
    no_stopwords_stoptags
    ["今日","いい","天気"]  ["今日","いい","天気"]  
["今日","特に","いい","天気"]   ["今日","いい","天気"]  
["今日","いい","天気","ね"]     
["今日","は","特に","いい","天気","です","ね"]
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to