DavidBelicza / TextRank

:wink: :cyclone: :strawberry: TextRank implementation in Golang with extendable features (summarization, phrase extraction) and multithreading (goroutine).
MIT License
204 stars 22 forks source link

TextToRank should accept interface instead of ParsedSentence as struct #8

Open koushki opened 5 years ago

koushki commented 5 years ago

If I want to use convert.TextToRank and I have a customized rule, it is not possible to use convert package because it accepts parse.ParsedSentence struct as the first argument.

I had a quick look and it seems should be possible to change parse.ParsedSentence to an interface.

I can create a PR if it does make sense to you @DavidBelicza!