Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

口語表現特有のフィラーを取り除くために、形態素解析を行う #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

yamachu
Copy link
Owner

@yamachu yamachu commented Mar 11, 2020

Windows 10 HomeでもInsidersならDocker使えるようになったし、形態素解析を行うことが出来るアプリケーションのDocker ImageをC# アプリケーションから呼ぶ形で使う。

本来であればttyを掴んでStreamをハンドリングするほうが良さそうだけど、Docker.DotNetのバグがあるらしく、一つのStreamをWriteとReadに使うのがダメだったので、ファイル入出力で行う。


static string CreateRandomTempDirectory()
{
var platformDependentMountableTempBaseDir = RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? "/tmp" : Path.GetTempPath();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker for Macのデフォルトだと /var はFile Sharingに入っていない。
defaultで入っている /tmp であれば使い勝手がいいので、そっちをマウントするように変更している。

@yamachu
Copy link
Owner Author

yamachu commented Mar 11, 2020

あーDocker pullしていないと動かないの忘れてた。
最初に対象のDocker Imageがあるかチェックして、なかったらpullするようにするか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant