Prechádzať zdrojové kódy

added headers to py and sh files

Piotr Bojanowski 9 rokov pred
rodič
commit
b44e9a3a52
3 zmenil súbory, kde vykonal 25 pridanie a 1 odobranie
  1. 8 0
      eval.py
  2. 8 0
      get-data.sh
  3. 9 1
      get-vectors.sh

+ 8 - 0
eval.py

@@ -1,5 +1,13 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+# 
+# Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+# 
+# This source code is licensed under the BSD-style license found in the
+# LICENSE file in the root directory of this source tree. An additional grant
+# of patent rights can be found in the PATENTS file in the same directory.
+#
 
 from __future__ import absolute_import
 from __future__ import division

+ 8 - 0
get-data.sh

@@ -1,4 +1,12 @@
 #!/bin/sh
+# 
+# Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+# 
+# This source code is licensed under the BSD-style license found in the
+# LICENSE file in the root directory of this source tree. An additional grant
+# of patent rights can be found in the PATENTS file in the same directory.
+# 
 
 mkdir -p data
 

+ 9 - 1
get-vectors.sh

@@ -1,4 +1,12 @@
 #!/bin/sh
+# 
+# Copyright (c) 2016-present, Facebook, Inc.
+# All rights reserved.
+# 
+# This source code is licensed under the BSD-style license found in the
+# LICENSE file in the root directory of this source tree. An additional grant
+# of patent rights can be found in the PATENTS file in the same directory.
+# 
 
 export LC_ALL=en_US.UTF-8
 export LANG=en_US.UTF-8
@@ -10,7 +18,7 @@ export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
 
 mkdir -p result
 
-./fasttext -input data/text9 -output result/text9 -lr 0.025 -dim 50 \
+./fasttext -input data/text9 -output result/text9 -lr 0.025 -dim 300 \
   -ws 5 -epoch 1 -minCount 5 -neg 5 -sampling sqrt -loss ns -model sg \
   -bucket 2000000 -minn 3 -maxn 6 -onlyWord 0 -thread 8 -verbose 1000 \
   -t 1e-4