文件名称:1
-
所属分类:
- 标签属性:
- 上传时间:2016-10-08
-
文件大小:16.81kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
功能方法一 public static ArrayList<String> getWordsFromSentence(String sentence)
1.把一个句子拆分成单词,然后把它们返回到数组列表中 (用短语分割符号,去除完毕不能再包含短语分割符,不要清除单词中的 _ , - , \ )
2.把其中所有大写的单词变成小写
2.返回清除了标点符号的单词放到 ArrayList <String> getWordsFromSentence 的返回值中
功能方法二 public static String cleanWord(String word)
1.删除单词的前导和尾随标点符号字符(不要清除单词中的 _ , - , \ )
2.单个单词中所有的大小写归一成小写
3.处理 _ , - , \ 思考需要怎么处理
4.返回清除了标点符号的单词放到 cleanWord(String word)的返回值中
功能方法三 public static ArrayList<String> convertFileLinesToSentences(ArrayList<String> filelines)
1.从一个文件文本中分割成一个新数组列表,每个条目存放一句句子,并且不能对文件文本进行其他变化。
注意三点: 1分割的标记为句子分割符以及文档结尾(分割完毕句子分割符不能再包含在句子中)2去除句子首位的多于空格3句子不能为空句子-Functional approach a public static ArrayList <String> getWordsFromSentence (String sentence) 1. put a sentence split into words, and then return them to the array list (using the phrase segmentation symbols, complete removal can no longer contain the phrase delimiter, do not remove the word " _" , " -" " \" ) 2. all uppercase words to lowercase 2. return cleared punctuation words into ArrayList <String> getWordsFromSentence function return value Method two public static String cleanWord (String word) 1. Delete the word of the leading and trailing punctuation characters (do not remove the word " _" , " -" , " \" ) 2. Single word All case normalized to lowercase Solution " _" , " -" , " \" Consideration needs to deal with how 4. return cleared punctuation words into cleanWord (String word) return value method three public functions static ArrayList <String> convertFileLinesToSentences (ArrayList
1.把一个句子拆分成单词,然后把它们返回到数组列表中 (用短语分割符号,去除完毕不能再包含短语分割符,不要清除单词中的 _ , - , \ )
2.把其中所有大写的单词变成小写
2.返回清除了标点符号的单词放到 ArrayList <String> getWordsFromSentence 的返回值中
功能方法二 public static String cleanWord(String word)
1.删除单词的前导和尾随标点符号字符(不要清除单词中的 _ , - , \ )
2.单个单词中所有的大小写归一成小写
3.处理 _ , - , \ 思考需要怎么处理
4.返回清除了标点符号的单词放到 cleanWord(String word)的返回值中
功能方法三 public static ArrayList<String> convertFileLinesToSentences(ArrayList<String> filelines)
1.从一个文件文本中分割成一个新数组列表,每个条目存放一句句子,并且不能对文件文本进行其他变化。
注意三点: 1分割的标记为句子分割符以及文档结尾(分割完毕句子分割符不能再包含在句子中)2去除句子首位的多于空格3句子不能为空句子-Functional approach a public static ArrayList <String> getWordsFromSentence (String sentence) 1. put a sentence split into words, and then return them to the array list (using the phrase segmentation symbols, complete removal can no longer contain the phrase delimiter, do not remove the word " _" , " -" " \" ) 2. all uppercase words to lowercase 2. return cleared punctuation words into ArrayList <String> getWordsFromSentence function return value Method two public static String cleanWord (String word) 1. Delete the word of the leading and trailing punctuation characters (do not remove the word " _" , " -" , " \" ) 2. Single word All case normalized to lowercase Solution " _" , " -" , " \" Consideration needs to deal with how 4. return cleared punctuation words into cleanWord (String word) return value method three public functions static ArrayList <String> convertFileLinesToSentences (ArrayList
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1/SentenceAnalyser.java
1/SentenceAnalyser代码.docx
1/String 作业.txt
1/String方法摘要 .txt
1
1/SentenceAnalyser代码.docx
1/String 作业.txt
1/String方法摘要 .txt
1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.