久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='w3CKe'><tr id='w3CKe'><dt id='w3CKe'><q id='w3CKe'><span id='w3CKe'><b id='w3CKe'><form id='w3CKe'><ins id='w3CKe'></ins><ul id='w3CKe'></ul><sub id='w3CKe'></sub></form><legend id='w3CKe'></legend><bdo id='w3CKe'><pre id='w3CKe'><center id='w3CKe'></center></pre></bdo></b><th id='w3CKe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='w3CKe'><tfoot id='w3CKe'></tfoot><dl id='w3CKe'><fieldset id='w3CKe'></fieldset></dl></div>
    <tfoot id='w3CKe'></tfoot>
    • <bdo id='w3CKe'></bdo><ul id='w3CKe'></ul>

        <legend id='w3CKe'><style id='w3CKe'><dir id='w3CKe'><q id='w3CKe'></q></dir></style></legend>
      1. <small id='w3CKe'></small><noframes id='w3CKe'>

        使用 Lucene 提取英語單詞

        Stemming English words with Lucene(使用 Lucene 提取英語單詞)

          <tfoot id='PgZTH'></tfoot>

            <i id='PgZTH'><tr id='PgZTH'><dt id='PgZTH'><q id='PgZTH'><span id='PgZTH'><b id='PgZTH'><form id='PgZTH'><ins id='PgZTH'></ins><ul id='PgZTH'></ul><sub id='PgZTH'></sub></form><legend id='PgZTH'></legend><bdo id='PgZTH'><pre id='PgZTH'><center id='PgZTH'></center></pre></bdo></b><th id='PgZTH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PgZTH'><tfoot id='PgZTH'></tfoot><dl id='PgZTH'><fieldset id='PgZTH'></fieldset></dl></div>
                <tbody id='PgZTH'></tbody>
            1. <legend id='PgZTH'><style id='PgZTH'><dir id='PgZTH'><q id='PgZTH'></q></dir></style></legend>

                <bdo id='PgZTH'></bdo><ul id='PgZTH'></ul>
              • <small id='PgZTH'></small><noframes id='PgZTH'>

                  本文介紹了使用 Lucene 提取英語單詞的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在一個 Java 應用程序中處理一些英文文本,我需要對它們進行詞干處理.例如,從文本amenities/amenity"我需要得到amenit".

                  I'm processing some English texts in a Java application, and I need to stem them. For example, from the text "amenities/amenity" I need to get "amenit".

                  函數如下:

                  String stemTerm(String term){
                     ...
                  }
                  

                  我找到了 Lucene Analyzer,但它看起來太復雜了,無法滿足我的需要.http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/analysis/PorterStemFilter.html

                  I've found the Lucene Analyzer, but it looks way too complicated for what I need. http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/analysis/PorterStemFilter.html

                  有沒有辦法在不構建分析器的情況下使用它來詞干?我不了解所有 Analyzer 業務...

                  Is there a way to use it to stem words without building an Analyzer? I don't understand all the Analyzer business...

                  編輯:我實際上需要詞干提取+詞形還原.Lucene 可以做到這一點嗎?

                  EDIT: I actually need a stemming + lemmatization. Can Lucene do this?

                  推薦答案

                  import org.apache.lucene.analysis.PorterStemmer;
                  ...
                  String stemTerm (String term) {
                      PorterStemmer stemmer = new PorterStemmer();
                      return stemmer.stem(term);
                  }
                  

                  參見這里 了解更多詳情.如果您只想使用詞干提取,那么您應該使用 this 而不是 Lucene.

                  See here for more details. If stemming is all you want to do, then you should use this instead of Lucene.

                  您應該在將 term 傳遞給 stem() 之前將其小寫.

                  You should lowercase term before passing it to stem().

                  這篇關于使用 Lucene 提取英語單詞的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

                    <tbody id='KcHXc'></tbody>
                  • <i id='KcHXc'><tr id='KcHXc'><dt id='KcHXc'><q id='KcHXc'><span id='KcHXc'><b id='KcHXc'><form id='KcHXc'><ins id='KcHXc'></ins><ul id='KcHXc'></ul><sub id='KcHXc'></sub></form><legend id='KcHXc'></legend><bdo id='KcHXc'><pre id='KcHXc'><center id='KcHXc'></center></pre></bdo></b><th id='KcHXc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KcHXc'><tfoot id='KcHXc'></tfoot><dl id='KcHXc'><fieldset id='KcHXc'></fieldset></dl></div>
                      <legend id='KcHXc'><style id='KcHXc'><dir id='KcHXc'><q id='KcHXc'></q></dir></style></legend>

                      <small id='KcHXc'></small><noframes id='KcHXc'>

                        <bdo id='KcHXc'></bdo><ul id='KcHXc'></ul>

                            <tfoot id='KcHXc'></tfoot>
                            主站蜘蛛池模板: 精品一区在线 | 天天干天天操 | 国产欧美精品在线 | 欧美成人第一页 | 亚洲一区二区三区 | 亚洲欧美精品一区 | 免费成人在线网站 | 欧美精品一区二区免费视频 | 久草免费在线视频 | 国产高清视频 | 欧美一a一片一级一片 | 精品国产乱码久久久久久闺蜜 | 正在播放国产精品 | 久久久www成人免费无遮挡大片 | 国产精品一区二区在线播放 | 久久伊 | 国产精品久久 | 羞羞视频网站在线观看 | 91精品久久久 | 日韩综合网 | 亚洲一区二区在线播放 | 一区二区在线免费观看 | 国产在线观看一区二区 | 亚洲在线高清 | 久久av一区二区 | 一区二区三区四区视频 | 国产精品一区二区av | 日韩成人一区 | 爱综合| 在线观看中文视频 | 欧美日韩亚洲一区 | 日韩精品一区二区三区视频播放 | 99国产精品一区二区三区 | 狠狠干网站 | 国产高清性xxxxxxxx | 国产精品久久国产精品 | 免费中文字幕日韩欧美 | 精品国产一区二区三区久久 | 日韩电影a | 在线中文字幕第一页 | 一级黄色片一级黄色片 |