android - Get exist words from text with regex
问题描述
I am using firebase ml kit for words recognition in images. Actually it works pretty good. But sometimes it`s returns some kind of gibrish. So my question is any library exist for recognition exist words from text? (String) Or maybe I can use some kind of regex combination to get such result. Thanks in advance.
解决方案
您可以使用正则表达式来做到这一点。将所有值存储在 List 或 Arraylist 中,然后将列表的每个值或位置与适当的正则表达式匹配。这需要时间,但至少你不能得到 100% 的结果,但 75-80% 会起作用。
推荐阅读
- r - 使用模糊合并/sqldf 合并两个数据帧
- java - 创建流
使用流 ? - php - HTML 到 PDF,其中边框设置为带有专色的连续笔划
- java - 从 AWS lambda 下载文件
- php - 使用 Laravel 关系 orm 时 UUID 二进制(16)的问题
- python - 如何在 Python 的其他时间序列列表中获取插值?
- symfony - 为 Symfony 项目推动 Heroku 失败
- clickhouse - 具有 AggregatingMergeTree 引擎的物化视图删除条目而不是聚合
- r - 使用 geom_density_ridges() 时如何增加面板顶部的空白区域
- reactjs - 如何在(Ionic + React.js App)中自动聚焦 IonInput/OtpInput 字段,我已经尝试了所有解决方案