1
改行文字に基づいて文字列を分割し、改行を '。' Pythonで。私はこのコードを試しましたが、私はそれを得ていません。Pythonの文字列から改行文字を検索する方法
import nltk
from nltk.tokenize.punkt import PunktSentenceTokenizer, PunktParameters, PunktLanguageVars
ex_sent="Conclusion & Future Work
In our project we have tried for implementing northbound SDN application for OpenFlow protocol evaluation. The client and the RYU application is being connected, via socket connection."
class CommaPoint(PunktLanguageVars):
sent_end_chars = (',','\n')
tokenizer = PunktSentenceTokenizer(lang_vars = CommaPoint())
sentences = sentence_splitter.tokenize(ex_sent)
print sentences
ありがとうLaszlowaty私は1つ借りている... –