我有一张带有句子标题的图像表。给定一个新句子,我想根据新句子与存储的旧句子的接近程度,找到与之最匹配的图像。
我知道我可以将@@
运算符与a一起使用,to_tsquery
但tsquery
可以接受特定单词作为查询。
一个问题是我不知道如何将给定的句子转换为有意义的查询。该句子可能带有标点符号和数字。
但是,我也觉得我需要某种余弦相似性,但我不知道如何从PostgresQL中获得它。我正在使用最新的GA版本,如果可以解决我的问题,很高兴使用开发版本。
我收到"无效选择"错误.
ubuntu@server:/home/foo$ aws glacier
usage: aws [options] <command> <subcommand> [parameters]
aws: error: argument command: Invalid choice, valid choices are:
autoscaling | cloudformation
cloudfront | cloudsearch
cloudtrail | cloudwatch
datapipeline | directconnect
dynamodb | ec2
elasticache | elasticbeanstalk
elastictranscoder | elb
emr | iam
importexport | kinesis
opsworks | rds
redshift | route53
ses | sns
sqs | storagegateway
sts | support
swf | s3api
s3 | configure
help
ubuntu@server:/home/foo$ aws --version
aws-cli/1.2.9 Python/3.4.0 Linux/3.13.0-65-generic
Run Code Online (Sandbox Code Playgroud)
以前我使用以下方法安装它: ubuntu@server:/home/foo$ sudo apt-get install awscli …