是否有任何Lucene词干器能够处理莎士比亚英语?(Are there any Lucene stemmers that handle Shakespearean English?)
我试图索引一些旧文件进行搜索 - 16,17,18世纪。
现代词干表似乎没有处理过时的词语结尾:worketh,liveth,walketh。
从莎士比亚和詹姆斯国王圣经那里开始,是否有专门研究英语的词干? 我目前正在使用
solr.PorterStemFilterFactory
。I'm trying to index some old documents for searching -- 16th, 17th, 18th century.
Modern stemmers don't seem to handle the antiquated word endings: worketh, liveth, walketh.
Are there stemmers that specialize in the English from the time of Shakespeare and the King James Bible? I'm currently using
solr.PorterStemFilterFactory
.
原文:https://stackoverflow.com/questions/31057029
最满意答案
您所描述的是在Rails中创建服务(使用API)并通过网络客户端访问它。
适当的方法是实施:
- 身份验证:最好是OAUTH2
- API:定义您的资源。 查看RESTful API,您也可以决定使用RABL gem来描述您的API
- 实现将数据序列化为可消费品的控制器。 我建议使用JSON或XML,而不是TEXT。
What you are describing is creating a service (with API) in Rails and accessing it via a networked client.
The proper approach would be to implement:
- Authentication: preferably OAUTH2
- API: define your Resources. Look into RESTful APIs, you also may decide to use RABL gem to describe your APIs
- Implement controllers that serialize your data to something consumable. I'd suggest JSON or XML, not TEXT.
相关问答
更多-
facebook桌面应用C#(facebook desktop app C#)[2022-09-29]
查看适用于Windows窗体的facebook-sharp SDK: https://github.com/facebook-csharp-sdk/facebook-winforms Checkout the facebook-sharp SDK for Windows forms: https://github.com/facebook-csharp-sdk/facebook-winforms -
我可以为桌面应用程序使用Windows应用程序C#代码(命名空间)吗?(Can i use windows store app C# code (namespace) for desktop app?)[2022-01-26]
对的,这是可能的! 如果这是一个好主意是另一个问题。 众所周知的微软员工Scott Hanselman有一个关于这个问题的好博客。 你可以在这里找到它: http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx Yes, it is possible! If it is a good idea or not is another question. Scott Han ... -
我将从微软P&P团队的WPF综合应用指南 ( 咳嗽 PRISM 咳嗽 )开始。 随着下载来了一个伟大的参考应用程序,这是我今天大部分WPF开发的起点。 如果您有兴趣从他们那里听到更多信息, DotNetRocks的工作人员就此采访了Glenn Block和Brian Noyes 。 更好的是,如果您对WinForms时代的那些熟悉的话,Prism的程度并不像CAB那么重。 I would start with the Composite Application Guidance for WPF (cough ...
-
好的,我发现了问题。 问题来自于o2.getID()参数给出的方法copy.copyFromPortableDeviceToHost 。 因为o2代表文件夹,而不是文件夹中的文件,所以不可能发送文件夹,为了成功我需要在文件夹中发送文件。 所以我将我的PortableDeviceObject o2转换为PortableDeviceFolderObject ,以便在表示文件的PortableDeviceFolderObject中获取带有targetFolder.getChildObjects()的子Object ...
-
您所描述的是在Rails中创建服务(使用API)并通过网络客户端访问它。 适当的方法是实施: 身份验证:最好是OAUTH2 API:定义您的资源。 查看RESTful API,您也可以决定使用RABL gem来描述您的API 实现将数据序列化为可消费品的控制器。 我建议使用JSON或XML,而不是TEXT。 What you are describing is creating a service (with API) in Rails and accessing it via a networked cl ...
-
您可以以允许两个应用程序相互通信的方式公开方法。 这是一个类似的问题,有很多答案。 You can expose methods in a way that will allow the two application to speak to each other. Here is a similar question with numerous answers.
-
如何将数据从C ++桌面应用程序发送到Google Firebase?(How to send data from C++ desktop App to Google Firebase?)[2023-07-26]
你知道你可以用C ++使用system来运行脚本(你可以在这里找到更多) 因此,正确地使用python或nodejs上传图片的代码(选择具有Firebase SDK的首选语言),并且您可以随时使用C ++程序执行它。 You know that you can run scripts with C++ using system (you can find more here) So right a code uploading the image with python or nodejs (choose ... -
Rails 4.1提供变体,以便您可以根据显示类型使用不同的视图模板。 这是一个更全面的例子 。 这是最近的,所以关于它们还没有很多。 如果您没有使用4.1,那么您可以使用Mobylette gem来实现同样的目标 。 然后,您还可以拥有一个完全不同的application.mobile.erb ,其中包含不同的资产。 对于在您包含的资产之间进行翻转,您还可以查看此(帮助程序方法部分),但这不会解决整个问题的不同视图集的问题: Rails 3中的移动样式切换,辅助方法与媒体查询 Rails 4.1 offe ...
-
更改AngularJs控制器的模式解决了以下问题: myApp.controller("BlogController", ['$scope', '$http', function($scope, $http){ $http.get('/assets/blogs.json').success(function(data){ $scope.blogs = data; String.prototype.trunc = String.prototype.trunc || funct ...
-
在您的应用程序中,您应该具有static User CurrentUser属性。 登录应用程序时,将“当前用户”设置为该用户的实例。 如果您正在使用WPF,我会将其作为依赖项属性,并将应用程序的其余部分绑定到该属性。 如果您使用的是表单,则必须在用户更改时手动处理所有UI的更新。 编辑 :使用静态运行程序和对象的静态INSTANCE如何实现此类内容的简短示例。 我还建议你阅读更多关于静态意义的内容,以及一个类是什么,它可能比你想象的要多一点......我会在底部解释一下 class Program { ...