ストップワード "zach"でストップワード "THE"、 "BE"、 "TO"、 "OF"、 "AND"、 "A"、 "IN"を検索しようとしています。 "THAT"、 "I"、 "ON"、 "IN"、 "BUT"、 "IS"、 "WITH"のいずれかであるかどうかはわかりません。これを行うには良い方法であるストップワードの文字列検索
package zk;
public class Class
{
public boolean isNonStopWord(int[] nums, int value)
{
}
public String search(String [] Strings , String july) {
String [] skoal = {"THE", "BE", "TO", "OF", "AND", "A", "IN",
"THAT", "I", "IT", "ON", "IN", "BUT", "IS", "WITH"};
for (String i = 0,) {
return false;
}
return true;
}
public static void main(String [] args) {
String zach = ("Amazon offered up more answers Thursday about what"
+ " caused a bunch of websites to fail two days ago. According "
+ "to a postmortem by the company's cloud services business, "
+ "around 9:37 a.m. PT Tuesday an Amazon worker incorrectly"
+ " punched in a command while trying to debug an issue. "
+ "That command shut down a large set of servers at Amazon Web "
+ "Services' Northern Virginia site, causing a domino effect of"
+ " problems. Other services that relied on those S3 cloud"
+ " storage servers were disrupted. Also, removing so much "
+ "server capacity required a full system restart, which then "
+ "took longer than expected, AWS said. The sites affected "
+ "included Quora, Imgur, IFTTT, Giphy and Slack. Amazon was "
+ "able to fix the issue by about 2 p.m. PT.");
zach = zach.replace(",","");
zach = zach.replace(".","");
zach = zach.toUpperCase();
String [] strings = zach.split(" ");
for (String s1: strings)
{
System.out.println(s1);
}
}
}
「ストップワード」で何をしたいですか? –
@ElliottFrisch私はそれらの隣でfalseを返し、他のすべての隣で真を返したい。 – zach