【发布时间】:2019-01-19 18:19:13
【问题描述】:
在 R 中:- 例如:-
text_data<-" I have been a Gig subscriber for a decent amount of time. When the service was originally installed I would observe 900+Mbps speeds. I have deployed to Kosovo and since then (about 8 months ago) my wife has told me that the internet has become Slow.I consistently avg less than 286 Mbps when utilizing both speedtest.xfinity.com and fast.com as well as speedtest.net Current hardware: 1) Motorola MB8600 Modem 2) Linksys EA9500 I have not had a technician out to the site.Troubleshooting:I have replaced the Coax cable from wall to modem with 2 different new coax cables. I have replaced the ethernet from Modem to Router with 2 different new ethernet cables I have rebooted my Modem as well as attempted a factory reset. I have connected my home PC directly to the Modem (bypass router) with 2 different ethernet cables*NOTE*Wether I use the EA9500 or go directly to the PC I get the same slow speeds.*NOTE 2*I do not have a cable subscrption. No splitters on the line. It goes from Pole ---> Wall Jack --> Modem.There is always significant Uncorrected errors. Attached are the Upstream and Downstream information and error logs. These are 4 days after a modem reset."
> textdata<- as.String(text_data)
> a<-strsplit(text_data,".", fixed = TRUE)
输出:-
> a
[[1]]
[1] " I have been a Gig subscriber for a decent amount of time"
[2] " When the service was originally installed I would observe 900+Mbps speeds"
[3] " I have deployed to Kosovo and since then (about 8 months ago) my wife has told me that the internet has become Slow"
[4] "I consistently avg less than 286 Mbps when utilizing both speedtest"
[5] "xfinity"
[6] "com and fast"
[7] "com as well as speedtest"
[8] "net Current hardware: 1) Motorola MB8600 Modem 2) Linksys EA9500 I have not had a technician out to the site"
[9] "Troubleshooting:I have replaced the Coax cable from wall to modem with 2 different new coax cables"
[10] " I have replaced the ethernet from Modem to Router with 2 different new ethernet cables I have rebooted my Modem as well as attempted a factory reset"
[11] " I have connected my home PC directly to the Modem (bypass router) with 2 different ethernet cables*NOTE*Wether I use the EA9500 or go directly to the PC I get the same slow speeds"
[12] "*NOTE 2*I do not have a cable subscrption"
[13] " No splitters on the line"
[14] " It goes from Pole ---> Wall Jack --> Modem"
[15] "There is always significant Uncorrected errors"
[16] " Attached are the Upstream and Downstream information and error logs"
[17] " These are 4 days after a modem reset"
R 中所需的输出:- 文本应该在语句的末尾(句号)而不是在句子之间的 .(点)处分开。)
1)I have been a Gig subscriber for a decent amount of time.
When the service was originally installed I would observe 900+Mbps speeds.
2)I have deployed to Kosovo and since then (about 8 months ago) my wife has told me that the internet has become Slow.
3)I consistently avg less than 286 Mbps when utilizing both speedtest.xfinity.com and fast.com as well as speedtest.net Current hardware: 1) Motorola MB8600 Modem 2) Linksys EA9500 I have not had a technician out to the site.
4)Troubleshooting:I have replaced the Coax cable from wall to modem with 2 different new coax cables.
5) I have replaced the ethernet from Modem to Router with 2 different new ethernet cables I have rebooted my Modem as well as attempted a factory reset.
6)I have connected my home PC directly to the Modem (bypass router) with 2 different ethernet cables*NOTE*Wether I use the EA9500 or go directly to the PC I get the same slow speeds.
7)*NOTE 2*I do not have a cable subscrption.
8)No splitters on the line.
9)It goes from Pole ---> Wall Jack --> Modem.
10)There is always significant Uncorrected errors.
11)Attached are the Upstream and Downstream information and error logs.
12)These are 4 days after a modem reset.
请帮忙。
【问题讨论】:
-
问题不清楚。句尾的点和句之间有什么区别?根据定义,句子之间有一个点或其他标记,这就是我们如何知道它们是两个句子,而不仅仅是一个。
-
段落中的每个语句都应该在它的末尾拆分,即在分隔符句号处 (.) 但例如,如果语句在文本之间有 speedtest.xfinity.com,它应该保持原样是。
-
只是初步的想法,但是你可以通过拆分
". "得到一个近似的解决方案,因为大多数句子是用句点和空格分隔的,但域名和数字没有句点后跟a空间。