{"action":"created","issue":{"url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5","repository_url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits","labels_url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5/comments","events_url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5/events","html_url":"https://github.com/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5","id":207388732,"number":5,"title":"Error installing samsung stst from pip and from source","user":{"login":"iarroyof","id":6182245,"avatar_url":"https://avatars.githubusercontent.com/u/6182245?v=3","gravatar_id":"","url":"https://api.github.com/users/iarroyof","html_url":"https://github.com/iarroyof","followers_url":"https://api.github.com/users/iarroyof/followers","following_url":"https://api.github.com/users/iarroyof/following{/other_user}","gists_url":"https://api.github.com/users/iarroyof/gists{/gist_id}","starred_url":"https://api.github.com/users/iarroyof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarroyof/subscriptions","organizations_url":"https://api.github.com/users/iarroyof/orgs","repos_url":"https://api.github.com/users/iarroyof/repos","events_url":"https://api.github.com/users/iarroyof/events{/privacy}","received_events_url":"https://api.github.com/users/iarroyof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-14T01:15:40Z","updated_at":"2017-02-14T23:51:25Z","closed_at":null,"body":"Hi dear authors. I'm trying to install your `stst` package. I've tried two ways for this. From `pip` and from source. When I tried from pip, I have next error:\r\n\r\n```\r\nDownloading/unpacking stst\r\n  Downloading stst-0.2.1.tar.gz (59kB): 59kB downloaded\r\n  Running setup.py (path:/tmp/pip_build_root/stst/setup.py) egg_info for package stst\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 17, in <module>\r\n      File \"/tmp/pip_build_root/stst/setup.py\", line 9, in <module>\r\n        long_description=''.join(open('README.md').readlines()),\r\n    IOError: [Errno 2] No such file or directory: 'README.md'\r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n\r\n  File \"<string>\", line 17, in <module>\r\n\r\n  File \"/tmp/pip_build_root/stst/setup.py\", line 9, in <module>\r\n\r\n    long_description=''.join(open('README.md').readlines()),\r\n\r\nIOError: [Errno 2] No such file or directory: 'README.md'\r\n\r\n----------------------------------------\r\nCleaning up...\r\nCommand python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/stst\r\nStoring debug log for failure in /home/ignacio/.pip/pip.log\r\n```\r\nWhen I went to the log file, I have this:\r\n```\r\n\r\nDownloading/unpacking stst\r\n  Getting page https://pypi.python.org/simple/stst/\r\n  URLs to search for versions for stst:\r\n  * https://pypi.python.org/simple/stst/\r\n  Analyzing links from page https://pypi.python.org/simple/stst/\r\n    Found link https://pypi.python.org/packages/11/0f/4c99282658eba4f022ca280c1c83616d1f92f10ea3709737520955\r\nd6c6ea/stst-0.1.4.tar.gz#md5=229c2c4d2706978e5f320938dc35635a (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.1.4\r\n    Found link https://pypi.python.org/packages/15/73/7e9accf6beb923802df2295d4707ea4b1582e7dc06017c32cb0920\r\n38651b/stst-0.1.3.tar.gz#md5=69eaa665a824854a77f8e3b294a815a1 (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.1.3\r\n    Found link https://pypi.python.org/packages/21/c2/4efc3418e9e3f5624f0d6d154bfc1dbe395c30c21a7a0ce0f7d63c\r\ndf462c/stst-0.2.0.tar.gz#md5=af8875c27cfcef098aec0e63d03ef959 (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.2.0\r\n    Found link https://pypi.python.org/packages/28/79/642f31442034e51133c5294acdd73b6fcf942aa54a701331058218\r\n34e621/stst-0.1.1.tar.gz#md5=ce983dde8f9b44880d15dcc15f7c1eb3 (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.1.1\r\n    Found link https://pypi.python.org/packages/4d/d8/630dcb3ab9c06ff59800ca9d874b0d89757748ba36d8a5b7cd6bc6\r\n598311/stst-0.2.1.tar.gz#md5=ab7b22b3be47920a9034d60658e9d948 (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.2.1\r\n    Found link https://pypi.python.org/packages/f4/4c/03ee66a1831f0353aff9bf56f58c7ecd7ff753b152774ce5ee514f\r\n4dc6c4/stst-0.1.2.tar.gz#md5=b129b2624c36508ed22469ab25a63868 (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.1.2\r\n    Found link https://pypi.python.org/packages/fd/98/2d9543df6949e724626face55117c9aa0f4abecbf80b9dc5bcf3e3\r\nb79b71/stst-0.1.0.tar.gz#md5=62a59420a0e3783192e7ceccc69ba50d (from https://pypi.python.org/simple/stst/), v\r\nersion: 0.1.0\r\n  Using version 0.2.1 (newest of versions: 0.2.1, 0.2.0, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0)\r\n  Downloading from URL https://pypi.python.org/packages/4d/d8/630dcb3ab9c06ff59800ca9d874b0d89757748ba36d8a5\r\nb7cd6bc6598311/stst-0.2.1.tar.gz#md5=ab7b22b3be47920a9034d60658e9d948 (from https://pypi.python.org/simple/s\r\ntst/)\r\n  Running setup.py (path:/tmp/pip_build_root/stst/setup.py) egg_info for package stst\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 17, in <module>\r\n      File \"/tmp/pip_build_root/stst/setup.py\", line 9, in <module>\r\n        long_description=''.join(open('README.md').readlines()),\r\n    IOError: [Errno 2] No such file or directory: 'README.md'\r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n\r\n  File \"<string>\", line 17, in <module>\r\n\r\n  File \"/tmp/pip_build_root/stst/setup.py\", line 9, in <module>\r\n\r\n    long_description=''.join(open('README.md').readlines()),\r\n\r\nIOError: [Errno 2] No such file or directory: 'README.md'\r\n\r\n----------------------------------------\r\nCleaning up...\r\n  Removing temporary dir /tmp/pip_build_root...\r\nCommand python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/stst\r\nException information:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 122, in main\r\n    status = self.run(options, args)\r\n  File \"/usr/lib/python2.7/dist-packages/pip/commands/install.py\", line 278, in run\r\n    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)\r\n  File \"/usr/lib/python2.7/dist-packages/pip/req.py\", line 1230, in prepare_files\r\n    req_to_install.run_egg_info()\r\n  File \"/usr/lib/python2.7/dist-packages/pip/req.py\", line 326, in run_egg_info\r\n    command_desc='python setup.py egg_info')\r\n  File \"/usr/lib/python2.7/dist-packages/pip/util.py\", line 715, in call_subprocess\r\n    % (command_desc, proc.returncode, cwd))\r\nInstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/stst\r\n```\r\n\r\nAfter that I decided to install from source. I firstly cloned this repository and then I ran `python setup.py install`. It seems to be well, however when I run the use example in the `README.md`, I have this error:\r\n\r\n```\r\npython samsung.py\r\nTraceback (most recent call last):\r\n  File \"/almac/ignacio/nlp-pipeline/samsung.py\", line 12, in <module>\r\n    import stst\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.1-py2.7.egg/stst/__init__.py\", line 3, in <module>\r\n    from stst.classifier import *\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.1-py2.7.egg/stst/classifier.py\", line 10, in <module>\r\n    from stst import utils\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.1-py2.7.egg/stst/utils.py\", line 10, in <module>\r\n    from stst.lib.kernel import vector_kernel as vk\r\nImportError: No module named lib.kernel\r\n```\r\nAny idea what is wrong? Thank you"},"comment":{"url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/comments/279874379","html_url":"https://github.com/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5#issuecomment-279874379","issue_url":"https://api.github.com/repos/rgtjf/Semantic-Texual-Similarity-Toolkits/issues/5","id":279874379,"user":{"login":"iarroyof","id":6182245,"avatar_url":"https://avatars.githubusercontent.com/u/6182245?v=3","gravatar_id":"","url":"https://api.github.com/users/iarroyof","html_url":"https://github.com/iarroyof","followers_url":"https://api.github.com/users/iarroyof/followers","following_url":"https://api.github.com/users/iarroyof/following{/other_user}","gists_url":"https://api.github.com/users/iarroyof/gists{/gist_id}","starred_url":"https://api.github.com/users/iarroyof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarroyof/subscriptions","organizations_url":"https://api.github.com/users/iarroyof/orgs","repos_url":"https://api.github.com/users/iarroyof/repos","events_url":"https://api.github.com/users/iarroyof/events{/privacy}","received_events_url":"https://api.github.com/users/iarroyof/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T23:51:25Z","updated_at":"2017-02-14T23:51:25Z","body":"Hi @rgtjf . Thank you for your support. I started the server and used the corresponding local address (it worked). An additional error raised due to absence of another file: `stst-0.2.2-py2.7.egg/stst/resources/dict_stopwords.txt`. What I did was getting this file from coreNLP repository (it worked). After that, a new error raised which was due to badly formed string for the `/generate` directory:\r\n\r\n```\r\n~$ python /almac/ignacio/nlp-pipeline/samsung.py \r\nUsing GradientBoostingRegression Classifier\r\n/almac/ignacio/data/sts_all/train.input.10.txt\r\n**************************************************\r\nParse Data, train_file=/almac/ignacio/data/sts_all/train.input.10.txt, n_train=10\r\n\r\n[100 %] Time elapsed: 00:00:01 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:01\r\n**************************************************\r\nLoad Data, train_file=/almac/ignacio/data/sts_all/train.input.10.txt, n_train=10\r\n\r\n/almac/ignacio/data/sts_all/test.input.10.txt\r\n**************************************************\r\nParse Data, train_file=/almac/ignacio/data/sts_all/test.input.10.txt, n_train=10\r\n\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\n**************************************************\r\nLoad Data, train_file=/almac/ignacio/data/sts_all/test.input.10.txt, n_train=10\r\n\r\n------------------------------------------------------------------------------------------------------------------------\r\nLexicalFeature\r\nShortSentenceFeature\r\nnGramOverlapFeature-lemma\r\nnGramOverlapFeature-word\r\nnCharGramOverlapFeature-True\r\nnCharGramOverlapFeature-False\r\nnGramOverlapBeforeStopwordsFeature-lemma\r\nnGramOverlapBeforeStopwordsFeature-word\r\nWeightednGramMatchFeature-lemma\r\nWeightednGramMatchFeature-word\r\nBOWFeature-False\r\nAlignmentFeature\r\nIdfAlignmentFeature\r\nPosAlignmentFeature\r\n------------------------------------------------------------------------------------------------------------------------\r\n../generate/features/train.input.10/LexicalFeature.txt\r\n[ 10 %] Time elapsed: 00:00:00 | ETA: 00:00:01load dict from file /usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/resources/dict_stopwords.txt \r\n\r\n[100 %] Time elapsed: 00:00:02 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:02\r\nTraceback (most recent call last):\r\n  File \"/almac/ignacio/nlp-pipeline/samsung.py\", line 47, in <module>\r\n    model.train(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/model.py\", line 42, in train\r\n    self.make_feature_file(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/model.py\", line 99, in make_feature_file\r\n    feature_class.extract_dataset_instances(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 33, in extract_dataset_instances\r\n    return self.load_instances(train_instances)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 45, in load_instances\r\n    Feature.write_feature_to_file(self.feature_file, features, infos)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 82, in write_feature_to_file\r\n    f_feature = utils.create_write_file(feature_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/utils.py\", line 70, in create_write_file\r\n    os.makedirs(path)\r\n  File \"/usr/lib/python2.7/os.py\", line 150, in makedirs\r\n    makedirs(head, mode)\r\n  File \"/usr/lib/python2.7/os.py\", line 150, in makedirs\r\n    makedirs(head, mode)\r\n  File \"/usr/lib/python2.7/os.py\", line 157, in makedirs\r\n    mkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: '../generate'\r\n```\r\nAfter changing this in the `stst-0.2.2-py2.7.egg/stst/config.py` file, the error disappeared. After that, an error raised due to absence of the Brown corpus. I downloaded it for NLTK (it worked). \r\n\r\nNow the following error appeared and I'm not sure what is the reason:\r\n\r\n```\r\n~$ python /almac/ignacio/nlp-pipeline/samsung.py \r\nUsing GradientBoostingRegression Classifier\r\n/almac/ignacio/data/sts_all/train.input.10.txt\r\n**************************************************\r\nParse Data, train_file=/almac/ignacio/data/sts_all/train.input.10.txt, n_train=10\r\n\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\n**************************************************\r\nLoad Data, train_file=/almac/ignacio/data/sts_all/train.input.10.txt, n_train=10\r\n\r\n/almac/ignacio/data/sts_all/test.input.10.txt\r\n**************************************************\r\nParse Data, train_file=/almac/ignacio/data/sts_all/test.input.10.txt, n_train=10\r\n\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\n**************************************************\r\nLoad Data, train_file=/almac/ignacio/data/sts_all/test.input.10.txt, n_train=10\r\n\r\n------------------------------------------------------------------------------------------------------------------------\r\nLexicalFeature\r\nShortSentenceFeature\r\nnGramOverlapFeature-lemma\r\nnGramOverlapFeature-word\r\nnCharGramOverlapFeature-True\r\nnCharGramOverlapFeature-False\r\nnGramOverlapBeforeStopwordsFeature-lemma\r\nnGramOverlapBeforeStopwordsFeature-word\r\nWeightednGramMatchFeature-lemma\r\nWeightednGramMatchFeature-word\r\nBOWFeature-False\r\nAlignmentFeature\r\nIdfAlignmentFeature\r\nPosAlignmentFeature\r\n------------------------------------------------------------------------------------------------------------------------\r\nLexicalFeature 21 21\r\n/almac/ignacio/generate_stst/features/train.input.10/ShortSentenceFeature.txt\r\n[100 %] Time elapsed: 00:00:09 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:09\r\nShortSentenceFeature 2 23\r\n/almac/ignacio/generate_stst/features/train.input.10/nGramOverlapFeature-lemma.txt\r\n[ 10 %] Time elapsed: 00:00:00 | ETA: 00:00:01load dict from file /usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/resources/dict_stopwords.txt \r\n\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnGramOverlapFeature-lemma 3 26\r\n/almac/ignacio/generate_stst/features/train.input.10/nGramOverlapFeature-word.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnGramOverlapFeature-word 3 29\r\n/almac/ignacio/generate_stst/features/train.input.10/nCharGramOverlapFeature-True.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnCharGramOverlapFeature-True 4 33\r\n/almac/ignacio/generate_stst/features/train.input.10/nCharGramOverlapFeature-False.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnCharGramOverlapFeature-False 4 37\r\n/almac/ignacio/generate_stst/features/train.input.10/nGramOverlapBeforeStopwordsFeature-lemma.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnGramOverlapBeforeStopwordsFeature-lemma 3 40\r\n/almac/ignacio/generate_stst/features/train.input.10/nGramOverlapBeforeStopwordsFeature-word.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nnGramOverlapBeforeStopwordsFeature-word 3 43\r\n/almac/ignacio/generate_stst/features/train.input.10/WeightednGramMatchFeature-lemma.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nWeightednGramMatchFeature-lemma 3 46\r\n/almac/ignacio/generate_stst/features/train.input.10/WeightednGramMatchFeature-word.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nWeightednGramMatchFeature-word 3 49\r\n/almac/ignacio/generate_stst/features/train.input.10/BOWFeature-False.txt\r\n[100 %] Time elapsed: 00:00:00 | ETA: 00:00:00\r\nTotal time elapsed: 00:00:00\r\nBOWFeature-False 11 60\r\n/almac/ignacio/generate_stst/features/train.input.10/AlignmentFeature.txt\r\n[ 10 %] Time elapsed: 00:00:00 | ETA: 00:00:01Traceback (most recent call last):\r\n  File \"/almac/ignacio/nlp-pipeline/samsung.py\", line 47, in <module>\r\n    model.train(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/model.py\", line 42, in train\r\n    self.make_feature_file(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/model.py\", line 99, in make_feature_file\r\n    feature_class.extract_dataset_instances(train_instances, train_file)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 33, in extract_dataset_instances\r\n    return self.load_instances(train_instances)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 42, in load_instances\r\n    features, infos = self.extract_instances(train_instances)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features.py\", line 62, in extract_instances\r\n    feature, info = self.extract(train_instance)  ##可变参数进行传递！\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/features/features_align.py\", line 14, in extract\r\n    features, infos = aligner.align_feats(parse_sa, parse_sb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/lib/word_aligner/aligner.py\", line 1417, in align_feats\r\n    sentence2ParseResult)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/lib/word_aligner/aligner.py\", line 1065, in alignWords\r\n    sourceDParse = dependencyParseAndPutOffsets(sourceParseResult)\r\n  File \"/usr/local/lib/python2.7/dist-packages/stst-0.2.2-py2.7.egg/stst/lib/word_aligner/parseUtil.py\", line 124, in dependencyParseAndPutOffsets\r\n    dParse = parseResult['sentences'][0]['basic-dependencies']\r\nKeyError: 'basic-dependencies'\r\n```\r\nI saw that the coreNLP server works, however it seems that the parsing result is not complete given the absence of `'basic-dependencies'` key of `parseResult`. \r\n\r\nIt is needed some additional (or missing) configuration?"}}
{"actor":{"display_login":"iarroyof"}}