Text2Summary-Android | A library for Text Summarization on Android applications | Data Manipulation library
kandi X-RAY | Text2Summary-Android Summary
kandi X-RAY | Text2Summary-Android Summary
A library for Text Summarization on Android applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Text2Summary-Android
Text2Summary-Android Key Features
Text2Summary-Android Examples and Code Snippets
allprojects {
repositories {
// Other dependencies
maven { url 'https://jitpack.io' }
}
}
dependencies {
// Other dependencies
implementation 'com.github.shubham0204:Text2Summary-Android:alpha-05'
}
var summary = Text2Summary.summarize( someLongText , compressionRate = 0.7 )
val bufferedReader: BufferedReader = File( "poems.txt" ).bufferedReader()
val text = bufferedReader.use{ it.readText() }
val summary = Text2Summary.summarize( text , 0.7
val callback = object : Text2Summary.SummaryCallback {
override fun onSummaryProduced(summary: String) {
// The summary is ready!
}
}
Text2Summary.summarizeAsync( someLongText , 0.7f , callback )
Community Discussions
Trending Discussions on Text2Summary-Android
QUESTION
I have developed a library Text2Summary for Android which is written using Kotlin. I am distributing this library using JitPack and the building process goes perfectly fine.
Now, in a Kotlin-enabled Android project, I am able to import the classes available in the library. This is not the case in a project which only has Java ( no Kotlin configured ). Here, Android Studio simply complains that cannot resolve symbol Text2Summary.
...I have written the whole library in Kotlin and developers not using Kotlin are complaining about the same cannot resolve symbol Text2Summary error. Should I simply convert the Kotlin code back to Java code or should I tell the users to enable Kotlin by
apply plugin 'kotlin'
? A valid explanation will be helpful too.
ANSWER
Answered 2020-Jun-12 at 08:41I think you forgot to add @JvmStatic
annotation to make your method callable from Java code. Without it, you have to call it like MyObject.Companion.method1()
in Java.
Here is what you should add to your public methods in companion object {}
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Text2Summary-Android
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page